PK's MovieDB Release.V3.0 (Dynamic PHP View)
-
- Posts: 3
- Joined: 2008-10-05 05:33:41
Bad quality resized images
Hi, i'm having trouble with the cover images in details and cover views, they get pixelized. I searched all the forum for an answer and did not found it. For what i can see, you all guys have perfect quality resized images.. can anyone please share his rezise.php or his config undet details_view.tpl, or some fix of a kind? I'd be really gratefull.. thanks!
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 ?
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 ?
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
Nouvelle version de mon mod: 1.2.1
http://www.mediafire.com/download.php?gwoujzmmk0v
Quelques erreurs corrigées...
Voici le résultat :
http://www.supercinephile.c.la
Attentions à vos commentaires et vos notes ... ce n'est pas un démo, mais ma propre liste de film.
http://www.mediafire.com/download.php?gwoujzmmk0v
Quelques erreurs corrigées...
Voici le résultat :
http://www.supercinephile.c.la
Attentions à vos commentaires et vos notes ... ce n'est pas un démo, mais ma propre liste de film.
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
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 ?
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)
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)
Bonjour tout le monde !
Voici le message qui apparait quand je vais sur le répertoire DVD/index.php
Une idée?
Merci d'avance.
Voici le message qui apparait quand je vais sur le répertoire DVD/index.php
Une idée?
Merci d'avance.
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(); ?>
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
I have the same problem
I have the same problem
and if I have installed php perfect.
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(); ?>
Problem resuelto
para resolver el siguiente error.
to resolve the following error.
activar "short open tag" en php
active "short open tag" on php
to resolve the following error.
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(); ?>
active "short open tag" on php
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...
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
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)
where you can get to try it
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
When its done and stable, and enough ppl are interested, i will make a public version.
Hey Jorn just wanted to say i like your theme.. the Background is really cool.
Its been ages since i've played with this script.. i do like to jump in every so often
could you list what are you current issues and we'll see if myself and others can help get them crossed off
I'll post up my most recent changes i've made.. its got some nice features on the detail view so that it handles imdb Triva & Rating etc..
K.a.z
*edit*
I just looked on my copy of ANTP and when i export with the create table option, the SQL file created sets the RATING field as INT. So are you say for you its set being set has a Float?
your problem with the DATE ADDED is due to the export, make sure you have it Date set to be yyyy' / 'mm' / 'dd this is because MySQL hold the date in the format.. you can however always change how it gets displayed over in MDB by editting mdb_config.inc and change the DATE_FORMAT settings.
Its been ages since i've played with this script.. i do like to jump in every so often
could you list what are you current issues and we'll see if myself and others can help get them crossed off
I'll post up my most recent changes i've made.. its got some nice features on the detail view so that it handles imdb Triva & Rating etc..
K.a.z
*edit*
I just looked on my copy of ANTP and when i export with the create table option, the SQL file created sets the RATING field as INT. So are you say for you its set being set has a Float?
your problem with the DATE ADDED is due to the export, make sure you have it Date set to be yyyy' / 'mm' / 'dd this is because MySQL hold the date in the format.. you can however always change how it gets displayed over in MDB by editting mdb_config.inc and change the DATE_FORMAT settings.
Last edited by kazgor on 2009-05-01 14:25:50, edited 1 time in total.
-
- Posts: 96
- Joined: 2006-03-12 01:07:41
A feature I would like to see implented is being able to choose the page to display.
Instead of just next or previous, having something like page 1.2.3.4.5... etc, or a pulldown. Something like this. Because it can be a pain to reach page #100 when you have to go through each one.
But I really don't know how to do it...
Instead of just next or previous, having something like page 1.2.3.4.5... etc, or a pulldown. Something like this. Because it can be a pain to reach page #100 when you have to go through each one.
But I really don't know how to do it...
** I wasn't using the latest copy of the program.. i now say Ratings being created as a Float :-) **
ok i haven't tested this.. but the theory should go along the following lines.
Keep the RATING field as a FLOAT like you doing so far and then you can play with the logic in the following section... I'm doing this from memory so there will be syntax/errors i bet.
in MDB_MOVIE.INC find function template()
before the function closes, ie before return $tpl;
add
this will now create a new field that you can reference in the templates. so instead you now use $MOVIE[RATING_RND]
this way you can display both rating to see if it working as it should be.
Ideally you could do the above without creating a new field instead you would just take RATING out of the array that being created and then you can do a little tweak to the above code to be
give it a whirl
ok i haven't tested this.. but the theory should go along the following lines.
Keep the RATING field as a FLOAT like you doing so far and then you can play with the logic in the following section... I'm doing this from memory so there will be syntax/errors i bet.
in MDB_MOVIE.INC find function template()
before the function closes, ie before return $tpl;
add
Code: Select all
$tpl->add_var("\$MOVIE[RATING_RND]", (round($this->data['RATING'])));
this way you can display both rating to see if it working as it should be.
Ideally you could do the above without creating a new field instead you would just take RATING out of the array that being created and then you can do a little tweak to the above code to be
Code: Select all
$tpl->add_var("\$MOVIE[RATING]", (round($this->data['RATING'])));