Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 98
9 members and 89 guests
blo5codpressure, cheadi3apsprsb8, debrajea1, den2zqsverhonfg, jewgx3bishspo7s, paydaysubcompay, ric6tphardwaw9a, tab9tqdcpr7h4le, tidownes
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 > PHP-Nuke 6.5 to 6.9 > Nuke 6.5 to 6.9 - Blocks

Reply
 
LinkBack Thread Tools Display Modes
Problem with the nuke 6.5 visitors block.
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 1
Join Date: Mar 2003
Problem with the nuke 6.5 visitors block. - 03-27-2003, 02:27 PM

i just installed your visitors block but now i get the error about line 286 of sql_layer.php :? does anyone know how to fix this? below is a picture of the error...

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#2 (permalink))
Member
 
Status: Offline
Posts: 359
Join Date: Nov 2002
Location: Michigan, USA
03-27-2003, 05:44 PM

that would be an installation error. try deleting all files/tables and reinstalling.
  Send a message via AIM to ReNeGaDe  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Problem with the nuke 6.5 visitors block.
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 3
Join Date: Mar 2003
Re: Problem with the nuke 6.5 visitors block. - 04-03-2003, 10:24 AM

Quote:
Originally Posted by VooDoo427
i just installed your visitors block but now i get the error about line 286 of sql_layer.php :? does anyone know how to fix this? below is a picture of the error...

Hi There,
I have the same problem and I have tried to deleted and install it again few times and doesn’t help.
I have a fresh nuke 6.5
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#4 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
04-03-2003, 11:06 AM

OK which block are you guys downloading, because I downloaded BOTH Site Visitors blocks for Nuke6.5 from this site and they both work fine on my Nuke6.5 testsite...

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 3
Join Date: Mar 2003
04-03-2003, 11:29 AM

Quote:
Originally Posted by mikem
OK which block are you guys downloading, because I downloaded BOTH Site Visitors blocks for Nuke6.5 from this site and they both work fine on my Nuke6.5 testsite...

mikem
I have tried both "Visitors block" from this website. And both showing
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/tripnet/public_html/czechpub/includes/sql_layer.php on line 286

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/tripnet/public_html/czechpub/includes/sql_layer.php on line 286
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#6 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
04-03-2003, 11:49 AM

I don't know what to tell you.

I went to all this trouble.
I just setup Nuke6.5 FRESH INSTALL again on another testbed here on my local PC>
After creating my SuperUser, I installed the SiteVisitors block(both for Nuke6.5) from this site and they both work with NO errors.

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Problem with the nuke 6.5 visitors block.
Old
  (#7 (permalink))
Junior Member
 
Status: Offline
Posts: 3
Join Date: Mar 2003
Re: Problem with the nuke 6.5 visitors block. - 04-03-2003, 01:50 PM

Quote:
Originally Posted by VooDoo427
i just installed your visitors block but now i get the error about line 286 of sql_layer.php :? does anyone know how to fix this? below is a picture of the error...

Hi again,

I think I have found where the problem is:
In fact you have two lines Hard Coded in block-Site_Visitors (prefix)
Line 120 and 126

Quote:
// Executing SQL Today
$sql2 = "SELECT COUNT(user_id) AS userCount from nuke_users WHERE user_regdate LIKE '$curDate2'";
$result2 = sql_query( $sql2, $dbi );
list( $userCount ) = sql_fetch_row( $result2, $dbi );
// end

// Executing SQL Yesterday
$sql3 = "SELECT COUNT(user_id) AS userCount from nuke_users WHERE user_regdate LIKE '$curDateP'";
$result3 = sql_query( $sql3, $dbi );
list( $userCount2 ) = sql_fetch_row( $result3, $dbi );
For those who have same problem it means that you are using prefix different from nuke_
You have to change nuke_users to $prefix"._users."

Quote:
// Executing SQL Today
$sql2 = "SELECT COUNT(user_id) AS userCount from $prefix"._users." WHERE user_regdate LIKE '$curDate2'";
$result2 = sql_query( $sql2, $dbi );
list( $userCount ) = sql_fetch_row( $result2, $dbi );
// end

// Executing SQL Yesterday
$sql3 = "SELECT COUNT(user_id) AS userCount from $prefix"._users." WHERE user_regdate LIKE '$curDateP'";
$result3 = sql_query( $sql3, $dbi );
list( $userCount2 ) = sql_fetch_row( $result3, $dbi );
Keep going
dc
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#8 (permalink))
Senior Member
 
Status: Offline
Posts: 2,905
Join Date: Sep 2002
04-03-2003, 01:54 PM

Nice job dc006

I had actually just found that and changed it to prefix...let that one get by.
Of course you'll get no errors if your prefix is nuke 8)

I'll update the block files :-)

mikem
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Oops
Old
  (#9 (permalink))
Junior Member
 
Status: Offline
Posts: 12
Join Date: Apr 2003
Location: Dublin
Oops - 04-03-2003, 08:56 PM

Just posted a new question relating to Site Visitors... Should have read some more first..

I can't see the block after installing.... Lost

Mikeo
   
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
Site Visitors Block Online Now Link? jsterling Nuke 6.5 to 6.9 - Blocks 0 08-04-2003 12:43 AM
Site Visitors block MurphDog nukemods.com 2 07-20-2003 05:12 PM
Site Visitors block for 6.5 richiewinn Nuke 6.5 to 6.9 - Blocks 2 07-01-2003 03:18 AM
Site Visitors Block Link Problem bwillis Purged Topics 4 03-25-2003 03:37 PM
Site Visitors block v1.1 OiSole Purged Topics 1 03-18-2003 09:24 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