Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 83
7 members and 76 guests
getzw5tridofy6n, horbd4aseracidn, howsztoge2xwtp, hypye4notherape, makaa3emoneywit, res3sawumewotg4, watpperpr
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > NM Staff > Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
Old
  (#21 (permalink))
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
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#22 (permalink))
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
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#23 (permalink))
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!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#24 (permalink))
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
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#25 (permalink))
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.....
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#26 (permalink))
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&amp;op=userinfo&amp;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&amp;op=userinfo&amp;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
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#27 (permalink))
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?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#28 (permalink))
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!
 Send a message via ICQ to Cyberclark  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#29 (permalink))
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?
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#30 (permalink))
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!
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Graphics Error on Contents Page of Fission Theme mbegley Nuke 7.x - General 8 06-24-2005 03:35 PM
Green Moderator color bottom of Forum Index page Lateron Theme packs 16 08-30-2004 01:51 PM
Question bottom scroll bar on Pack-fiblue3d-6.5? empty_clips Nuke 6.5 to 6.9 - Themes 0 05-01-2003 03:51 AM
Changing bookmark link at the bottom of my forums Rhino Purged Topics 2 03-03-2003 01:57 PM
Shoutbox bottom scrollbar fixed Martin Purged Topics 2 01-04-2003 12:36 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31