Posted: 2009-03-17 17:57:25
Indeed, it works this way. Many thanx to you, my friend!:grinking:
Now it looks just fine, with just a few small adjustments more
Now it looks just fine, with just a few small adjustments more
Official Forum
https://forum.antp.be/phpbb3/
It seems to work here... just slow to loadouafouaf wrote:hello.
i have a problem with the image resize script.
it works fine on awardspace, but not on free.fr
I think free has a limit on how much memory a script can use (?).
So you can check my page http://thebigwaf01.free.fr/ and see, most pictures wont show in detail/cover mode.
Is there a solution to that problem ? because free.fr is a really nice host (lot of space, no size limit for files and sql databases, no adds...)
edit: i searched a little, it seems that some of free.fr only allow a certain amount of memory. I guess there is no solution server side, I will try to host reduced covers manualy...
Or could anyone suggest a good free host ?
Code: Select all
* @copyright Copyright © 2006-2007, Michael Shepanski * @package PK-Designs * @version Version 1.0 (2007.01.06) * =============================================================================================== */ require_once('mdb3.php'); $moviedb = new MDB3(); ?>
get_html(); ?>
Code: Select all
* @copyright Copyright © 2006-2007, Michael Shepanski * @package PK-Designs * @version Version 1.0 (2007.01.06) * =============================================================================================== */ require_once('mdb3.php'); $moviedb = new MDB3(); ?>
get_html(); ?>
Code: Select all
* @copyright Copyright © 2006-2007, Michael Shepanski * @package PK-Designs * @version Version 1.0 (2007.01.06) * =============================================================================================== */ require_once('mdb3.php'); $moviedb = new MDB3(); ?>
get_html(); ?>
haha yes thats the problem i cant find the file/place to make the roundoff work sadly.sandmanweb wrote:to Jorn
You could add a script to round the number...
Something like this:
(you will have to change the parameters)
$ronddvar = round($var)
as simple as this
you just have to find the right place to put it...
nice template!!Jorn wrote:Hey guys,
Im new to this program and decided to have a go with the script.
Didnt really like the default layout so made my own (well work in progress).
Another thing I notice is that in the movie detail window that
a. the stars are outlined but dont show
b. the actors role is not in translation files (it says AS) fixed (hardcoded in view.tpl)
c. the character name in the movies are missing fixed (imported that from IMDB)
d. the data added is 1-1-1970
In my oppinion a quickfix for this would be to round of numbers given automaticly by this php script (so not in AMC). 6.4 and less = 6 and 6,5 and higher =7. Since i got no clue how and where to do this , it tried this manually by editting some movies rating to even numbers and then the stars do show up automaticly on the page.
Anyone able to do this?
update - day3 -
well still noone answers so im still fiddling around.
to get the stars i tried the following ideas:
edit the css file to also take rating_1.1 , rating_1.2 etc
poblem: a . is in css a subclass so it wont read it correctly
next i tried to edit the sql on the database so that the row RATING is no longer a FLOAT but a DECIMAL row. This transforms all ratings to 1 number and shows the rating stars on the page.
Two problems with this method however:
1. it just clears the decimals and does not round, so 6.7 becomes 6
2. when i add movies and export the sql output resets the row to FLOAT
In AMC I can not declare row behaviour of the output SQL and it is here that he changes the , to . also (example: 4,8 becomes 4.8).
If i could get the AMC exporter to export 4,8 instead of 4.8 i could use my CSS workaround to fix the stars correctly.
Im still looking how too do this.
In the meantime if anyone has any luck with FIXING this BROKEN script any other way im happy to hear.
current look:
[stars show 3.5 stars but rating was 7.8 so should be 4 stars (round to 8)
well it only looks for round numbers, think the problem is that the importer from the dutch site takes decimal points... while english like IMDB might not. the code only works when i got an exact round number (due to the fact that there are only hard number values difined in the CSS file). So i need to implement the round function somewhere i reccon..sandmanweb wrote:I don't see why you're having problem with the stars...
Mine are showing correctly. Data is exported from AMC to Moviedb.
Take a look at the original template to see what changed.
well its far from done mate, alot i hardcoded in there and still struggling with things like having to manually edit my database after upload etc.johndick wrote:nice template!!
where you can get to try it
Code: Select all
$tpl->add_var("\$MOVIE[RATING_RND]", (round($this->data['RATING'])));
Code: Select all
$tpl->add_var("\$MOVIE[RATING]", (round($this->data['RATING'])));