PK's MovieDB Release.V3.0 (Dynamic PHP View)

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
Khaeotica
Posts: 10
Joined: 2009-03-02 09:18:30
Location: Germany
Contact:

Post by Khaeotica »

Indeed, it works this way. Many thanx to you, my friend!:grinking:
Now it looks just fine, with just a few small adjustments more :)
tonybeccar
Posts: 3
Joined: 2008-10-05 05:33:41

Bad quality resized images

Post by tonybeccar »

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! :)
ouafouaf
Posts: 8
Joined: 2008-03-27 12:45:42

Post by ouafouaf »

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 ?
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

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.
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

ouafouaf 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 ?
It seems to work here... just slow to load
ouafouaf
Posts: 8
Joined: 2008-03-27 12:45:42

Post by ouafouaf »

c'est parceque j'ai viré le script de resize, l'image entière se charge a la place, resize html... C'etait le seul moyen sur free...

--

I just changed the layout and didnt use the resize script.
Jorn
Posts: 6
Joined: 2009-04-20 21:15:16

Post by Jorn »

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).


Image

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:

Image

[stars show 3.5 stars but rating was 7.8 so should be 4 stars (round to 8)
Leakcim
Posts: 2
Joined: 2009-04-29 14:27:48

Post by Leakcim »

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.

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(); ?> 
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

PHP est-il installé sur le serveur ?
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

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...
johndick
Posts: 8
Joined: 2009-04-29 18:36:47

I have the same problem

Post by johndick »

I have the same problem

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(); ?>
and if I have installed php perfect.
johndick
Posts: 8
Joined: 2009-04-29 18:36:47

Problem resuelto

Post by johndick »

para resolver el siguiente error.
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(); ?>
activar "short open tag" en php
active "short open tag" on php
Leakcim
Posts: 2
Joined: 2009-04-29 14:27:48

Post by Leakcim »

thank you it's work fine now !
Jorn
Posts: 6
Joined: 2009-04-20 21:15:16

Post by Jorn »

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...
haha yes thats the problem :) i cant find the file/place to make the roundoff work sadly.
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

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.
johndick
Posts: 8
Joined: 2009-04-29 18:36:47

Post by johndick »

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:

Image

[stars show 3.5 stars but rating was 7.8 so should be 4 stars (round to 8)
nice template!! :grinking:

where you can get to try it
Jorn
Posts: 6
Joined: 2009-04-20 21:15:16

Post by Jorn »

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 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..
johndick wrote:nice template!!

where you can get to try it
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.
When its done and stable, and enough ppl are interested, i will make a public version.
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

Post by kazgor »

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.
Last edited by kazgor on 2009-05-01 14:25:50, edited 1 time in total.
sandmanweb
Posts: 96
Joined: 2006-03-12 01:07:41

Post by sandmanweb »

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...
kazgor
Posts: 175
Joined: 2006-05-08 13:13:52
Contact:

Post by kazgor »

** 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

Code: Select all

$tpl->add_var("\$MOVIE[RATING_RND]", (round($this->data['RATING'])));
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

Code: Select all

$tpl->add_var("\$MOVIE[RATING]", (round($this->data['RATING'])));
give it a whirl :)
Post Reply