coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: dpatel304 on March 30, 2008, 03:56:27 AM

Title: How to create a blank page that has the same style as the current template?
Post by: dpatel304 on March 30, 2008, 03:56:27 AM
I want to create a web page that shares the same theme as my coppermine page, but I will only be putting text on there.  I was wondering if there was any way to create a page like this.

Thanks.
Title: Re: How to create a blank page that has the same style as the current template?
Post by: Stramm on March 30, 2008, 10:13:39 AM
needs to be in the coppermine base dir
<?php

/***********
* plain text
***********/


define('IN_COPPERMINE'true);
require(
'include/init.inc.php');
pageheader('Test page');
starttable('100%''Test table'1);

echo <<<EOT
<tr>
<td>
Text comes here
</td>
</tr>

EOT;

endtable();
pagefooter();
ob_end_flush();
?>
Title: Re: How to create a blank page that has the same style as the current template?
Post by: pixstreet on May 17, 2008, 10:10:05 PM
I have another question related to this. does anyone know how to create a page outside of my gallery which retains all the coppermine features and themes. So that I can maintain a uniform appearance to my website.

www.pixstreet.co.uk (http://www.pixstreet.co.uk)
Title: Re: How to create a blank page that has the same style as the current template?
Post by: Joachim Müller on May 19, 2008, 08:39:26 AM
As suggested in this thread, the file you need to create needs to reside in coppermine's root folder. You can not create a file outside that folder that will use coppermine's navigation and theme due to the internal structure of coppermine's include folder.