Way to change index.php? Way to change index.php?
 

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]

Main Menu

Way to change index.php?

Started by ChaosCrusader, October 17, 2004, 03:38:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ChaosCrusader

Currently I'm using an html file to put the text of my website on and then providing a link to the gallery.

I'm wondering if it's possible to create a index.php file just to have the text on (perhaps using anycontent) and then providing a link to the gallery.

By doing that the user can still log into the site on the  text only index page.

Sorry if this makes no sense.  You might understand better if you check out the site www.finalfrontier.za.net.  That loads the text html page, you then click the link to galleries and it loads the index.php file and shows the galleries.

I've added the anycontent for the Copyright info, but if I put all the text on the page, the galleries will become "lost" and people won't know just to scroll down to view the gallleries.

Basically what I'm asking is it possible to create an index page with just the anycontent module (if that's the right term)

Joachim Müller

create a page named for example "disclaimer.php" and save it into the coppermine root folder. Use a plain text editor to add this content:<?php
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader('your page title');
?>

Your html content goes here.
<?php
pagefooter
();
ob_end_flush();
?>
This as a sort of miny-coppermine page that has coppermine's navigation and overall look, with any contnt you could think of in it.

Joachim

ChaosCrusader

Thanks a million, that's sound like exactly what I want.  I'll try it out and see if it works.  Thanks again!