|
» .::. |
tattoo fonts http://www.checkoutmyink.com/category/tattoo-fonts-tattoo
|
|
 |
|
Nukemods Forum
> NM Staff
> Purged Topics
|
Strange error in the bottom of the site.This is a discussion on Strange error in the bottom of the site. within the Purged Topics forums, part of the NM Staff category; I have to head out of here(at work) but I will be back on later this evening.
Hopefully you'll have ... |
|
|
 |
|
|
|
|
|
Senior Member
Status: Offline
Posts: 2,905
Join Date: Sep 2002
|
03-14-2003, 04:47 PM
I have to head out of here(at work) but I will be back on later this evening.
Hopefully you'll have it all fixed by then
mikem
|
|
|
|
|
|
|
|
Senior Member
Status: Offline
Posts: 2,905
Join Date: Sep 2002
|
03-14-2003, 04:49 PM
Read my other post too above on your Banners. Try uploading original theme.php file.
I logged in and NOW I SEE the ERROR on the main page. I think it is related to your banners in the footer....but I could be wrong...
mikem
ba back later
|
|
|
|
|
|
|
|
Junior Member
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
|
03-14-2003, 04:50 PM
I will do mt very best! But i have been working on this one all day! It is now 22:51 CET so i won't be too long around! It isn't disturbing, the error, but it is strange dough!
|
|
|
|
|
|
|
|
Senior Member
Status: Offline
Posts: 2,905
Join Date: Sep 2002
|
03-14-2003, 04:55 PM
Ok I notice you have moved the banners to your footer. This might be the problem.
Make a backup of your theme.php(your modified one) and then re-upload the ORIGINAL one from the pack..See if you error disappears.
If it does, then it was something that has to do with moving the banners to the footer function.
try that to see.
mikem
|
|
|
|
|
|
|
|
Junior Member
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
|
03-14-2003, 04:56 PM
Oh sorry, but i had already done it! But no result.....
|
|
|
|
|
|
|
|
Junior Member
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
|
03-14-2003, 05:03 PM
Code:
<?php
/************************************************************/
/* Theme Name: smartDark */
/* Theme Design: mikem (www.nukemods.com) */
/* */
/* Theme inspired by the phpbb2 style smartDark by */
/* Daz (http://www.forumimages.com/) */
/* */
/************************************************************/
/************************************************************/
/* Theme Colors Definition */
/* */
/* Define colors for your web site. $bgcolor2 is generaly */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the */
/* other two bgcolor variables follows the same criteria. */
/* $texcolor1 and 2 are for tables internal texts */
/************************************************************/
$bgcolor1 = "#000000";
$bgcolor2 = "#000000";
$bgcolor3 = "#363636";
$bgcolor4 = "#363636";
$textcolor1 = "#FFCC00";
$textcolor2 = "#FFCC00";
include("themes/smartDark/tables.php");
/************************************************************/
/* Function themeheader() */
/* */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks */
/* function for left side with: blocks(left); */
/************************************************************/
function themeheader() {
global $user, $banners, $sitename, $slogan, $cookie, $prefix, $file, $name, $dbi;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
echo "
<script language=\"JavaScript\" src=\"themes/smartDark/fade.js\"></script>
<body background=\"themes/fiapple/images/lines.gif\" bgcolor=\"#FFFFFF\" text=\"#000000\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
if ($banners == 1) {
include("banners.php");}
$topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = sql_query("select topicid, topictext from ".$prefix."_topics order by topictext", $dbi);
while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
if ($username == "Anonymous") {
$theuser = "<a href=\"modules.php?name=Forums&file=profile&mode=register\">Create an account";
} else {
$theuser = "Welcome $username!";
}
$public_msg = public_message();
$tmpl_file = "themes/smartDark/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(left);
$tmpl_file = "themes/smartDark/left_center.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themefooter() */
/* */
/* Control the footer for your site. You don't need to */
/* close BODY and HTML tags at the end. In some part call */
/* the function for right blocks with: blocks(right); */
/* Also, $index variable need to be global and is used to */
/* determine if the page your're viewing is the Homepage or */
/* and internal one. */
/************************************************************/
function themefooter() {
global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message;
if ($index == 1) {
$tmpl_file = "themes/smartDark/center_right.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
blocks(right);
}
$tmpl_file = "themes/smartDark/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
echo "<center>\n";
$footer_message = footmsg();
echo "</center>\n";
echo "
\n";
}
/************************************************************/
/* Function themeindex() */
/* */
/* This function format the stories on the Homepage */
/************************************************************/
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
global $anonymous, $tipath;
if ($notes != "") {
$notes = "
"._NOTE." $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ($counter "._READS.")";
$tmpl_file = "themes/smartDark/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themearticle() */
/* */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home */
/************************************************************/
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
if ($notes != "") {
$notes = "
"._NOTE." $notes\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
$tmpl_file = "themes/smartDark/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themesidebox() */
/* */
/* Control look of your blocks. Just simple. */
/************************************************************/
function themesidebox($title, $content) {
$tmpl_file = "themes/smartDark/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?>
This is what my theme.php lookes like
|
|
|
|
|
|
|
|
Junior Member
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
|
03-14-2003, 05:11 PM
I have updated my MS Analysis to day. Could that be something?
|
|
|
|
|
|
|
|
Junior Member
Status: Offline
Posts: 89
Join Date: Nov 2002
Location: USA
|
03-14-2003, 06:39 PM
It's not a theme related issue. Themes do not make calls to the database for anything. This is defiantely a new block or module that you must have added around the same time you switched themes.
The problem is the offending code is trying to make a call to a table called 'forum._users'. If you have software that will allow you to search multiple files for a text string use that and run it against your entire nuke directory and try to find which file has the string 'forum._users' in it.
If you do not have such software. Just start disabling blocks/modules until you see that line go away. That way you can figure out who the culprit is. Then go into the main .php file for the offending block/module do a search for 'forum._users' and change it to 'nuke_users' then reactivate the block and see how it looks!
Good luck!
|
|
|
|
|
|
|
|
Junior Member
Status: Offline
Posts: 56
Join Date: Feb 2003
Location: The Netherlands
|
03-15-2003, 05:07 AM
Do you have a sugestion for a program to do such thing?
|
|
|
|
|
|
|
|
Senior Member
Status: Offline
Posts: 619
Join Date: Oct 2002
Location: Alabama, USA
|
03-15-2003, 09:59 AM
MS Analysis could be the problem if you did not add the code correctly to the footer.php in the main nuke directory.
Code:
function footmsg() {
global $foot1, $foot2, $foot3, $copyright, $totaltime, $starttime;
$mtime = microtime();
$mtime = explode(" ",$mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
$totaltime = ""._PAGEGENERATION." ".substr($totaltime,0,5)." "._SECONDS."";
echo "<font class=\"footmsg\">\n";
if ($foot1 != "") {
echo "$foot1
\n";
}
if ($foot2 != "") {
echo "$foot2
\n";
}
if ($foot3 != "") {
echo "$foot3
\n";
}
// DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
echo "$copyright
$totaltime
\n</font>\n";
// FOR MS-ANALYSIS ADD FOLLOWING LINE
require( "modules/MS_Analysis/mstrack.php" );
}
Make sure your's looks like this. (assuming I did it correctly) lol!
|
|
|
|
 |
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|