Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to create a blank page that has the same style as the current template?  (Read 2431 times)

0 Members and 1 Guest are viewing this topic.

dpatel304

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

needs to be in the coppermine base dir
Code: [Select]
<?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();
?>

pixstreet

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • pixstreet.co.uk

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 16 queries.