The Arcive of vBulletin Modifications Site. |
|
Show the amount of threads a user has viewed Details »»
|
|||||||||||||||||||||||||||
|
Show the amount of threads a user has viewed
Developer Last Online: Jan 2006
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. Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Great! And Thanks Again!
|
|
#3
|
|||
|
|||
|
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> Code:
<tr> <td bgcolor="#1C5780"><normalfont><b>Total Views:</b></normalfont></td> <td bgcolor="#1C5780"><normalfont>$userinfo[views]</normalfont></td> </tr> |
|
#4
|
||||
|
||||
|
Arigato Go'zymas
|
|
#5
|
|||
|
|||
nice 1
|
|
#6
|
||||
|
||||
|
works great on 2.2.2 thanks
|
|
#7
|
|||
|
|||
|
Does it require an extra query ? Where ?
Thanks a lot... Is there any screenshot ? |
|
#8
|
|||
|
|||
|
[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. |
|
#9
|
|||
|
|||
|
And a screenshot in the forum (24KB). The screenshot above is 11KB
|
|
#10
|
|||
|
|||
|
Thanks a lot.
Very cool even your UserCP interface... do you 'release' it in Template forum ? ![]() Thanks again. I'll install it ASAP. Bye |
![]() |
|
|