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: [solved]: PHP Header Help  (Read 4121 times)

0 Members and 1 Guest are viewing this topic.

zeroknowledge

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[solved]: PHP Header Help
« on: February 20, 2004, 08:14:28 am »

Hello,
     I would like to add a php header to coppermine. What would be the best way of going about this? Is there a tutorial on this? I've searched both your site and google and can't I can't come up with anything I comprehend.

Thanks in advance for your help.

-Zero
Logged

moorey

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 404
[solved]: PHP Header Help
« Reply #1 on: February 20, 2004, 09:36:40 am »

theme.php for php stuff, template.html stuff. There are some "mods" that allows both of them to be intermixed/renamed.. generally workable, but not entirely recommended, but do give it a go though - you'd learn a lot :)
Logged

zeroknowledge

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[solved]: PHP Header Help
« Reply #2 on: February 20, 2004, 10:58:15 am »

So adding this
http://partyornot.net/header.php

to this

http://www.partyornot.net/coppermine/

would require a mod? Do you happen to know what the "mods" name is?
Why wouldn't a include (sorry, I'm no programmer) type of statement work?

Thanks for the speedy reply above.

-Zero
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

zeroknowledge

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[solved]: PHP Header Help
« Reply #4 on: February 20, 2004, 07:26:53 pm »

Thanks so much for the help. I'll give it a shot and report back on how I do.
Logged

zeroknowledge

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[solved]: PHP Header Help
« Reply #5 on: February 20, 2004, 11:54:45 pm »

I wasn't able to get that "code" to work for me. I got a parse and a fatal error.

Code: [Select]
Parse error: parse error, expecting `','' or `';'' in /home/partyorn/public_html/coppermine/themes/black_widdow/theme.php on line 774

Fatal error: Call to undefined function: pageheader() in /home/partyorn/public_html/coppermine/index.php on line 439


I found this thread and tryed some of thier suggestions but it still doesn't work.

http://coppermine.sourceforge.net/oldboard/viewtopic.php?t=701

Does anyone have any suggestions on what I should do?

P.S.- I was bright enough to get my background to work. That was easy.

-Zero
Logged

zeroknowledge

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
[solved]: PHP Header Help
« Reply #6 on: February 21, 2004, 04:37:35 am »

I got it to work. I'm not sure how but it works and that's whats important.

Thanks everybody for the help.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 14 queries.