<head>
<meta name="description" content="my description here...">
<meta name="keywords" content="my keywords here....">
</head>
<?php
$DIR=preg_split("/[\/\\\]/",dirname($_SERVER['PATH_TRANSLATED']));
if ($DIR[count($DIR)-2] == "modules") {
echo "<html><body><h1>ERROR</h1>You installed the standalone Coppermine into your Nuke portal.
".
"Please download and install a CPG Port: <a href=\"http://sourceforge.net/project/showfiles.php?group_id=89658\">CPG for PostNuke OR CPG for PHPnuke</a></body></html>";
die();
} // end check
define('IN_COPPERMINE', true);
define('INDEX_PHP', true);
require('include/init.inc.php');
if ($CONFIG['enable_smilies']) include("include/smilies.inc.php");
/**
* Local functions definition
*/
function html_albummenu($id)
should be...
<?php
$yournewcode = '
\n<head>\n
<meta name="description" content="my description here...">\n
<meta name="keywords" content="my keywords here....">\n
</head>\n
';
$DIR=preg_split("/[\/\\\]/",dirname($_SERVER['PATH_TRANSLATED']));
if ($DIR[count($DIR)-2] == "modules") {
echo "<html>$yournewcodehere<body><h1>ERROR</h1>You installed the standalone Coppermine into your Nuke portal.
".
"Please download and install a CPG Port: <a href=\"http://sourceforge.net/project/showfiles.php?group_id=89658\">CPG for PostNuke OR CPG for PHPnuke</a></body></html>";
die();
} // end check
define('IN_COPPERMINE', true);
define('INDEX_PHP', true);
require('include/init.inc.php');
if ($CONFIG['enable_smilies']) include("include/smilies.inc.php");
/**
* Local functions definition
*/
function html_albummenu($id)
You cannot add headers directly to that because PHP needs to be able to send/alternate them at that point (or the code your using, at least). So to get around it...you need to insert the metatags into the PHP code directly, so what I did was first create a new variable "yournewcode", set it to the stuff you wanted, then placed the variable in the PHP output,
echo "<html>$yournewcodehere<body>...
since your code has the head tag...it'd go after <html> and before <body>...
simple as that, if I made any sense (I hope I did)...! The \n means next line, just to make the HTML look a little better (FYI).