- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 61 guest(s) and 0 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - no right side blocks [ ]
Author
Message
lunchbox
Corporal
Joined: Oct 28, 2003
Posts: 56
Posted:
Fri Oct 28, 2005 5:20 pm
well i have found a new theme that i love and have everything working on it but the right side blocks
i am using version 7.9.3.1
and the theme is xtaro plasma
here is the theme.php file. I thought i knew what to change but i was obviously worng.
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Plasma theme for nuke 6.5 & Up */
/* ============================================ */
/* Copyright (c) 2004 by Strato */
/* http://xtrato.com */
/* XX XX TTTTTTTTT RRRRRRRRR AAAAAAAAAA TTTTTTTTT OOOOOOOOOO
XX XX TTT RRRRRRRRRR AAAAAAAAAA TTT OOOOOOOOOOO
XX XX TTT RRR RRR AAA AAA TTT OOO OOO
XXXX TTT RRRRRRRRRR AAA AAA TTT OOO OOO
XX XX TTT RR RRR AAA AA AAA TTT OOO OOO
XX XX TTT RR RRR AAA AA AAA TTT OOOOOOOOOOO
XX XX TTT RR RRR AAA AAA TTT OOOOOOOOOOO
/* this Theme was made for PHP-NUKE 6.5 & up: Advanced Content Management System */
/* ============================================ */
/* Copyright (c) 2003 by Francisco Burzi */
/* http://phpnuke.org */
// XtratoVX1 public release theme
// Purpose of file: Theme for phpnuke
// Developed at xtrato.com
// Copyright © 2004 by Strato All Rights Reserved
/************************************************************/
/* Theme Colors Definition */
/************************************************************/
/************************************************************/
/* Theme Colors Definition */
/************************************************************/
$bgcolor1 = "#202D20";
$bgcolor2 = "#0D100C";
$bgcolor3 = "#0E110B";
$bgcolor4 = "#0E110B";
$textcolor1 = "#ffffff";
$textcolor2 = "#ffffff";
/************************************************************/
/* OpenTable Functions */
/************************************************************/
function OpenTable() {
?>
<TABLE WIDTH=100% height="26" BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
<TR>
<TD height="26" valign="top"><TABLE WIDTH=100% BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
<TR>
<TD width="41" height="26" valign="top" background="themes/Plasma-XD/images/Plasma-XD_TBL_03.gif"><IMG SRC="themes/Plasma-XD/images/Plasma-XD_TBL_01.gif" WIDTH=30 HEIGHT=56 ALT=""></TD>
<TD width="100%" background="themes/Plasma-XD/images/Plasma-XD_TBL_03.gif"> </TD>
<TD width="37" valign="top" background="themes/Plasma-XD/images/Plasma-XD_TBL_03.gif"><div align="right"><IMG SRC="themes/Plasma-XD/images/Plasma-XD_TBL_04.gif" WIDTH=36 HEIGHT=56 ALT=""></div></TD>
</TR>
</TABLE>
<TABLE WIDTH=100% BORDER=0 align="center" CELLPADDING=0 CELLSPACING=0>
<TR>
<TD width="11" valign="top" background="themes/Plasma-XD/images/Plasma-XD_TBL_08.gif"><IMG SRC="themes/Plasma-XD/images/Plasma-XD_TBL_08.gif" WIDTH=30 HEIGHT=8 ALT=""></TD>
<TD width="100%" valign="top" bgcolor="#1D2A50"><?
}
function OpenTable2() {
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" width=\"100%\" align=\"center\"><tr><td class=infolt>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" width=\"100%\"><tr><td>\n";
}
function CloseTable() {
?>
</TD>
<TD width="13" valign="top" background="themes/Plasma-XD/images/Plasma-XD_TBL_09.gif"><IMG SRC="themes/Plasma-XD/images/Plasma-XD_TBL_09.gif" WIDTH=36 HEIGHT=8 ALT=""></TD>
</TR>
</TABLE>
<table width=100% border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td width="30" height="24" valign="top" background="themes/Plasma-XD/images/Plasma-XD_TBL_13.gif"><IMG SRC="themes/Plasma-XD/images/Plasma-XD_TBL_12.gif" WIDTH=30 HEIGHT=33 ALT=""></td>
<td width="100%" valign="top" background="themes/Plasma-XD/images/Plasma-XD_TBL_13.gif"> </td>
<td width="36" valign="top" background=""><IMG SRC="themes/Plasma-XD/images/Plasma-XD_TBL_15.gif" WIDTH=36 HEIGHT=33 ALT=""></td>
</tr>
</table></TD>
</TR>
</TABLE>
<?
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
/************************************************************/
/* FormatStory */
/************************************************************/
function FormatStory($thetext, $notes, $aid, $informant) {
global $anonymous;
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
echo "<font class=\"content\" color=\"#505050\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
}
}
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $user, $userinfo, $cookie, $prefix, $user_prefix, $db, $name ,$total_time, $start_time, $dbi, $sitekey;
getusrinfo($user);
cookiedecode($user);
echo "<body background=\"themes/Plasma-XD/images/plasmaBG.gif\" topmargin=\"0\">\n";
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
$public_msg = public_message();
echo "$public_msg";
$sql = "SELECT link1, link2, link3, link4, link5, link1url, link2url, link3url, link4url, link5url FROM ".$prefix."_themecp";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$link1 = $row[link1];
$link2 = $row[link2];
$link3 = $row[link3];
$link4 = $row[link4];
$link5 = $row[link5];
$link1url = $row[link1url];
$link2url = $row[link2url];
$link3url = $row[link3url];
$link4url = $row[link4url];
$link5url = $row[link5url];
$uresult = $db->sql_query("select user_id from ".$user_prefix."_users where username='$username'");
list($uid) = $db->sql_fetchrow($uresult);
$presult = $db->sql_query("select * from ".$prefix."_bbprivmsgs where privmsgs_to_userid='$uid' AND (privmsgs_type='0' OR privmsgs_type='1' OR privmsgs_type='3' OR privmsgs_type='5')");
$pnumrow = $db->sql_numrows($presult);
$priv_msgs = "<img src=\"themes/Plasma-XD/images/have.gif\" border=0><a href=\"modules.php?name=Private_Messages\"><b>$pnumrow</b></a> <img src=\"themes/Plasma-XD/images/msg.gif\" border=0>";
if ($username == "Anonymous") {
$button1 = "<a href=\"modules.php?name=Your_Account&op=new_user\"><img src=\"themes/Plasma-XD/images/reg.gif\" border=0></a><a href=\"modules.php?name=Search\"><img src=\"themes/Plasma-XD/images/advanced.gif\" border=0></a>\n";
} else {
$button1 = "<a href=\"modules.php?name=Forums&file=profile&mode=editprofile&sid=\"><img src=\"themes/Plasma-XD/images/profile.gif\" border=0></a><a href=\"modules.php?name=Your_Account&op=logout\"><img src=\"themes/Plasma-XD/images/logout.gif\" border=0></a>\n";
}
if ($username == "Anonymous") {
$theuser = "<form action=\"modules.php?name=Your_Account\" method=\"post\"><input type=\"text\" name=\"username\" value=\"username\" onFocus=\"if(this.value=='username')this.value='';\" value style=\"width:100;height:18;FONT-SIZE: 10px;\"> <input type=\"password\" name=\"user_password\" value=\"password\" onFocus=\"if(this.value=='password')this.value='';\" value style=\"width:100;height:18;FONT-SIZE: 10px;\"><input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><input type=\"hidden\" name=\"gfx_check\" value=\"$code\"><input type=\"hidden\" name=\"op\" value=\"login\"> <input type=\"image\" class=\"liteoption1\" value=\"login\" src=\"themes/Plasma-XD/images/login.gif\" border=\"0\"></TD></form>\n";
} else {
$theuser = "<font class=content><img src=\"themes/Plasma-XD/images/welcome.gif\" border=0><b>$username</b> $priv_msgs</font></TD>\n";
}
echo "<!----- Copyright © 2003-2004 Strato Designs (http://www.xtrato.com- admin@xtrato.com ) ----->\n";
echo "<!----- Strato - Unique Themes. Currently using Plasma-XD, a commercial theme license, for more information regarding Xtrato Designs visit www.xtrato.com . ----->\n";
if ($name=='Forums') { include("themes/Plasma-XD/header.php");
} else {
include("themes/Plasma-XD/header.php");
} ;
//'Members_List','Private_Messages' // USE THIS ON THE INCLUDE IF YOU WANT NO LEFT BLOCKS FOR MEMBERLIST OR PRIVATE MESSAGE PAGE!!!!!!!!!!
//LEFT SIDE BACKGROUND
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td width=\"15\" valign=\"top\" background=\"themes/Plasma-XD/images/Plasma-XD_SIDE_05.gif\"><img src=\"themes/Plasma-XD/images/Plasma-XD_SIDE_05.gif\" width=\"100\" height=\"4\" border=\"0\"></td>\n"
."<td width=\"170\" valign=\"top\">\n";
global $swapleftright;
$swapleftright = "1";
if ($name=='Forums') {
} else {
blocks(left);
} ;
$swapleftright = "0";
echo "</td>\n"
."<td width=\"5\" valign=\"top\"><img src=\"themes/Plasma-XD/images/spacer.gif\" width=\"5\" height=\"0\" border=\"0\"></td>\n"
."<td width=\"100%\">\n";
}
/************************************************************/
/* Function themefooter() */
/************************************************************/
function themefooter() {
global $index, $banners, $prefix, $dbi, $total_time, $start_time, $db;;
$showsub = "<FORM action=modules.php?op=modload&name=Newsletter&file=index&func=action method=post><font class=copyright> <b>Email</b><br> <INPUT maxLength=100 size=20 class=\"sub\" name=new_email value=\"Your Email\" onFocus=\"if(this.value=='Your Email')this.value='';\" value style=\"width:150;height:18;FONT-SIZE: 9px;\"><BR><BR> <SELECT name=new_sub><OPTION value=sub selected>Subscribe<OPTION value=unsub>Unsubscribe</OPTION></SELECT><BR><BR> <SELECT name=new_type><OPTION value=0 selected>Text<OPTION value=1>HTML</OPTION></SELECT><br><br> <INPUT type=image class=\"liteoption1\" value=Submit src=\"themes/Plasma-XD/images/submit.gif\" border=\"0\"></font></FORM>";
$maxshow = 10; // here you can change Number of downloads to dispaly in the block.
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow", $dbi);
while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
$title2 = ereg_replace("_", " ", "<b>$title</b>");
$show .= " $a: <a href=\"links.html&l_op=viewlinkdetails&lid=$lid&ttitle=$title\">$title2</a><br> <b><font class=\"content\">$hits</b><font class=\"copyright\"> times<br>";
$showlinks = "<A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"left\" direction= \"up\" height=\"80\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>$show";
$a++;
}
global $prefix, $db;
$a = 1;
$sql = "SELECT lid, title FROM ".$prefix."_downloads_downloads ORDER BY hits DESC LIMIT 0,10";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result)) {
$title2 = ereg_replace("_", " ", $row[title]);
// $content .= "<strong><big>·</big></strong> $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$row[lid]&title=$row[title]\">$title2</a><br>";
$content .= "<strong><big>·</big></strong> <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$row[lid]&title=$row[title]\"><img src=\"themes/Plasma-XD/images/fdl.gif\" border=0></a> $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$row[lid]&title=$row[title]\">$title2</a></span><br>";
$showdl = " <font class=copyright> </b><br> <A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"left\" direction= \"up\" height=\"80\" scrollamount= \"2\" scrolldelay= \"90\" onmouseover='this.stop()' onmouseout='this.start()'>$content";
$a++;
}
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$end_time = $mtime;
$total_time = ($end_time - $start_time);
$total_time = "".substr($total_time,0,5)." "._SECONDS."";
if ($index == 1) {
echo "</td>\n"
."<td width=\"5\" valign=\"top\"><img src=\"themes/Plasma-XD/images/spacer.gif\" width=\"5\" height=\"0\" border=\"0\"></td>\n"
."<td width=\"170\" valign=\"top\">\n";
blocks(right);
}
echo "</td>\n"
."<td width=\"16\" valign=\"top\" background=\"themes/Plasma-XD/images/Plasma-XD_SIDE_04.gif\"><img src=\"themes/Plasma-XD/images/Plasma-XD_SIDE_04.gif\" width=\"99\" height=\"4\" border=\"0\"></td>\n"
."</tr>\n"
."</table>\n\n\n";
include("themes/Plasma-XD/footer.php");
}
/************************************************************/
/*The Function of themeindex() */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
if ($notes != "") {
$notes = "<br><br><b>Admin's Comment:</b> $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
//Code Changed - just show posted by
$posted1 = get_author($aid);
$posted = " $time $timezone";
//End Code Change
$tmpl_file = "themes/Plasma-XD/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themeindex() */
/************************************************************/
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
if ($notes != "") {
$notes = "<br><br><b>Admin's Comment:</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$tmpl_file = "themes/Plasma-XD/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
define('INDEX_FILE', true);
/************************************************************/
/* Function themesidebox() */
/************************************************************/
/************************************************************/
/* Function themesidebox() */
/************************************************************/
/************************************************************/
/* Function themesidebox() */
/************************************************************/
function themesidebox($title, $content) {
global $swapleftright, $bgcolor1, $bgcolor2;
if ($swapleftright=="1") {
$tmpl_file = "themes/Plasma-XD/blockR.html";
} else {
$tmpl_file = "themes/Plasma-XD/blockL.html";
}
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?>
Xyberian
Colonel
Joined: Mar 14, 2004
Posts: 1921
Location: Behind you
Posted:
Fri Oct 28, 2005 6:39 pm
I took a walk from the top to the bottom of your theme.php file.
First of all, find
and change it to
Code:
if (defined('INDEX_FILE')) {
Also, I found you put
Code:
define('INDEX_FILE, true);
For clean theme.php file, I would like to recommend you to delete the followings:
simply find and delete all $index.
That theme-pack is not compliant with 7.9.3.1 and all security patch 2.3.1 at all.
_________________ •NukeKorea Dev. Network.
•NukeKorea Laboratories
lunchbox
Corporal
Joined: Oct 28, 2003
Posts: 56
Posted:
Fri Oct 28, 2005 7:53 pm
ok this is strange i just went through all the things you told me i should do...well not one of those things is found in the script.
I searched them all out...including the fixes you gave me and they are not there...any thoughts?
Evaders99
Site Admin
Joined: Aug 17, 2003
Posts: 12397
Posted:
Fri Oct 28, 2005 8:21 pm
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum