Who is Where

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Who is Where
Othic
CZ Super Newbie
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
I have just got the who is where block, and I followed the directions that the readme told me to do. I get an error:


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/interne/public_html/portal/includes/sql_layer.php on line 238

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/interne/public_html/portal/includes/sql_layer.php on line 342

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/interne/public_html/portal/includes/sql_layer.php on line 238

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/interne/public_html/portal/includes/sql_layer.php on line 342



Back to top Reply with quote
#2   
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,475
   
The block who is where? I have that on this site but i dont remember where i got it from. I will look and see if i can find it.

Telli




_________________
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
#3   
Othic
CZ Super Newbie
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
I already have the block... it just doesn't work correctly



Back to top Reply with quote
#4   
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,475
   
Ok try placing this in the includes/my_header.php and see how that goes:

// Start Who is where /
global $user, $cookie, $prefix, $db, $name;
   cookiedecode($user);
    $ip = $_SERVER["REMOTE_ADDR"];
   $url = $_SERVER["REQUEST_URI"];
    $uname = $cookie[1];
    if (!isset($uname)) {
        $uname = "$ip";
        $guest = 1;
    }
    $past = time()-900;
    $sql = "DELETE FROM ".$prefix."_whoiswhere WHERE time < $past";
    $db->sql_query($sql);
    $sql = "SELECT time FROM ".$prefix."_whoiswhere WHERE username='$uname'";
    $result = $db->sql_query($sql);
    $ctime = time();
    if ($row = $db->sql_fetchrow($result)) {
   $sql = "UPDATE ".$prefix."_whoiswhere SET username='$uname', time='$ctime', host_addr='$ip', guest='$guest' , module='$name', url='$url' WHERE username='$uname'";
   $db->sql_query($sql);
    } else {
   $sql = "INSERT INTO ".$prefix."_whoiswhere (username, time, host_addr, guest,module,url) VALUES ('$uname', '$ctime', '$ip', '$guest','$name','$url')";
   $db->sql_query($sql);
    }
// End Who is where /


Telli



_________________
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   
Othic
CZ Super Newbie
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
I already did that. Now for some reason I can't get my uploader to connect to my site :neutral:



Back to top Reply with quote
#6   
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,475
   
I had them both working i had to move the preloader down in the footer though. You have to mess with those two for some reason they cause a conflict.

Telli




_________________
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
#7   
Othic
CZ Super Newbie
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
Umm... what exactly do you mean?



Back to top Reply with quote
#8   
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,475
   
Pack up the two mods and the files you need to edit in a zip and attach to the board with the instructions and i will see if i remember what i had to. It was a while ago is why im not sure what i had to do to get them to work.

Telli




_________________
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
#9   
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,475
   
Hey i remember now i the part of the preloader that goes in the footer try this instead and make a backup of original.




_________________
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   
Othic
CZ Super Newbie
Gender: Male
Status: Offline
Joined: Oct 31, 2003
0.00 posts per day
Posts: 32
Points: 1,831
   
icon_confused.gif You are really going over my head here. I downloaded the file, but what do i do with it?



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