vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Profile-Views (https://vborg.vbsupport.ru/showthread.php?t=66203)

Hoffi 06-14-2004 10:00 PM

Profile-Views
 
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

Quote:

Originally Posted by 006
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

Quote:

Originally Posted by Dean C
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

Quote:

Originally Posted by Boofo
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

Quote:

Originally Posted by Dean C
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

Quote:

Originally Posted by Dean C
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:

Quote:

Varname: x_time_viewed
but, it should be:

Quote:

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.


All times are GMT. The time now is 05:50 PM.

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.01255 seconds
  • Memory Usage 1,752KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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