Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: I'm not quite gripping the concept of the theme.php file  (Read 2139 times)

0 Members and 1 Guest are viewing this topic.

MrBiggZ

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
I'm not quite gripping the concept of the theme.php file
« on: May 03, 2008, 02:49:02 am »

Greetings!

I'm creating my own theme so it suits my page.  Got a header and footer that are working very well.  But I can't for the likes of me understand what is going on in the theme.php file.

I want to stay away from tables.  Don't like them.  I'm big on CSS though.  Now I'm guessing things like the sys_menu, sub_menu and admin_menu those items in the menu itself have variable names.  What are they?  Now would I built my list in the theme.php file?

The examples I've seen of the theme.php file have been majorly confusing and I don't really find the documentation very clear on the subject.  Can somebody help me?  Not asking you to do it for me .. just tell me how it works or where there's something written in plain english on how that files and its inner workings .. work!

I appreciate it much!  I'm like 92% done with my page .. i really really want to get this part completed! :)

Many thanks in advance!
Logged

steveeh131047

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Posts: 217
Re: I'm not quite gripping the concept of the theme.php file
« Reply #1 on: May 03, 2008, 10:21:15 am »

MrBiggZ,

I'm no expert, but I think this is how it works:

The "sample theme" theme.php file contains all the "core" elements which go to make up the gallery. Copy the appropriate code for any element that you want to style uniquely into your own theme.php file where you can then apply CSS selectors etc. Code for elements that are NOT defined in your theme.php file will default to the code that was in the "sample" theme.php file. Don't copy everything across - just those elements you need to style uniquely. Hope that makes sense :)

If it helps, take a look at the skeleton "pseudo frames" theme I produced: http://forum.coppermine-gallery.net/index.php/topic,51596.0.html It contains quite a lot of "non-table" layout, and has some useful modifications input by Joachim which show how to modify PHP code copied from the "sample" theme to produce CSS styled "Unordered Lists" for menu items.

Steve

Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.