You are missing our premiere tool bar navigation system! Register and use it for FREE!


Author: stingLocation: Apparently ALWAYS Online. . .PostPosted: Sun Aug 31, 2003 5:02 pm    Post subject:

Any other staff members out there that can possibly assist with this one?

(bumped)

Thanks,
-sting

Author: LestatPostPosted: Mon Sep 01, 2003 12:09 am    Post subject: Re: NukeLadder

Yes can another staff member help me please been awaiting a respnse for awhile now. Atleast sting took the time too look at thanks.

Author: LestatPostPosted: Mon Sep 01, 2003 10:03 am    Post subject: Re: NukeLadder

Anyone out there? Shocked
Is everyone stumped on this one? Is there anymore details I need to post?

Author: MesumLocation: ChicagoPostPosted: Mon Sep 01, 2003 10:18 pm    Post subject:

Ok, I am no guru, but for the sake of helping someone like me out.... I will install this script on my site, play with it and see what's up.

Author: MesumLocation: ChicagoPostPosted: Mon Sep 01, 2003 10:19 pm    Post subject:

Sting, you shocked me brother, this is your first time when you did not post a link to NukeResources.com...... Or so I have seen so far.

Author: LestatPostPosted: Tue Sep 02, 2003 5:02 am    Post subject: Re: NukeLadder

Excellent someone to help out. YaY!

sorry was excited been 2 days since a response. I would appreciate anyone's help on this one. I am stumped.

Author: stingLocation: Apparently ALWAYS Online. . .PostPosted: Tue Sep 02, 2003 5:59 am    Post subject:

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 

Author: MesumLocation: ChicagoPostPosted: Sat Aug 30, 2003 10:02 pm    Post subject:

Yeah..... module is not active.

Author: LestatPostPosted: Sat Aug 30, 2003 10:06 pm    Post subject: Re: NukeLadder

you sure all visitors can view it. And also is active.

Author: LestatPostPosted: Sat Aug 30, 2003 10:25 pm    Post subject: Re: NukeLadder

OK all is active now I seen what you were talking about now. sowwy! click it now.

Author: LestatPostPosted: Sun Aug 31, 2003 7:28 am    Post subject: Re: NukeLadder

does anyone know what would cause this error?
debug mode:
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 275 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 - NukeLadder NukeLadder
Goto page 1, 2, 3 ... 14, 15, 16  Next  :| |:
Nuke Cops -> Modules

Author: Lestat PostPosted: Sat Aug 30, 2003 9:57 pm    Post subject: NukeLadder

Hey all I am having issues with nukeladder can anyone help me out here. If you need the download of the nukeladder click here http://www.fraghq.com/Nukeladder10.zip

You can view the errors I am getting here (debug mode is on)
http://www.theaon.com/league1/modules.php?name=Ladders&file=article&sid=1

I keep getting errors throughout this module even though it all works fine. Well still a few bugs here and there. But if anyone can fix this mod and make compatable with 6.5 and up. Would appreciate all the help I can get. I am running 6.7 on one site that I would like to have it on.

this is the error I get on the link above. which is on 6.5


Code:
Fatal error: Call to a member function on a non-object in /home/"database"/public_html/league1/mainfile.php on line 522


but on the 6.7 i get an error

Code:
Fatal error: Call to a member function on a non-object in /usr/home/"database"/htdocs/mainfile.php on line 520


any help would be great.


Last edited by Lestat on Sat Aug 30, 2003 10:11 pm; edited 4 times in total
Code:
SQL query: select catid, aid, time, title, hometext, bodytext, game, informant, notes, acomm, haspoll, pollID, score, ratings FROM nuke_ladders where sid=1
SQL query: UPDATE nuke_ladders SET counter=counter+1 where sid=1
SQL query: SELECT game FROM nuke_ladders where sid=1
SQL query: SELECT gameid, gamename, gameimage, gametext FROM nuke_games where gameid=2


Error

Code:
Fatal error: Call to a member function on a non-object in /home/theaon2/public_html/league1/mainfile.php on line 522



mainfile.php

Code:
function cookiedecode($user) {
    global $cookie, $prefix, $db, $user_prefix;
    $user = base64_decode($user);
    $cookie = explode(":", $user);
    $sql = "SELECT user_password FROM ".$user_prefix."_users WHERE username='$cookie[1]'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $pass = $row[user_password];
    if ($cookie[2] == $pass && $pass != "") {
   return $cookie;
    } else {
   unset($user);
   unset($cookie);
    }
}



Line 522

Code:
    $result = $db->sql_query($sql);



article.php

Code:
<?php
function getgames2($s_sid) {
    global $gamename, $gameimage, $gametext, $prefix, $dbi;
    $sid = $s_sid;
    $result = sql_query("SELECT game FROM ".$prefix."_ladders where sid=$sid", $dbi);
    list($game) = sql_fetch_row($result, $dbi);
    $result = sql_query("SELECT gameid, gamename, gameimage, gametext FROM ".$prefix."_games where gameid=$game", $dbi);
    list($gameid, $gamename, $gameimage, $gametext) = sql_fetch_row($result, $dbi);
}
/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

