I got the bug worked out on my site with I found that
Code:
//Executing SQL Today
$sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDate2'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$userCount = $row[userCount];
//end
//Executing SQL Today
$sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDateP'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$userCount2 = $row[userCount];
//end
In the Excuting SQL Today part I see that $curDateP well I couldnt find that anywhere. SO I change it to
Code:
$sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDate3'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$userCount2 = $row[userCount];
As you can see I added the 3 instead of the P and now it works grrrreat!
So then I got this great idea to change some code around with your info block to add the security block. I FAIL!!!!!!!!!!!
Parse error: parse error in /usr/home/raver/www/htdocs/blocks/block-User_Info.php on line 157
Okay I said to myself what the F@!# did I do wrong. Here is the code worked as I see it. Can you please look at it and hook me up. Line 157 is the last line of code FYI
Code:
<?php
/************************************************************/
/* Update for PHP-Nuke 6.5 - 08 March 2003 RaverNews */
/* website http://ravernews.com */
/* */
/* Update for PHP-Nuke 6.5 - 01 March 2003 Nukecops */
/* website http://www.nukecops.com */
/* */
/* Updated for PHP-Nuke 5.6 - 18 Jun 2002 NukeScripts */
/* website http://www.nukescripts.com */
/* */
/* Updated for PHP-Nuke 5.5 - 24/03/2002 Rugeri */
/* website http://newsportal.homip.net */
/* */
/* (C) 2002 */
/* All rights beyond the GPL are reserved */
/* */
/* Please give a link back to my site somewhere in your own */
/* */
/************************************************************/
if (eregi("block-block-User_Info.php",$_SERVER['PHP_SELF'])) {
Header("Location: index.php");
}
//Executing SQL Today
$sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDate2'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$userCount = $row[userCount];
//end
//Executing SQL Yesterday
$sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDate3'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$userCount2 = $row[userCount];
//end
$guest_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=1"));
$member_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=0"));
What do you see on the bottom line???? That's where CurDateP is defined. That's above the SQL block above the SQL block that CurDateP is in.
On Another Note: My User Info block works fine and has done since me and Chatserv were working on it.
AI
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Sat Mar 08, 2003 5:42 am
also, if you download the User Info block that's been in our downloads section for over a week, you'd know that I've already done the security block mod on it.
Just to save you some time.
AI
ravernews Premium
Joined: Jan 26, 2003
Posts: 230
Location: USA
Posted:
Sat Mar 08, 2003 5:57 am
Yeah I have used your block but for some reason the yesterday sign ups are the same as the total sign ups. Something is jacked up somewhere in my site. Thanks for you time.
_________________ I am new at this, give me time.
PHPNUKE = Less Code
NukeCops = More power
PhpNuke + NukeCops = "less code more power"
ArtificialIntel
Joined: Jan 31, 2004
Posts: -88
Posted:
Sat Mar 08, 2003 6:00 am
have you got the one I posted last week? cause it had a couple of code changes in it.
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