WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Link Hits

Version:
printPrint


Link Hits
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004
Total Topics: 13
Total Posts: 44
Posted 12/02/04 - 01:29 PM:
quote post
#1
Can you help me with two questions:

1)I'm modifying my links directory as a kind of toplist and want to detect and show if a link is currently in a rising/falling trend.For this, I need to compare the number of link hits in the past two days. How can I create a variable, or store data for "the hits link received yesterday" and "the day before"? When {LINKHITSOUTTEMP} is set to 1 day, can it be used in some way for this purpose?

Any ideas will be greatly appreciated.

2){LINKHITSOUTIPS} variable.(Searched the forum and the manual but couldn't find anything,sorry if I missed it.) Does it count the unique number of hits from each visitor?

Edited by piskedi on 12/02/04 - 03:14 PM
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6163
Posted 12/03/04 - 01:43 AM:
quote post
#2
1) It'll give you hits since the last reset, which would be every 24 hours, yes. I don't know that this will be useful for a trend, since for much of the day it'll have very little data (if it resets at 5 AM, then at 6 AM a link may have a value of 1 there, which isn't really much of a trend to go by).

2) I believe it just stores the IP addresses of clicks in order to prevent them from being re-counted from the same person more often than you want them to be.

Edited by Paul on 12/03/04 - 01:45 AM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004
Total Topics: 13
Total Posts: 44
Posted 12/03/04 - 11:19 AM:
quote post
#3
What I mean by a "rising/falling trend" is not any sophisticated statistics, of course This is what I'm trying to do, like some toplists do:

Let's assume a link got 6 hits yesterday.
-If it gets 7 hits today(rising), an "arrow up" will be shown with it the next day.
-If it gets 5 hits today(falling), it'll display an "arrow down".
-If the number of hits is 6, the same as yesterday, it'll display an equal sign.
I can do this by using statements like X>Y...up.gif X...equal.gif..etc.

So I need to compare the last two days hits, but I don't know how to obtain the number of hits for yesterday and the day before.

I have got more than 100 links on my index page, moving up and down by hits out all the time. If I can display their "up" or "down" positions as I've mentioned, it'll look like the stock exchange board Actually this is how I want it to look like.
I'll be glad if you share any ideas about "hits yesterday" and "the day before"..
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004
Total Topics: 13
Total Posts: 44
Posted 12/04/04 - 09:50 AM:
quote post
#4
By the way, I've added two new links to the directory, and {LINKHITSOUTPERDAY} showed 688 and 590 for them at first, without a single click!

Now everytime I refresh the page I see those values decreasing every minute. They were 32 and 40 at last, don't know why but it's really funny
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6163
Posted 12/06/04 - 11:13 AM:
quote post
#5
There must have been a click. 688 would be a normal value for one click over a small number of seconds.

Do remember, by the way, that hits out per day is not a daily trend but an overall average.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
piskedi
Member

Usergroup: Member
Joined: Oct 17, 2004
Total Topics: 13
Total Posts: 44
Posted 12/06/04 - 11:54 AM:
quote post
#6
Yes, now it's clear..I thought hits were divided straight into the number of days. I had forgotten that days were stated in seconds.

LINKHITSOUTPERDAY is not a daily trend, but as I've mentioned, I have to compare LINKHITSOUTTEMP(set to 1 day) to a past day's value to detect an increase or decrease in hits. But there's no such link variable. So for now, I compare {..perday} to {..outtemp} and obtain a status of the link, if it received more or less hits than its own average(which is not so meaningful).

Every clue or bright ideas are welcome
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.