plain page plain page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

plain page

Started by nanothree, November 26, 2004, 06:32:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nanothree

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

Nibbler

<?php
define
('IN_COPPERMINE'TRUE);
require(
'include/init.inc.php');
pageheader('Enter your page title here');
?>

Content here
<?php
pagefooter
();
?>

michael singer

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?

skeezmo

<?php
pagefooter
();
?>


Where does this actually lead to.  Like is there a php file for it or something...

Tranz

It is a function that generates the code for the page footer.

Joachim Müller

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

michael singer

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

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

michael singer

thank you, casper, this is exactly what i wanted to know!

donnoman

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.