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: where does theme.php go?  (Read 13383 times)

0 Members and 1 Guest are viewing this topic.

gymnastdude182

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
where does theme.php go?
« on: February 27, 2005, 11:13:10 am »

i have the template.html file , and the style.css file, but i dont see where the theme.php comes in, can some1 PLEASE help me?
« Last Edit: March 01, 2005, 08:28:14 am by GauGau »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: where does theme.php go?
« Reply #1 on: February 27, 2005, 11:31:48 am »

Please provide more background information.
Logged

gymnastdude182

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: where does theme.php go?
« Reply #2 on: February 27, 2005, 09:13:57 pm »

like i made a template.html file, and a style.css file, and i HAVE a theme.php file, but i dont see where it says theme.php in either the template or css in even the default templates, how do u even edit the theme.php and have it show up on the template
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: where does theme.php go?
« Reply #3 on: February 27, 2005, 09:19:17 pm »

Please specify exactly what you want to do so we can tell you what and where to edit.
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: where does theme.php go?
« Reply #4 on: February 27, 2005, 09:28:16 pm »

I think hes saying he doesn't see any interaction between them.

when you ask for a coppermine page, it INCLUDES init.inc.php;
init.inc.php reads the database and request vars determines the theme;
init.inc.php then reads the themes template.html into memory
init.inc.php INCLUDES the themes theme.php
from then on out the coppermine script calls the functions in theme.php which produce html output based
on the in-memory template.html and its own internal templates..

only half of your theme is in template.html, all of the guts of the theme are in theme.php; ie: all of your menu buttons, etc.

and to answer the title, the theme.php goes right beside your template.html in the theme directory. Look at the default themes for examples.


Logged

gymnastdude182

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 72
Re: where does theme.php go?
« Reply #5 on: March 01, 2005, 06:04:57 am »

o awesome , i think i understand! thanks!
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.