Modification of PK's MovieDB [UPDATE 2009-06-04]
Asuming you are using the detail view, then inside the template "detail_view.tpl" you should search for a line containing something like that
In that line you find the text that is displayed when the description is longer than 300 characters. Just replace it with the french word
When you say "list of movies", are you still in detail view or in list view? In detailview, nothing happens when clicking a movie title. What should happen there? You are already seeing the details
In listview, clicking on a movie opens a javascript popup with the details.
For the third problem, in the detail_view.tpl there is a line like this
This created the popup, with the URL that is in the AMC in the field URL. You could ofcourse place the link whereever you want.
Hope I could help a bit.
Code: Select all
<div class='description'>$MOVIE[DESCRIPTION](300)
When you say "list of movies", are you still in detail view or in list view? In detailview, nothing happens when clicking a movie title. What should happen there? You are already seeing the details
In listview, clicking on a movie opens a javascript popup with the details.
For the third problem, in the detail_view.tpl there is a line like this
Code: Select all
<div class='imdb'><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='IMDB-Rating: $MOVIE[RATING], Link: $MOVIE[URL]'><span>$MOVIE[RATING]</span></a></div>
Hope I could help a bit.
whowwww !!!
really helpful ! I haven't changed yet things you told me about. But I think I already have the view (in my head...)
well, concerning the detailed view, I saw that in examples given by other contributors, when clicking on title, there's a link to the movie on it's own.
In my version, no cliking area.
First I will fix the problems with your answers. That's really really useful.
I think I'll make a special Tuto for newbies like me after all. Caus' people like me have really different way to analyse things ;-) I'll make it for retarded (hey hey !!! I mean I am retarded !)
Thanks thanks thanks a lot
Back from first test...
I found the bad word in german... yesssssssssssss !!!! one less
Then tried to find line linking trailer... That's ok in "details.tpl", but I don't know what part I have to copy, and between what and what... If I wan't to change it. Well it will depend on the third point ;-)
and last.
on this gallery : http://www.palmans.net/dvdlijst/index.php?num=57
clicking on "Title" opens a detailed page of the movie. This was the result I was expecting.
And then by some consequence, maybe having a line linking to "trailer" down the description. That should be the best
whoops... found another problem. In my database, I coded file in utf8. I thought it will take in charge accents, or special letters we have like (é-è-à-ö-ô) etc. But they are all coded now with "?". Is there any place to change this ? I know. I'm asshole
But once again, your help is really welcome. So thanks again.
really helpful ! I haven't changed yet things you told me about. But I think I already have the view (in my head...)
well, concerning the detailed view, I saw that in examples given by other contributors, when clicking on title, there's a link to the movie on it's own.
In my version, no cliking area.
First I will fix the problems with your answers. That's really really useful.
I think I'll make a special Tuto for newbies like me after all. Caus' people like me have really different way to analyse things ;-) I'll make it for retarded (hey hey !!! I mean I am retarded !)
Thanks thanks thanks a lot
Back from first test...
I found the bad word in german... yesssssssssssss !!!! one less
Then tried to find line linking trailer... That's ok in "details.tpl", but I don't know what part I have to copy, and between what and what... If I wan't to change it. Well it will depend on the third point ;-)
and last.
on this gallery : http://www.palmans.net/dvdlijst/index.php?num=57
clicking on "Title" opens a detailed page of the movie. This was the result I was expecting.
And then by some consequence, maybe having a line linking to "trailer" down the description. That should be the best
whoops... found another problem. In my database, I coded file in utf8. I thought it will take in charge accents, or special letters we have like (é-è-à-ö-ô) etc. But they are all coded now with "?". Is there any place to change this ? I know. I'm asshole
But once again, your help is really welcome. So thanks again.
Hi,yvelan wrote:I mean : the images which are displayed in the page. On your site, for example the film 10 000 has an image on the left, and if you click on the image appears the same image in real size.lafafmentvotre wrote:There are no miniatures in list_view i think.Thanks !
One problem : image miniatures do not apperas in film list. Something to correct ?
YL
Curiously, in my site the little image do not appears, but if I click on it I can see the image on normal size, but in the same page and not in a popup window like on your site. I think you have modified something other than in the template folder ?
YL
I have the same problem. Resized covers are not visible in Details view or any other Cover view, but when I click on the cover, real size picture is displayed correctly. Not sure, if I missing something, but looks like that resize script cannot find the file for resize.
Can anyone advise how to solve this, cause I like this customized template very much (thanks for the work Alex).
EDIT:
It's interesting, cause I found out, that it works perfectly on my Ubuntu laptop with apache/mysql/php installed, but not on my SUSE server, where I'm running my web server. Have no idea what might be the issues on SUSE...
EDIT2:
Looks like I solved the problem. I found an error in apache error_log (PHP Fatal error: Call to undefined function imagecreatetruecolor) and it was because I was missing PHP GD library on my system. So I installed that library and now it works like a charm. If someone has still the same problem, check out your apache logs (if you can) or see PHP Info page, if you have this library or not, so the images scripts can work as designed.
Ok, here we go...
and replace it by this line
By the way, I noticed some more problems in your current template
1) There is a link to the mediatype, look in your template for something like this:Either remove that line or place the right images in the right folder Look in your CSS for .mediatype
2) Same here, look for
3) and again, this time the audioformat:
If you have further questions, just ask
The easiset way to place a link to the trailer is using this code whereever you want the link to appear:jam wrote:Then tried to find line linking trailer... That's ok in "details.tpl", but I don't know what part I have to copy, and between what and what... If I wan't to change it. Well it will depend on the third point ;-)
Code: Select all
<a href=$MOVIE[URL] target=_blank>Trailer</a>
Ok, then search for this line:jam wrote: and last.
on this gallery : http://www.palmans.net/dvdlijst/index.php?num=57
clicking on "Title" opens a detailed page of the movie. This was the result I was expecting.
Code: Select all
<div class='translated'>$MOVIE[TRANSLATEDTITLE]</div>
Code: Select all
]<div class='translated'><a href='$MOVIE[HREF]' class='floatbox' rev="proportionalResize=false width:443 height:300 boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=8 roundBorder=false theme=black overlayOpacity=10 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:false showClose:false enableDragMove:true enableDragResize:true imageClickCloses:true">$MOVIE[TRANSLATEDTITLE]</a></div>
Then just place the line I posted at the beginning to the right place in the template, right after the descriptionjam wrote:And then by some consequence, maybe having a line linking to "trailer" down the description. That should be the best
I'm not sure, maybe that's a problem of the database import. I will look into that later.jam wrote:whoops... found another problem. In my database, I coded file in utf8. I thought it will take in charge accents, or special letters we have like (é-è-à-ö-ô) etc. But they are all coded now with "?". Is there any place to change this ? I know. I'm asshole
By the way, I noticed some more problems in your current template
1) There is a link to the mediatype, look in your template for something like this:
Code: Select all
<div class='mediatype'><a class='rating_$MOVIE[MEDIATYPE]' href='$MOVIE[MEDIATYPE_HREF]'><span>$MOVIE[MEDIATYPE]</span></a></div>
2) Same here, look for
Code: Select all
<div class='videoformat'><a class='rating_$MOVIE[VIDEOFORMAT]' href='$MOVIE[VIDEOFORMAT_HREF]'><span>$MOVIE[VIDEOFORMAT]</span></a></div>
Code: Select all
<div class='audioformat'><a class='rating_$MOVIE[AUDIOFORMAT]' href='$MOVIE[AUDIOFORMAT_HREF]'><span>$AUDIOFORMAT[TEXT]</span></a></div>
important
I need to add checkbox so that i can group my favorits and send by email
like old templates 2.2
can any one help me
my email future@future-line.us
like old templates 2.2
can any one help me
my email future@future-line.us
I Have a problem when i added new movies and i create a sql database and i upload it than will the script it not adding now i have delete the sql tabel and new creating and now have i doesn't more movies why?
here my page
http://51384715.de.strato-hosting.eu/Film/
sry for my bad english
here my page
http://51384715.de.strato-hosting.eu/Film/
sry for my bad english
File not found errorRocker wrote:here my page
http://51384715.de.strato-hosting.eu/Film/
Here is my modification for rating stars, it displays real rating in %.
screens (background star is transparency):
Downloads: rating.stars.mod.by.Sacnew.zip
Unzip and copy stars.png to templates/default/images/info/imdb/stars.png
CHANGES
OPEN: mdb_movie.inc
FIND:
AFTER ADD:
OPEN: templates/default/detail_view.tpl
FIND:
REPLACE WITH:
OPEN: templates/default/details.tpl
FIND:
REPLACE WITH:
OPEN: templates/default/style.css
FIND:
REPLACE WITH:
FIND:
REPLACE WITH:
screens (background star is transparency):
Downloads: rating.stars.mod.by.Sacnew.zip
Unzip and copy stars.png to templates/default/images/info/imdb/stars.png
CHANGES
OPEN: mdb_movie.inc
FIND:
Code: Select all
$tpl->add_var("\$MOVIE[RATING1]", $rating_round);
Code: Select all
$rating_my = 10*($this->data['RATING']);
$tpl->add_var("\$MOVIE[RATING_MY]", $rating_my);
OPEN: templates/default/detail_view.tpl
FIND:
Code: Select all
<div class='imdb'><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='IMDB-Rating: $MOVIE[RATING], Link: $MOVIE[URL]'><span>$MOVIE[RATING]</span></a></div>
Code: Select all
<div class='imdb'>
<ul class='star-rating'>
<li class='current-rating' style='width: $MOVIE[RATING_MY]%;'></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
</ul>
</div>
OPEN: templates/default/details.tpl
FIND:
Code: Select all
<div class='imdb'><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='IMDB-Rating: $MOVIE[RATING], Link: $MOVIE[URL]'><span>$MOVIE[RATING]</span></a></div>
Code: Select all
<div class='imdb'>
<ul class='star-rating'>
<li class='current-rating' style='width: $MOVIE[RATING_MY]%;'></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
<li><a class='floatbox rating_$MOVIE[RATING1]' rev="proportionalResize=false boxLeft=auto boxTop=auto shadowType=drop shadowSize=16 roundCorners=all cornerRadius=20 roundBorder=false theme=white overlayOpacity=60 outerBorder=0 innerBorder=0 padding:0 panelPadding:0 showCaption:true showClose:true enableDragMove:true enableDragResize:true imageClickCloses:true" href='$MOVIE[URL]' target='_blank' title='CSFD-hodnocení: $MOVIE[RATING_MY]%, Link: $MOVIE[URL]'>
<span>$MOVIE[RATING]</span></a></li>
</ul>
</div>
OPEN: templates/default/style.css
FIND:
Code: Select all
#mdb .movie .imdb A { width: 160px; height: 28px; display: block; padding: 0px; position:left; right: 9px; left: 9px; }
Code: Select all
#mdb .movie .imdb A { width: 200px; height: 20px; display: block; padding: 0px; position:left; right: 9px; left: 9px; }/*
FIND:
Code: Select all
#mdb .movie .imdb A.rating_10 { background-image: url('images/info/imdb/10.jpg'); }
Code: Select all
#mdb .movie .imdb A.rating_10 { background-image: url('images/info/imdb/10.jpg'); }*/
/*----------------------------------------------------------------------------------
/* MovieDB Movie Ratings stars by Sacnew
/*---------------------------------------------------------------------------------- */
.star-rating{
list-style:none;
margin: 0px;
padding:0px;
width: 200px;
height: 20px;
position: relative;
overflow:hidden;
background: url('images/info/imdb/stars.png') top left repeat-x;
}
.star-rating li{
padding:0px;
margin:0px;
width:20px;
height:20px;
float: left;
.star-rating li a {
display:block;
width:20px;
height: 20px;
line-height:20px;
text-decoration: none;
text-indent: -9000px;
z-index: 2;
position: absolute;
padding: 0px;
overflow:hidden; }
.star-rating li.current-rating {
background: url('images/info/imdb/stars.png') left bottom;
position: absolute;
height: 20px;
display: block;
text-indent: -9000px;
z-index: 1; }
a:active {
outline: none; }
Zoom1012 wrote:Hi I am new to ANT. I'd like to install this mod but there are NO installation instructions on how to install it. One of the threads said there are instructions in the package, but there are none. I'm not sure where a lot of these files should go. Any help would be appreciated.
Thanks.
For step 4 and 5 intestead:mking wrote:REQUIREMENTS
------------
1. PHP4+
2. MySQL Server 4.1+
3. ANT Movie Catalog export to a MySQL Database
4. At least some knowledge of standard HTML and PHP processes.
INSTRUCTIONS
------------
1. Download ANT Movie Catalog to build your movie database.
2. Put these files someplace on your webserver.
3. Open mdb_config.inc to review and edit all the options you have available.
Code: Select all
$this->config['mysql']['server'] = "localhost"; $this->config['mysql']['username'] = "root"; $this->config['mysql']['password'] = "password"; $this->config['mysql']['database'] = "moviedb"; $this->config['mysql']['table'] = "moviedb_table";
4. Export your Movie Database as SQL, check the option for include images.
5. Import the SQL into your MySQL Database on the server, and upload the images to the server.
4. Export your Movie database as SQL, check the option for include images and create table + drop if exists.
5. put the exported .sql file into the "antexport" folder used by default by this template (yourwebserver\antexport) and open http://yourwebserver/mdb3.php
It will run the autoimport feature to load the database and create the missing PERIOD column.
if you want to manually import the SQL as I do, you have 2 options:
- Remove the PERIOD panel from the template.
- Compile a new AMC3.5.1.2 Source using the next diff patch made by me to add the period column by default when exporting to SQL:
AMC - SQL Export: Period Column Patch
ps: I dont know if I can post a compiled binary of AMC for this.
Adding the support for that column right into amc, you can directly import the .sql with your favorite way (phpmyadmin, sqlyog, etc) and even use the update instestead of create.
And of course is way faster than building the values while importing with php.
No problem, you can do that as long as it is under the terms of GNU GPL. In short, don't delete original copyright notes and clearly mark the new version and any source file that you have changed as modified, so that it cannot be mistaken for the original version by antp. If you release the version somewhere else you need to make the full source code available, too, while here on forums it should be okay to only make modified source files available.ElMauro wrote:ps: I dont know if I can post a compiled binary of AMC for this.
Ok then here you have a compiled 3.5.1.2 binary with
- added support to automatically build and fill the period column so you can load your exported .sql to a PK's MovieDB site with your favorite tool.
- It also includes a checkbox to make the exported file UTF-8 Compliant, just in case your webhost doesnt allow you to specify the sql charset and/or you are having problems in displaying special characters.
Its based on the convert to ascii function used by stringutils.
____________________CLICK TO DOWNLOAD
__________________(check the VirusTotal Analysis of the file)
The diff patch is included, to apply in your own source or see the changes.
- added support to automatically build and fill the period column so you can load your exported .sql to a PK's MovieDB site with your favorite tool.
- It also includes a checkbox to make the exported file UTF-8 Compliant, just in case your webhost doesnt allow you to specify the sql charset and/or you are having problems in displaying special characters.
Its based on the convert to ascii function used by stringutils.
____________________CLICK TO DOWNLOAD
__________________(check the VirusTotal Analysis of the file)
The diff patch is included, to apply in your own source or see the changes.
Thanks for this, much appreciated, after moving from a paid for service to hosting my MovieDB locally on the WHS box this has helped a lot.ElMauro wrote:Ok then here you have a compiled 3.5.1.2 binary with
- added support to automatically build and fill the period column so you can load your exported .sql to a PK's MovieDB site with your favorite tool.
- It also includes a checkbox to make the exported file UTF-8 Compliant, just in case your webhost doesnt allow you to specify the sql charset and/or you are having problems in displaying special characters.
Its based on the convert to ascii function used by stringutils.
The diff patch is included, to apply in your own source or see the changes.
Sguilly
How do I change the default tpl to Cover or something else
I tried to change in the templates/default/config.inc , was unsuccessful
Edit: Btw, This template is really wonderful, thanks alex & PK
Edit 2: Found out.
I tried to change in the templates/default/config.inc , was unsuccessful
Edit: Btw, This template is really wonderful, thanks alex & PK
Edit 2: Found out.
Code: Select all
$this->template['options']['main_tpl'] = "IMGVIEW";
-
- Posts: 3
- Joined: 2010-06-08 05:05:11
Hello,
sorry my english is not the best. I learned it in school and haven’t used it in about 10 years but I will try my best to make myself clear.
My problem is that i’m not familiar with HTML or SQL, never learned it and never had any interests in using it. Till now…
I managed my movie collection in ANT Movie Cataloge and now i would like to export my collection and put it online so i can easily share it with my family and friends. Unfortunately i don’t understand a thing and don’t get this Template (mod) running.
At this point i don’t have a web space yet. All i do is trying to run this Template from my local hard drive.
Here is what i have done so far:
1. I downloaded and extracted PKs Movie Database 3.0.3 v0.9
2. I made an export of my movie list to SQL. I only checked the option for including images. No other changes where made.
3. I put the movies.sql and all the images into “moviedb\antexport”
And from this point i need your help. I don’t understand what to do next. In the description it says to edit the “mdb_config.inc” and make some changes. What exactly do i have to do now?
Have many thanks for helping me in advance and i’m realy sorry if my English isn’t any good.
best regards
holzklotz
sorry my english is not the best. I learned it in school and haven’t used it in about 10 years but I will try my best to make myself clear.
My problem is that i’m not familiar with HTML or SQL, never learned it and never had any interests in using it. Till now…
I managed my movie collection in ANT Movie Cataloge and now i would like to export my collection and put it online so i can easily share it with my family and friends. Unfortunately i don’t understand a thing and don’t get this Template (mod) running.
At this point i don’t have a web space yet. All i do is trying to run this Template from my local hard drive.
Here is what i have done so far:
1. I downloaded and extracted PKs Movie Database 3.0.3 v0.9
2. I made an export of my movie list to SQL. I only checked the option for including images. No other changes where made.
3. I put the movies.sql and all the images into “moviedb\antexport”
And from this point i need your help. I don’t understand what to do next. In the description it says to edit the “mdb_config.inc” and make some changes. What exactly do i have to do now?
Have many thanks for helping me in advance and i’m realy sorry if my English isn’t any good.
best regards
holzklotz