![]() |
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. |
Great! And Thanks Again!
|
In case you still want to view it in profiles as well, find:
Code:
<tr> Code:
<tr> |
Arigato Go'zymas
|
:) nice 1
|
works great on 2.2.2 thanks
|
Does it require an extra query ? Where ?
Thanks a lot... Is there any screenshot ? |
[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. |
And a screenshot in the forum (24KB). The screenshot above is 11KB
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|