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

Issvar 03-27-2002 08:57 AM

I edited my reply about queries, it's not released as template hack as it requires a file change and a database change as well.

Admin 03-27-2002 08:59 AM

This hack shows the amount of times a user viewed a thread, not the amount of threads a user has viewed. :)

Jawelin 03-31-2002 08:57 PM

Quote:

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

Bye

No, sorry. I was explained not too well... ;)
I meant I liked very much your UserCP look'n'feel... and asked if u had/would 'released' some tip to create something like in the Template forum of vb.org....
I know this hack need code modification (i asked for queries, do you remember? :nervous: ) so it's of course a Full Release hack...

Excuse me for having generated a misunderstanding.
Thanks.

o0oKARo0o 05-12-2002 03:39 AM

Still quite interesting hack, thanks anyway ;)

wolfe 10-13-2002 01:39 PM

thanx d00d :D

Kars10 11-05-2002 10:33 AM

Cool Hack. Ive modified it a bit to work on forumhome. Thanks a lot!!
* Minifreunde klicks install!


All times are GMT. The time now is 02:45 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.01067 seconds
  • Memory Usage 1,741KB
  • 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)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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