how can i get a page that has nothing on it except for the navoiagtion bars and menus at the top, the background and the footer? l
<?php
define('IN_COPPERMINE', TRUE);
require('include/init.inc.php');
pageheader('Enter your page title here');
?>
Content here
<?php
pagefooter();
?>
hmm... where to put this code...?
create a single php file?
can this be integrated in theme.php? wouldn't it need a function there to be called?
<?php
pagefooter();
?>
Where does this actually lead to. Like is there a php file for it or something...
It is a function that generates the code for the page footer.
the starter of this thread asked for a file with only the coppermine navigation to be displayed, that's what the code Nibbler posted does.
@skeezmo and michael singer: what do you want to accomplish? Probably something different. I recommend not asking what code snippets are good for what purpose, but to explain what you actually want to accomplish and ask for code snippets. ;D
In both cases: if you really want to start learning php, go to http://www.php.net, find a good tutorial on the internet, buy a book on php those three options will help. Asking what a function does won't help you if you even don't know what a function is... ;)
Joachim
what i want to accomplish, is the following:
the "about" and "links" pages of my website are currently simple html, because i didn't know it better. now i'd like to integrate them in coppermine more properly. the snippet that nibbler posted seems to be perfect for this purpose. i just don't know where to put this function and how to call it.
you're absolutely right, joachim, it's not your job to teach php here. i think it's getting time for me to learn some php myself.
sorry for stupid questions. you and all the other mods of this board and helped me such a lot, answering all my questions so patiently, i just want to let you know, that i'm very thankful for this.
michael
Well, to use the code nibbler posted, simply put the html code from your 'about' page (not the header, just the content you want shown), in where it says 'Content here'.
Then name the file 'about.php' and upload it to your gallery folder. Now just browse to it, and it should show, with all the coppermine headers, menus and footers.
You would then want to add a link in your menu in theme.php.
thank you, casper, this is exactly what i wanted to know!
I did some work on a theme interpreter, this one specifically for the theme hardwood that accomplishes the same tasks.
The idea could be adapted to any theme.
See this post:
http://forum.coppermine-gallery.net/index.php?topic=11650.msg52795#msg52795
I know of at least one other site besides mine that is using it succesfully.