/webassist/plugins/main_menu/menu.php
and
/webassist/plugins/cms_templates/footer.php
Thx Ray, I have been able to do the menu link, but I cant seem to be getting it right with the footer. I guess its because I dont know much about php yet. Can you please show me where I need to enter my values; "Powered by KingzGold Technologies", with the link www.kingzgold.com, that will be opened in a new window when clicked? I wish you can me fix this into the footer code below for me now....
Thx.
<?php require_once('../../../Connections/PowerStoreConnection.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_PowerStoreConnection, $PowerStoreConnection);
$query_CMStoRS = "SELECT C2.ContentGroup, C2.ContentPageSetOrder FROM ps4_contents AS C1 LEFT OUTER JOIN ps4_contents AS C2 ON C2.ContentPagesetParentID = C1.ContentID WHERE C1.ContentGroup = 'Footer Pages' AND C2.ContentPageSetOrder IS NOT NULL GROUP BY C2.ContentPageSetOrder ORDER BY C2.ContentPageSetOrder DESC";
$CMStoRS = mysql_query($query_CMStoRS, $PowerStoreConnection) or die(mysql_error());
$row_CMStoRS = mysql_fetch_assoc($CMStoRS);
$totalRows_CMStoRS = mysql_num_rows($CMStoRS);
?>
<html>
<head>
</head>
<body>
<ul>
<?php
$row=0;
?>
<?php do { ?>
<?php
$row++;
$class="";
if (!isset($pastFirst)) {
$class = "first";
}
if ($row==$totalRows_CMStoRS) {
if (!isset($pastFirst)) {
$class = " ";
}
$class .= "last";
}
$pastFirst=true;
?>
<li <?php if ($class!="") { echo('class="'.$class.'"'); } ?>><a href="../../../page.php?Footer Pages=<?php echo $row_CMStoRS['ContentPageSetOrder']; ?>"><?php echo $row_CMStoRS['ContentGroup']; ?></a></li>
<?php } while ($row_CMStoRS = mysql_fetch_assoc($CMStoRS)); ?>
</ul>
</body>
</html>
<?php
mysql_free_result($CMStoRS);
?>