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)
-   -   Show the amount of threads a user has viewed (https://vborg.vbsupport.ru/showthread.php?t=36592)

Issvar 03-25-2002 10:00 PM

Show the amount of threads a user has viewed
 
Simple hack but it was requested on the request forum.

Anytime a user is logged in and views a thread it will increase the threadcounter by one. Ofcourse if you want to be sure not to miss any thread views turn off guest access.

Comments are welcome.

frozt 03-26-2002 08:22 PM

Great! And Thanks Again!

Issvar 03-26-2002 08:41 PM

In case you still want to view it in profiles as well, find:
Code:

<tr>
        <td bgcolor="#1C5780"><normalfont><b>Total Posts:</b></normalfont></td>
        <td bgcolor="#1C5780"><normalfont>$userinfo[posts] ($postsperday posts per day)</normalfont></td>
</tr>

And add after that:
Code:

<tr>
        <td bgcolor="#1C5780"><normalfont><b>Total Views:</b></normalfont></td>
        <td bgcolor="#1C5780"><normalfont>$userinfo[views]</normalfont></td>
</tr>

This has already been added to the hack text file, so no need to do this if you downloaded after this was posted.

Neo 03-26-2002 08:45 PM

Arigato Go'zymas

Xanthine 03-26-2002 08:56 PM

:) nice 1

Recluse 03-27-2002 04:49 AM

works great on 2.2.2 thanks

Jawelin 03-27-2002 07:23 AM

Does it require an extra query ? Where ?
Thanks a lot... Is there any screenshot ?

Issvar 03-27-2002 07:45 AM

[edit]Stupid me, it does require a query, it ofcourse has to update the views. So one more (very simple) query per thread viewed.[/edit]

As for output, it writes Views: 12345 beneath Posts: 4321 in threads and profile.

Views means how many threads that user saw while logged in since the hack is installed.

A screenshot of the Views line added in the profile is attached.

Issvar 03-27-2002 07:47 AM

And a screenshot in the forum (24KB). The screenshot above is 11KB

Jawelin 03-27-2002 08:23 AM

Thanks a lot.
Very cool even your UserCP interface... do you 'release' it in Template forum ? ;)

Thanks again. I'll install it ASAP.
Bye


All times are GMT. The time now is 12:32 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.01014 seconds
  • Memory Usage 1,724KB
  • 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
  • (1)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