PDA

View Full Version : Number of time a profile has been viewed


Fuitad
07-20-2002, 10:00 PM
This is the first hack I release. Hopefully, it will be useful to someone.

This hack allows your members to see how many times their profile has been viewed.

For support, please post in this thread. Avoid PM or Emails if possible. If you're really bugged, try my AIM screenname (it's in my profile)

ChangeLog:

Version 1.01:
-------------
Creation

Fuitad
07-21-2002, 09:22 PM
Posting screenshots:

In the profile:
http://fuitad.com/vbhacks/number%20of%20times%20profile%20has%20been%20viewe d/profile.jpg

For admins:
http://fuitad.com/vbhacks/number%20of%20times%20profile%20has%20been%20viewe d/admin.jpg

TaP
07-21-2002, 09:24 PM
this hack has already been made

Fuitad
07-21-2002, 09:25 PM
Well I looked for it and could not find it so made my own. Sorry :\

TaP
07-21-2002, 10:06 PM
yours has a cp feture his didnt

https://vborg.vbsupport.ru/showthread.php?s=&threadid=32049&highlight=Profile+Views+Counter

Fuitad
07-21-2002, 10:11 PM
Well then it's no so bad :)

ZiRu$
07-22-2002, 02:51 AM
will install later......thx

Crunch
07-22-2002, 07:46 AM
messed up on the template edit...[usernam] should be [username]

Fuitad
07-22-2002, 07:49 AM
Thank you, fixed!

Dean C
07-22-2002, 08:48 AM
*installs*

Chris M
07-22-2002, 05:22 PM
Great!

*installs*

Satan

Keith
07-23-2002, 12:37 PM
what modifications would be necessary to the instructions to ensure this works with 2.2.5?

Thanks.

Fuitad
07-23-2002, 01:14 PM
I'm pretty positive it would work for 2.2.x

Keta
07-24-2002, 05:13 AM
cool hack i couldn't find this one either

FleaBag
07-24-2002, 11:37 PM
You uploaded instructions as a text file, as a result replacement variables are being parsed as those of vB.org. Besides that, great hack - thanks! Working on 2.2.6. :)

lordnet
07-25-2002, 01:14 AM
Great hack ;)

my best wish...

LORD :)

MalaK_3araby
08-04-2002, 12:24 PM
*installs*

Austin Dea
08-04-2002, 04:52 PM
Is it user.php or usercp.php? You have two dif things...

Chris M
08-04-2002, 04:54 PM
User.php

Satan

Fuitad
08-04-2002, 06:04 PM
oopsi, fixed

Schorsch
08-11-2002, 05:32 AM
installed, works fine :) Thank You!

DiscussAnything
09-09-2002, 07:30 AM
I've gone over it 3 times already (and there isnt even that much), but it refuses to update the count. Am I somehow over looking something obvious?
I ran the query (successfully), edited both phps and the template, but it keeps telling me that a profile had been viewed 0 times

Fuitad
09-09-2002, 12:11 PM
Maybe you forgot to add the code in member.php?

DiscussAnything
09-09-2002, 12:23 PM
d'oh, i have NO idea what went wrong, but the member.php code just wasn't in there. It works now

* DiscussAnything feels really stupid

thanks PL :)

Fuitad
09-09-2002, 12:23 PM
it's a pleasure my friend

FleaBag
10-29-2002, 09:43 PM
This has worked in all versions for me up to and including 2.3.0. Thanks for a simple yet great hack!

Chris M
10-29-2002, 10:13 PM
Argh!!

Gamer:mad: - https://vborg.vbsupport.ru/showthread.php?s=&action=showpost&postid=316171

Satan

iblis
11-27-2002, 05:59 PM
nice hack, installed it without a single error

Zelda-King
04-30-2003, 03:39 PM
It works fine for me on vB 2.3.0. I'd prefer if self views (viewing one's own profile) didn't count though.

EDIT: Here, I did it myself. If you don't want people to raise their view count by viewing their own profile, in member.php replace // Update the DB with new count
$updateviews=$DB_site->query("UPDATE user SET profileview=$userinfo[profileview] WHERE userid=$userinfo[userid]"); with // Update the DB with new count
if($bbuserinfo[userid] != $userid) {
$updateviews=$DB_site->query("UPDATE user SET profileview=$userinfo[profileview] WHERE userid=$userinfo[userid]");
}

GaleForce
04-30-2003, 07:25 PM
Cool hack, I always wondered how many people were looking at my profile :p

Gio Takahashi
10-02-2003, 07:27 PM
Installed this hack, works nicely.

::clicks on installed::

Red Blaze
10-03-2003, 01:24 PM
Works great! Installed! ^_^

copyninja
10-10-2003, 08:47 PM
GReat hack! i just installed it with a lil modification b/c my profile template looks way from the reg. vb2 profle. it looks more like the vb3 profile

*clicks install*