English > Development
PK's MovieDB dynamic website template
ruffa:
Hi, yes i thought that might be the case where like the 9th database field ORIGINALTITLE corresponds to the 9th export variable, would be easier if it could recognise the field name rather than order in the list.
But anyway i have done it successfully, in the end! i'm very greatful for your help.
I just repasted the template file into PVD as i think i may have removed some fields from the script, so fixed this, and i made the change to the script like u told me to do and it now works fine.
My next question is whats the best way to edit the main view of the database, just things like colours and aswell as adding maybe other things on either side of the database as there are 2 black empty bits where i can put extra info.
Can i do this in HTML? i think the index file is in PHP but i'm not used to using php but i do have an editor, can i edit using Front Page? or NVU?
Thanks for helping with all the info and files etc.
By the way, the film names did import ok in the end, u can have a look:
http://bwoyruff.co.cc/index.php
But i noticed the film title is not clickable like yours i just have to click the jpeg instead, but i can live with that. Actually the example on the webpage has a clickable title thats just because the entry also had info in the Title Field of PVD but most of my films titles are int he ID no section.
you will only see one entry in there right now, i did upload 2000+ but deleted them now i know it works and will now work on a new list for the web.
blue334:
Seems you already figured out how to enable/disable the side panels in mdb_confic.inc. The files that contain the html code reside in the templates/default folder.
detail_view.tpl is the main view and details.tpl is the detailed view. If you know a little html you shouldn't have any problems with these. Not sure if they will open in a wysiwyg editor though.
The colors are all defined in the stylesheet style.css with the single exception of the main background color which is defined in index.php. I think the easiest way to edit the colors is to make a screencap of the web page and open it uncompressed in photoshop or similar software. Using the eydropper tool you can identify the various colors in the stylesheet, this is easier than trying to interpret the various pointers in the stylesheet directly. Then just tweak colors as you wish using replace color in photoshop, identify the new color value and search-replace those values in the stylesheet.
There are some gif files in templates/default/images which naturally aren't tweaked using the stylesheet, you will need to edit these manually. The logo also resides here, I suspect you don't want to keep my walking egg.
rick.ca:
--- Quote ---Seems you already figured out how to enable/disable the side panels in mdb_confic.inc.
--- End quote ---
Disabling side panels may not be a good idea, although I suppose the cause of this may be something else... If a link is selected in details, that search will be executed, but then there is no way to clear it (e.g., selecting "All Movies" does nothing—the search terms stay in the URL).
ruffa:
i think i might have disabled one of the side pannels which displayed something i didn't want, maybe it was the years? i didn't really need a years display so i think i may have edited it out somewhere.
I have photoshop but i've never figured out how to use it to save web pages, but i get what u where saying about the colour changes, the main thing i want to do is disable the video bitrate and all those fields i don't use, so u guess i just need to edit the details.tpl
thanks for all your help.. i'm going to try and build a nice website to go with the database when i get time, will post a link when i eventually finnish it.
blue334:
Added allmovie rating/link to the template (also as sort option). Tags have also been added, as mentioned in an earlier post.
Will wait for an updated export plugin allowing the export of actor's role before posting new files.
Here's what my current template/page looks like:
http://mymoviecollection.co.cc/index.php
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version