if (stristr($REQUEST_URI,"mainfile")) {
    Header("Location: modules.php?name=Ladders&file=article&sid=$sid");
} elseif (!isset($sid) && !isset($tid)) {
    Header("Location: index.php");
}

if ($save AND is_user($user)) {
    cookiedecode($user);
    sql_query("update ".$user_prefix."_users set umode='$mode', uorder='$order', thold='$thold' where uid='$cookie[0]'", $dbi);
    getusrinfo($user);
    $info = base64_encode("$userinfo[uid]:$userinfo[uname]:$userinfo[pass]:$userinfo[laddernum]:$userinfo[umode]:$userinfo[uorder]:$userinfo[thold]:$userinfo[noscore]");
    setcookie("user","$info",time()+$cookieusrtime);
}

if ($op == "Reply") {
    Header("Location: modules.php?name=Ladders&file=comments&op=Reply&pid=0&sid=$sid&mode=$mode&order=$order&thold=$thold");
}

$result = sql_query("select catid, aid, time, title, hometext, bodytext, game, informant, notes, acomm, haspoll, pollID, score, ratings FROM ".$prefix."_ladders where sid=$sid", $dbi);
list($catid, $aid, $time, $title, $hometext, $bodytext, $game, $informant, $notes, $acomm, $haspoll, $pollID, $score, $ratings) = sql_fetch_row($result, $dbi);

if ($aid == "") {
    Header("Location: modules.php?name=Ladders");
}

sql_query("UPDATE ".$prefix."_ladders SET counter=counter+1 where sid=$sid", $dbi);

$artpage = 1;
$pagetitle = "- $title";
require("header.php");
$artpage = 0;

formatTimestamp($time);
$title = stripslashes($title);
$hometext = stripslashes($hometext);
$bodytext = stripslashes($bodytext);
$notes = stripslashes($notes);

if ($notes != "") {
    $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>";
} else {
    $notes = "";
}
if($bodytext == "") {
    $bodytext = "$hometext$notes<br>";
   
} else {
    $bodytext = "$hometext<br><br>$bodytext$notes";
}

if($informant == "") {
    $informant = $anonymous;
}

getGames2($sid);

if ($catid != 0) {
    $resultx = sql_query("select title from ".$prefix."_ladders_cat where catid='$catid'", $dbi);
    list($title1) = sql_fetch_row($resultx, $dbi);
    $title = "<a href=\"modules.php?name=Ladders&amp;file=categories&amp;op=newindex&amp;catid=$catid\"><font class=\"laddercat\">$title1</font></a>: $title";
   
}
OpenTable();
echo "<table width=\"100%\" border=\"0\"><tr><td valign=\"top\" width=\"100%\">\n";
include('standings.php'); themestandings($aid, $informant, $datetime, $title, $bodytext, $game, $gamename, $gameimage, $gametext);
echo "</td><td>&nbsp;</td><td valign=\"top\">\n";
CloseTable();
if ($multilingual == 1) {
    $querylang = "AND (blanguage='$currentlang' OR blanguage='')";
} else {
    $querylang = "";
}
echo "</td></tr></table>\n";
cookiedecode($user);
if ((($mode != "nocomments") OR ($acomm == 0)) AND ($articlecomm == 1)) {

   include("modules/Ladders/comments.php");
   
}

include ("footer.php");
?>
Mesum wrote:
Sting, you shocked me brother, this is your first time when you did not post a link to NukeResources.com...... Or so I have seen so far.


Laughing Sorry, must have forgotten that. Will have to start posting it in my tagline.

Oh yeah, I almost forgot - you could check http://www.google.com as well.

-sting

Author: Lestat PostPosted: Tue Sep 02, 2003 12:18 pm    Post subject: Re: NukeLadder

Any luck?

Author: lowflow PostPosted: Tue Sep 02, 2003 6:48 pm    Post subject: Re: NukeLadder

I am getting the same error on the Create team page, the email it sends be directs to a 404page. Any help would be greatly appreciated!

Okay nm I fixed the 404error. It was a misspelling in the variables file. Now im just getting this error :

Fatal error: Call to a member function on a non-object in /home/lowflow/public_html/skyraiders/mainfile.php on line 301

Author: Lestat PostPosted: Tue Sep 02, 2003 11:10 pm    Post subject: Re: NukeLadder

Yeah I get same error just on a different line. What version you running?



Nuke Cops -> Modules

All times are GMT - 8 Hours

Goto page 1, 2, 3 ... 14, 15, 16  Next  :| |:
Page 1 of 16

Powered by phpBB © 2001,2002 phpBB Group
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.157 Seconds - 380 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
added by Evaders - DO NOT REMOVE
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::