Help with NSN Script

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Help with NSN Script
Andrew
CZ Newbie
Andrew has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 02, 2004
0.00 posts per day
Posts: 16
Points: 771
   
Eeeeeek, Anyone help *Again*

i have tried to install NSN Groups to my Nuke php and i am getting an error


Fatal error: Call to a member function on a non-object in /home/stcom/public_html/index.php on line 18
i have not done anything apart from added the php files and followed the README file to what it told me to do icon_sad.gif

If anyone could help it would be great !

Thanks in advance

Andrew



Back to top Reply with quote
#2   re: Help with NSN Script
Milkman
CZ Super Newbie
Milkman has been a member for over 20 year's 20 Year Member
Gender: Male
Status: Offline
Joined: Dec 28, 2003
0.01 posts per day
Posts: 45
Points: 2,228
   
I'm not sure if i can help, but if you post the contents of line 18 of index.php, it will help me help you (no i'm not jerry mcguire).



Back to top Reply with quote
#3   
Andrew
CZ Newbie
Andrew has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 02, 2004
0.00 posts per day
Posts: 16
Points: 771
   
Ok here is the line18




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



Hope this helps you get a fix icon_rolleyes.gif

icon_cry.gif icon_cry.gif icon_cry.gif

A Sad - Andy



Back to top Reply with quote
#4   re: Help with NSN Script
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Andrew post the first 100 lines of the index.php please and did you install the sql file with this add-on?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   
Andrew
CZ Newbie
Andrew has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 02, 2004
0.00 posts per day
Posts: 16
Points: 771
   
Yes Telli i went to myphp and idd it int here i hope thats how i was meant to do it, it came up and installed anyway



require_once("mainfile.php");
$_SERVER['PHP_SELF'] = "modules.php";
$sql = "SELECT main_module from ".$prefix."_main";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$name = $row[main_module];
$home = 1;

if ($httpref==1) {
$referer = $_SERVER["HTTP_REFERER"];
$referer = check_html($referer, nohtml);
if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) {
} else {
$sql = "INSERT INTO ".$prefix."_referer VALUES (NULL, '$referer')";
$result = $db->sql_query($sql);
}
$sql = "SELECT * FROM ".$prefix."_referer";
$result = $db->sql_query($sql);
$numrows = $db->sql_numrows($result);
if($numrows>=$httprefmax) {
$sql = "DELETE FROM ".$prefix."_referer";
$result = $db->sql_query($sql);
}
}
if (!isset($mop)) { $mop="modload"; }
if (!isset($mod_file)) { $mod_file="index"; }
if (ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mod_file) || ereg("\.\.",$mop)) {
echo "You are so cool...";
} else {
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/module.php")) {
include("themes/$ThemeSel/module.php");
if (is_active("$default_module") AND file_exists("modules/$default_module/$mod_file.php")) {
$name = $default_module;
}
}
if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
$modpath = "themes/$ThemeSel/";
}
$modpath .= "modules/$name/$mod_file.php";
if (file_exists($modpath)) {
include($modpath);
} else {
$index = 1;
include("header.php");
OpenTable();
if (is_admin($admin)) {
echo "<center><font class=\"\">"._HOMEPROBLEM."</font><br><br>[ <a href=\"admin.php?op=modules\">"._ADDAHOME."</a> ]</center>";
} else {
echo "<center>"._HOMEPROBLEMUSER."</center>";
}
CloseTable();
include("footer.php");
}
}

?>


Thanks for the help Telli its appreciated bro

Andy



Back to top Reply with quote
#6   
Andrew
CZ Newbie
Andrew has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 02, 2004
0.00 posts per day
Posts: 16
Points: 771
   
by the way Telli thats the whole script apart from the content by the auther

Andy



Back to top Reply with quote
#7   re: Help with NSN Script
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
There in an installer in this package that needs to be run from the root next to the config file did you run that?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   re: Help with NSN Script
Andrew
CZ Newbie
Andrew has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 02, 2004
0.00 posts per day
Posts: 16
Points: 771
   
Well Telli, i ran teh install and recieved a page full, so i could not copy and paste it as it was in different areas so i will post teh screen shot



i hope this helps bud

Thanks again for the help

Andy



Back to top Reply with quote
#9   re: Help with NSN Script
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Thats what it says when you try to run the installer? What is the name of your databse? is it differant then nuke?




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#10   re: Help with NSN Script
Andrew
CZ Newbie
Andrew has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Feb 02, 2004
0.00 posts per day
Posts: 16
Points: 771
   
Telli,

That was when i had ran teh installer it then gave me a an error like that i tried to view the main page and the same error occuerd, same error as my original problem, any ideas bud ?

Thanks

Andy



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum