vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Number of time a profile has been viewed (https://vborg.vbsupport.ru/showthread.php?t=41361)

Fuitad 07-20-2002 10:00 PM

Number of time a profile has been viewed
 
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%20o...ed/profile.jpg

For admins:
http://fuitad.com/vbhacks/number%20o...ewed/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/showthrea...+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

[high]* DiscussAnything feels really stupid
[/high]

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/showthrea...&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
Code:

// Update the DB with new count
  $updateviews=$DB_site->query("UPDATE user SET profileview=$userinfo[profileview] WHERE userid=$userinfo[userid]");

with
Code:

// 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*


All times are GMT. The time now is 03:50 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01211 seconds
  • Memory Usage 1,762KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete