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)

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


All times are GMT. The time now is 01:42 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.01141 seconds
  • Memory Usage 1,729KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete