coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: zeroknowledge on February 20, 2004, 08:14:28 AM

Title: [solved]: PHP Header Help
Post by: zeroknowledge 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
Title: [solved]: PHP Header Help
Post by: moorey 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 :)
Title: [solved]: PHP Header Help
Post by: zeroknowledge 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
Title: [solved]: PHP Header Help
Post by: Joachim Müller on February 20, 2004, 01:39:56 PM
http://coppermine.sourceforge.net/faq.php?q=customHeader#customHeader
http://forum.coppermine-gallery.net/index.php?topic=2357

GauGau
Title: [solved]: PHP Header Help
Post by: zeroknowledge 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.
Title: [solved]: PHP Header Help
Post by: zeroknowledge 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.

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
Title: [solved]: PHP Header Help
Post by: zeroknowledge 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.