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

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

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!