Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.4.x
Author Message
Dauthus
Worker
Worker


Joined: Oct 07, 2003
Posts: 211

PostPosted: Fri Jan 13, 2006 10:04 pm Reply with quote

I am using this bit of code, (from your block) to add the Nuke Sentinel to the footer of my site (in theme.php)

Code:
<center><img src=\"images/nukesentinel/Sentinel_Small.png\" alt=\"You have been warned!\" title=\"You have been warned!\"><br />We have caught ".intval($total_ips)." shameful hackers.</center>

   <center><a href=\"http://www.nukescripts.net\" target=\"_blank\" title=\"NukeSentinel&trade; Available at Nuke Scripts Network\">"._AB_NUKESENTINEL." ".$ab_config['version_number']."</a></center>


The code works everywhere except the forums. For some reason it doesn't pull the amount of caught hackers in the forum footer. Any suggestions?

You can see what it looks like by going here:
Only registered users can see links on this board! Get registered or login!

Thanks for any help.

_________________
Only registered users can see links on this board! Get registered or login!
Vivere disce, cogita mori 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Sat Jan 14, 2006 7:48 am Reply with quote

well my guess is that it doesnt pulls the info from the phpbb root...cause if you look closely it shows the proper sentinel version on the index but not anymore if your in the forums.
Explained as that the $total_ips isnt defined anywhere.
What your missing is:

global $db, $prefix, $ab_config;
$total_ips = $db->sql_numrows($db->sql_query("SELECT * FROM `".$prefix."_nsnst_blocked_ips`"));
if(!$total_ips) { $total_ips = 0; }
 
View user's profile Send private message
Dauthus
PostPosted: Sat Jan 14, 2006 11:46 am Reply with quote

Ok, it is fixed. I had the code in the theme.php, hitwalker, I just didn't have it in the proper place. I had it too far down in the code.

Thanks for the help.
 
hitwalker
PostPosted: Sat Jan 14, 2006 12:57 pm Reply with quote

your welcome:)
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> NukeSentinel™ v2.4.x

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©