PK's MovieDB Release.V3.0 (Dynamic PHP View)
not sure i understand.. check out http://php.net/manual/en/function.date.php so you can choose how you want your date displayed.
so November 30, 1999 would be
$this->config['options']['date_format'] = "F d, Y";
so November 30, 1999 would be
$this->config['options']['date_format'] = "F d, Y";
My problem is that you only see 31 11 1999 and not the actual date of entry
http://backupfilm.altervista.org/movie/
http://backupfilm.altervista.org/movie/
See what date format is expected by your database, and make sure the sql file has the same format for dates. If your database uses 0000-00-00 so must your sql file.
If they don't match you need to A) configure your system so they match of B) change date format in the sql script itself using regular expressions
If they don't match you need to A) configure your system so they match of B) change date format in the sql script itself using regular expressions
Hello!
First of all big congrats for all the guys who contributed to this template. Excellent job!
I managed to implement this template on my website (www.livsiad.com/filme). Now all I want is:
- a drop down box for page navigation (so the user can select the page to jump);
- a better html presentation for awards (something like a Word bullet list); right now the awards look quite ugly
As I'm not so good in php and html, has anyone any idea on how can these things be accomplished?
Thanks a lot and don't let this project die!
First of all big congrats for all the guys who contributed to this template. Excellent job!
I managed to implement this template on my website (www.livsiad.com/filme). Now all I want is:
- a drop down box for page navigation (so the user can select the page to jump);
- a better html presentation for awards (something like a Word bullet list); right now the awards look quite ugly
As I'm not so good in php and html, has anyone any idea on how can these things be accomplished?
Thanks a lot and don't let this project die!
I just installed the latest version of Ant Movie Catalog, it was a long time ago I updated my site. So now I uploaded my sql file, and I noticed that the stars (rating) is not showing, not even the picture. The rating is in my sql file, and the pictures are uploaded on the web.
It was working before I uploaded my new sql file. Anyone know how to fix this? http://strik.tv/dvd/
Thanks!
It was working before I uploaded my new sql file. Anyone know how to fix this? http://strik.tv/dvd/
Thanks!
Have you checked, what the html says at the position where the rating should be? It seems as the rating of the first movie is 6.5, therefore the html is looking for a class called "rating_6.5" which doesn't exist. The CSS only got "rating_6". There seems to be a problem with rounding the rating. Check the template.
Could anyone please look wy my ratings are not displayed, you can download my template here http://www.strik.tv/dvd.rar
Thanks in advance!
Thanks in advance!
I just tested the original script at http://strik.tv/moviedb2 and here also no ratings being displayed. I made a screenshot of my export settings, the problem started when I installed the latest version of AMC and Windows 7.Eddie wrote:Have you checked, what the html says at the position where the rating should be? It seems as the rating of the first movie is 6.5, therefore the html is looking for a class called "rating_6.5" which doesn't exist. The CSS only got "rating_6". There seems to be a problem with rounding the rating. Check the template.
Screenshot: http://img695.imageshack.us/img695/1300/exporttosql.png
I'm now sure, but you could try this:
in the file mdb_movie.inc search for this:
and add right after it.
then in your templates search for and replace it by
Tell me if that's working.
in the file mdb_movie.inc search for this:
Code: Select all
$tpl->add_subtpl("DIRECTORS", $this->_templates_names("DIRECTORS", "DIRECTOR", $this->directors));
$tpl->add_subtpl("PRODUCERS", $this->_templates_names("PRODUCERS", "PRODUCER", $this->producers));
Code: Select all
$rating_round = round($this->data['RATING']);
$tpl->add_var("\$MOVIE[RATING1]", $rating_round);
then in your templates search for
Code: Select all
rating_$MOVIE[RATING]
Code: Select all
rating_$MOVIE[RATING1]
Its working! Great work! Thanks!Eddie wrote:I'm now sure, but you could try this:
in the file mdb_movie.inc search for this:and addCode: Select all
$tpl->add_subtpl("DIRECTORS", $this->_templates_names("DIRECTORS", "DIRECTOR", $this->directors)); $tpl->add_subtpl("PRODUCERS", $this->_templates_names("PRODUCERS", "PRODUCER", $this->producers));
right after it.Code: Select all
$rating_round = round($this->data['RATING']); $tpl->add_var("\$MOVIE[RATING1]", $rating_round);
then in your templates search forand replace it byCode: Select all
rating_$MOVIE[RATING]
Tell me if that's working.Code: Select all
rating_$MOVIE[RATING1]
-
- Posts: 62
- Joined: 2009-11-12 05:53:14
Hi all.
Is it possible that someone provide alink to download the PK's MovieDB ?
Because the original link in the first post of this thread is not working anymore.
Thank you 4 reading this.
Regards,
The_Observer.
Ok i found it ,in case someone else is searching you can download it from here
Is it possible that someone provide alink to download the PK's MovieDB ?
Because the original link in the first post of this thread is not working anymore.
Thank you 4 reading this.
Regards,
The_Observer.
Ok i found it ,in case someone else is searching you can download it from here
Hi all,
Nice template that I wish to use on my page.
However there are too many panels on left side of the page. Many of them are useless. I want to delete the following panels : PERIOD, LANGUAGES, AUDIOFORMAT, SUBTITLES, YEAR. What should I do in coding ?
I only want two panels left on the left side : CATEGORIES and DIRECTORS. Does someone know how to get that display ?
Last, when opening a movie page, I want COMMENTS to be displayed instead of ACTORS. I need your help here too.
Thanks.
Nice template that I wish to use on my page.
However there are too many panels on left side of the page. Many of them are useless. I want to delete the following panels : PERIOD, LANGUAGES, AUDIOFORMAT, SUBTITLES, YEAR. What should I do in coding ?
I only want two panels left on the left side : CATEGORIES and DIRECTORS. Does someone know how to get that display ?
Last, when opening a movie page, I want COMMENTS to be displayed instead of ACTORS. I need your help here too.
Thanks.
Assuming you are in detail view, then look for the file "detail_view.tpl".
Inside this file look for this:
and replace it with
You must also replace the part infront of it, otherwise it will still say "Actors: " infront of your comment
You can style it the way you want. The variable $MOVIE[COMMENTS] just outputs the dbfield 'comments'.
Hope that helps.
Inside this file look for this:
Code: Select all
{ACTORS;3;, }<a href='$ACTOR[HREF]'>$ACTOR[NAME]</a>{/ACTORS}
Code: Select all
$MOVIE[COMMENTS]
You can style it the way you want. The variable $MOVIE[COMMENTS] just outputs the dbfield 'comments'.
Hope that helps.
Sorry, this script will not run on my Server.
I have Suse 11.2 with PHP5.
If i use this package as is, i get
Jan 31 18:36:19 Linserver httpd2-prefork: PHP Notice: Undefined variable: moviedb in /srv/www/htdocs/index.php on line 16
Jan 31 18:36:19 Linserver httpd2-prefork: PHP Fatal error: Call to a member function get_version() on a non-object in /srv/www/htdocs/index.php on line 16
L
in my message logfile.
I think it's a problem with my PHP configuration.
Can anyone help me?
Thanks
GoofySGR
I have Suse 11.2 with PHP5.
If i use this package as is, i get
Jan 31 18:36:19 Linserver httpd2-prefork: PHP Notice: Undefined variable: moviedb in /srv/www/htdocs/index.php on line 16
Jan 31 18:36:19 Linserver httpd2-prefork: PHP Fatal error: Call to a member function get_version() on a non-object in /srv/www/htdocs/index.php on line 16
L
in my message logfile.
I think it's a problem with my PHP configuration.
Can anyone help me?
Thanks
GoofySGR