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 -> Raven's RavenNuke(tm) v2.02.02 Distro
Author Message
txchaser
New Member
New Member



Joined: Sep 02, 2006
Posts: 8

PostPosted: Sat Sep 09, 2006 2:57 pm Reply with quote

I am wanting to know if there is a way to keep my admin account from increasing the ammount of page hits as to keep from having false # of actual page hits. I myself am adding way too many page hits scince it is counting everytime I refresh a page when modifying the site ect.
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sat Sep 09, 2006 4:08 pm Reply with quote

something like this.... [ Only registered users can see links on this board! Get registered or login! ]
 
View user's profile Send private message
floppydrivez
Involved
Involved



Joined: Feb 26, 2006
Posts: 340
Location: Jackson, Mississippi

PostPosted: Sat Sep 09, 2006 4:24 pm Reply with quote

I was going to post the same thing but it doesn't work anymore so I scripted up something new.

In includes/counter.php add $admin to your globals

Code:
global $admin, $prefix, $db;


Find

Code:
   /* Get the Browser data */


Before Add

Code:
//Stop Admin Count//

if (is_admin($admin)) {
} else {


Find

Code:
?>


Before Add

Code:
}


As far as I can tell it works fine if your logged in as admin. I will continue to test the theory and time will tell.
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
hitwalker







PostPosted: Sat Sep 09, 2006 4:37 pm Reply with quote

or change it in the header something like this.
if (is_admin($admin)) {
include("includes/counter.php");
}

there are 4 or 5 ways to do this...
 
floppydrivez







PostPosted: Sat Sep 09, 2006 4:49 pm Reply with quote

I tried that way with no luck. Could of been a user error!

Anyway let us know if that helps.
 
txchaser







PostPosted: Sat Sep 09, 2006 5:25 pm Reply with quote

Thanks hitwalker did as you stated and worked fine for me by doing it this way
or change it in the header something like this.
if (is_admin($admin)) {
include("includes/counter.php");
}
 
hitwalker







PostPosted: Sat Sep 09, 2006 5:26 pm Reply with quote

nice to hear... Wink
 
txchaser







PostPosted: Sat Sep 09, 2006 5:27 pm Reply with quote

maybe you can help me with this other question I posted I only got one response and couldnt find it. I am wanting to know if there is an up grade or suggest an upgrade to RavenNuke76 Version 2.02.02 for the banner admin area. I am wanting / needing some way to set the banners to show only for non-registered visitors or for non-paying members. If you have any clue as where to get this or if you know if it is in the works maybe or how I can get something like this done I would really appreciate it.
 
floppydrivez







PostPosted: Sat Sep 09, 2006 5:32 pm Reply with quote

txchaser wrote:
Thanks hitwalker did as you stated and worked fine for me by doing it this way
or change it in the header something like this.
if (is_admin($admin)) {
include("includes/counter.php");
}


So odd it doesn't work for me. No big deal, but if anyone has the answer.


Last edited by floppydrivez on Sat Sep 09, 2006 5:33 pm; edited 1 time in total 
hitwalker







PostPosted: Sat Sep 09, 2006 5:33 pm Reply with quote

hi,

im not realy sure what you mean....but if possible start another topic on this so others (and search results) benefit from it...
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Sep 10, 2006 10:16 pm Reply with quote

Make sure $admin is in the global

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
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 -> Raven's RavenNuke(tm) v2.02.02 Distro

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 ©