call cpg meta on non cpg pages call cpg meta on non cpg pages
 

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

call cpg meta on non cpg pages

Started by TheSystemSucks, April 02, 2007, 04:01:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TheSystemSucks

Hi, I am trying to add the cpg meta login form to a php file in my 'root/'  but My cpg install is at 'root/galleries/'
I thought this thread http://forum.coppermine-gallery.net/index.php?topic=42712.0 on making a new cpg page
may help by showing what require(?) tags (or others?) I need to have and modify..

Sammi said his from scratch cpg page would be at the gallery root ('root/galleries')
perhaps I mod require('include/init.inc.php');to require('../galleries/include/init.inc.php')
and then add then add it all to the 'root/' page?
<?php
define
('IN_COPPERMINE'true);
require(
'../galleries/include/init.inc.php');
pageheader("simple page");
?>


add the login form meta here..

<?php
pagefooter
();
ob_end_flush();
?>

like that? but it doesn't work, just blank page..

Joachim Müller

Custom pages using Coppermine's header and footer can only reside within the folder coppermine is installed in. Subsequently, the method you propose (using a nested path to the include file) will not work. The reason is that the triggered include file will itself include some more files, expecting them within a relative path from the folder the page is in.
Just create your custom page within the coppermine folder and everything should be fine.