You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 48 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Site Stats [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
biohazzardcreations
Nuke Cadet
Nuke Cadet


Joined: Jul 27, 2004
Posts: 6


PostPosted: Wed Jul 28, 2004 2:38 am Reply with quoteBack to top

Well as I am making this post I have noticed that whenever someone relods my page it add another hit to the counter. Is there anyway to make it so that the counter does not count page reloads and so that it only counts visits to the site like lets say that user logs in and click like 70 pages well I want the counter to only count as 1 (one). also I found before a way to make it so that the admin of the site is not counted towards page clicks but it only worked for the index page and after that every click and reload was counted.

If there is a way around this then please let me know,. Thank you
Find all posts by biohazzardcreationsView user's profileSend private message
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Wed Jul 28, 2004 3:00 am Reply with quoteBack to top

this is currently no such feature. You "could" add a free counter from sitemeter.com which counts unique IP address visiting your site.

Check it out in the footer of my homepage

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
biohazzardcreations
Nuke Cadet
Nuke Cadet


Joined: Jul 27, 2004
Posts: 6


PostPosted: Wed Jul 28, 2004 4:33 am Reply with quoteBack to top

Thank you for that info. I think that someone should find a way to do that in nuke.
Find all posts by biohazzardcreationsView user's profileSend private message
BrainSmashR
Support Mod
Support Mod


Joined: Jan 05, 2004
Posts: 1390

Location: Louisiana, USA

PostPosted: Wed Jul 28, 2004 12:58 pm Reply with quoteBack to top

Quote:
I think that someone should find a way to do that in nuke.


Well, it'snot very accurate. I imagine that's why it's been left out.

Any 56K user has a dynamic IP address. If they disconnect, then reconnect and check your site 3 times a day, that would be incorrectly listed as 3 different visitors because the IP address would be different.

The page counter specifically counts how many times a page has been loaded from your site, regardless of the number of users or unique IP addresses.

_________________
ImageImage
USE THE FORUM. If you contact me via messenger for support I will add you to my ignore list.
Find all posts by BrainSmashRView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN MessengerICQ Number
Willy_Wonka
Corporal
Corporal


Joined: Jun 22, 2003
Posts: 69

Location: The Chocolate Factory

PostPosted: Wed Jul 28, 2004 8:12 pm Reply with quoteBack to top

biohazzardcreation wrote:
the admin of the site is not counted towards page



That is easy fixed.
Just find in header.php
Code:

include("includes/counter.php");

and change to:
Code:

if(!$admin){include("includes/counter.php");}

In regards to if the user is logged in and count only one page per visit, I am sure that it would not take a genius to work that one out.
Find all posts by Willy_WonkaView user's profileSend private message
biohazzardcreations
Nuke Cadet
Nuke Cadet


Joined: Jul 27, 2004
Posts: 6


PostPosted: Thu Jul 29, 2004 8:25 am Reply with quoteBack to top

Thank you Willy Wonka for that it works excelently. but will it make it so that all of the pages do not count or just the index
Find all posts by biohazzardcreationsView user's profileSend private message
Willy_Wonka
Corporal
Corporal


Joined: Jun 22, 2003
Posts: 69

Location: The Chocolate Factory

PostPosted: Thu Jul 29, 2004 3:05 pm Reply with quoteBack to top

biohazzardcreations wrote:
Thank you Willy Wonka for that it works excelently. but will it make it so that all of the pages do not count or just the index


After logging in, nothing gets counted.
Find all posts by Willy_WonkaView user's profileSend private message
biohazzardcreations
Nuke Cadet
Nuke Cadet


Joined: Jul 27, 2004
Posts: 6


PostPosted: Thu Jul 29, 2004 9:33 pm Reply with quoteBack to top

Well I added that cone into the proper place and still everything gets counted. Do i need to log out and then back in for it to take effect?
Find all posts by biohazzardcreationsView user's profileSend private message
flicman
Nuke Soldier
Nuke Soldier


Joined: Jul 26, 2004
Posts: 17


PostPosted: Thu Jul 29, 2004 10:14 pm Reply with quoteBack to top

Strangely enough, this doesn't work for me, either. I'd love to have the option here, though. I'd like a slightly truer view of how many hits I'm getting each day, without my incessant reloads to check problem areas as i hack the thing to pieces.
Find all posts by flicmanView user's profileSend private messageVisit poster's website
AJJ
Nuke Soldier
Nuke Soldier


Joined: Jul 24, 2004
Posts: 14


PostPosted: Sun Aug 08, 2004 2:23 am Reply with quoteBack to top

I am using 7.2, and it doesn't work me either.

I would also like to have the solution.

AJJ
Find all posts by AJJView user's profileSend private message
nobleclem
Lieutenant
Lieutenant


Joined: May 27, 2003
Posts: 167

Location: Southfield, MI

PostPosted: Sun Aug 08, 2004 4:15 am Reply with quoteBack to top

try this and let me know if it works or not
Code:
global $admin;
if(!is_admin($admin)){include("includes/counter.php");}


Remember this will make it so that if you are logged in as an admin that the pages will not be counted. So to test it to see if its counting then log out of the administration and browse your site and see it the counter goes up....

_________________
....Check Out These Great Sites....


http://HackerAssassins.com is home to PHP-Nuke 7.4 HA Enhanced | http://FatalException.us

http://Vaelio.com < -- > The Future of CMS Technology and Design Today -- coming soon
Find all posts by nobleclemView user's profileSend private messageVisit poster's websiteAIM AddressMSN MessengerICQ Number
AJJ
Nuke Soldier
Nuke Soldier


Joined: Jul 24, 2004
Posts: 14


PostPosted: Sun Aug 08, 2004 11:19 am Reply with quoteBack to top

Now its working Smile

Thanx buddy
Find all posts by AJJView user's profileSend private message
nobleclem
Lieutenant
Lieutenant


Joined: May 27, 2003
Posts: 167

Location: Southfield, MI

PostPosted: Sun Aug 08, 2004 1:29 pm Reply with quoteBack to top

Glad I could help.

What was wrong with the origional code is that the variable $admin even though you are logged out can still have data in it there fore will always stop the counter for those who have logged into the admin panel. So using the is_admin($admin) for a check is better where it will return a 0 if you are not logged in.

_________________
....Check Out These Great Sites....


http://HackerAssassins.com is home to PHP-Nuke 7.4 HA Enhanced | http://FatalException.us

http://Vaelio.com < -- > The Future of CMS Technology and Design Today -- coming soon
Find all posts by nobleclemView user's profileSend private messageVisit poster's websiteAIM AddressMSN MessengerICQ Number
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.227 Seconds - 250 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::