Log in

View Full Version : Profile-Views


Hoffi
06-14-2004, 10:00 PM
Here it is. It was Requested in vBulletin-Germany.com

It counts when someone ist viewing somebody others Profile and counts it Up.
It don't count if a user is viewing his own Profile.

I have not added a Flood Control, so if the User is hitting Reload it counts up and up and up. ;)

Update 2004-06-18

Languages: English and German

Now there are two Versions in the txt-File. One with and one without Flood-Control.


The Views were stored in a new Table:
Everytime the user visits the site it is checkes if he is first time visiting or when he looks last time at this profile. If the counter must be incremented three Querys are neccessary. If not only one.
Also Guest-Views are not counted any more.
And I now use a Phrase for the Text in the Template.
The Future:

Install Script
vBuletin Options

daveone
06-15-2004, 09:23 PM
I tested it and it works perfectly! Thank you

Oblivion Knight
06-15-2004, 10:17 PM
Perhaps guest views should also not be counted? :)

monstergamer
06-15-2004, 10:21 PM
View Profile: monstergamer (1 mal angesehen)???
whats mal angesehen
i changed it to Page View

FleaBag
06-15-2004, 10:31 PM
Awesome, I've been waiting for this from vB2. I'll see if I can use my old profile counts too.

FleaBag
06-15-2004, 10:45 PM
It worked! Just had to alter the name of the field. :) Thanks for this.

007
06-15-2004, 11:08 PM
There's a VB2 hack for this... Actually the VB2 hack works on VB3 with no changes to the original hack I believe. That's how I've been counting profile views since I installed VB3 :)

Hoffi
06-16-2004, 10:14 AM
There's a VB2 hack for this... Actually the VB2 hack works on VB3 with no changes to the original hack I believe. That's how I've been counting profile views since I installed VB3 :)
Yes, "mal angesehen" ist German. ;) just Translate it to something you like.

@006: In the vB2 Hack all Views were counted, also the own.

I will see and build an Update that Guests Views are not counted.

007
06-16-2004, 01:47 PM
Ahh I see. I forgot about that. I forgot that I made a few changes to it lol. I amde themw ay back for VB2 and forgot i made them I guess. The way I did it was so guests views, and the profile owner's views don't count. It would be nice if in your version you could get the flood control working, although I don't think it would be worth it if it added queries.

Hoffi
06-17-2004, 04:28 PM
To prevent Flod Control it is necessary to an own Table where I store the views in and control the Data in there. Maybe a Count from one user is made once a day.
There are some Ideas in my Head. ;)

Hoffi
06-17-2004, 09:18 PM
Updated.
Flood Control, Phrase and No-Guest-Views are noe within the Hack.

Dean C
06-17-2004, 10:36 PM
Why not do the flood control via a session or cookie :)?

Boofo
06-17-2004, 10:39 PM
Why not do the flood control via a session or cookie :)?
Ok, I have to see this. Show us how it's done that way, buddy. ;)

Hoffi
06-18-2004, 07:08 AM
Ok, I have to see this. Show us how it's done that way, buddy. ;)
This way it was for me easier to build. Feel free to help us with this.

Dean C
06-18-2004, 09:55 AM
Eek I was never the cookie/session monster ;) Sorry i'm of no more help than an idea here :ermm:

Boofo
06-18-2004, 11:02 AM
Eek I was never the cookie/session monster ;) Sorry i'm of no more help than an idea here :ermm:
Ahhh, so you're an idea man. Ok, that'll work. ;)

Hoffi
06-18-2004, 10:05 PM
Too bad. I hoped you can teach me. ;)

Dean C
06-19-2004, 12:14 PM
Well I took a look in the PHP manual on cookies but I couldn't see how to make the cookie never expire. It didn't specifically mention how to do it so... :surprised:

Hoffi
06-20-2004, 08:35 PM
Well I took a look in the PHP manual on cookies but I couldn't see how to make the cookie never expire. It didn't specifically mention how to do it so... :surprised:
Cookie ist a bad solution if the users didn't accept Cookies. ;)

PheReFuLL
11-12-2004, 07:41 PM
There's an error in the instructions. At the bottom of the instructions, for the phrase addition, you have:

Varname: x_time_viewed

but, it should be:

Varname: x_times_viewed

Also, I installed the flood control version, but it doesn't work. oO;; Everytime you refresh, it adds to the count.

Polo
04-04-2005, 02:25 PM
I like this one :) will probably install :)

ConKien
03-30-2006, 05:54 AM
Anyone use this one for vb 3.5.x?

Hoffi
08-11-2006, 11:28 AM
I did not use it any longer, so no more Support can be given from me. If someone want to rewrite it, feel free to do it so with a little Credit.