The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Who viewed this thread? Details »» | |||||||||||||||||||||||||
There is an enhanced version of this mod found here.
Who viewed this thread? Version: 1.0 vB-version: 3.0.0 Release Candidate 3 Developer: Gary W Install difficulty: Extremely Easy File edits: 1 Template edits: 1 Description of the Hack: This hack shows who has viewed any thread. View the screenshot to see how it looks. If you don't want to have invisible users in the list, then remove $showinvisible = 1; View the screenshot to see the hack in action Instructions FILES ------ showthread.php TEMPLATES ------------- SHOWTHREAD RUN QUERY: ALTER TABLE thread ADD whoviewed TEXT NOT NULL; ADD PHRASE: already_viewed_this_thread / Already viewed this thread: OPEN FILE showthread.php AND FIND PHP Code:
ABOVE ADD PHP Code:
OPEN SHOWTHREAD TEMPLATE AND FIND HTML Code:
$poll HTML Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"><tbody> <tr> <td class="thead"> <a style="float:$stylevar[right]" href="#top" onClick="return toggle_collapse('forumhome_todayactiveusers')"><img id="collapseimg_forumhome_todayactiveusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayactiveusers].gif" alt="" border="0" /></a> $vbphrase[already_viewed_this_thread] </td> </tr> </tbody> <tbody id="collapseobj_forumhome_todayactiveusers" style="$vbcollapse[collapseobj_forumhome_todayactiveusers]"> <tr> <td class="alt1"><div class="smallfont"> $thread[viewers] </div></td> </tr> </tbody> </table> <br /> Show Your Support
|
Comments |
#32
|
||||
|
||||
Quote:
Tnx |
#33
|
||||
|
||||
Quote:
Code:
<if condition="is_member_of($bbuserinfo,6)"> <!-- Inserted code goes here --> </if> By doing that, you are saying that that code will apply only if the User is a member of Group-ID 6 (which should be the default for Admins). |
#34
|
|||
|
|||
This is a wonderfull hack, thanks for making.
I wonder if it is possible to show the members with color depending of the usergroup where they belongs, per example Admins in red, Mods in blue, etc. Thanks again. |
#35
|
||||
|
||||
Quote:
Someone can help me, pls? Regards |
#36
|
||||
|
||||
Quote:
p.s. I'm still interested in knowing what I would need to change, if I wanted Invisible Users handled the same way it is on the Forum Home. (i.e. Only shown to those with access to see Invisible Users, suffixed with the "*" character, etc...) |
#37
|
||||
|
||||
Quote:
The code needs to be inserted into the ShowThread **Template** (NOT Showthread.php). If you put it into ShowThread.php, that would account for the Parse Error. But in the Template, the complete code to be inserted (including the Admin-Only section) is as follows: Code:
<if condition="is_member_of($bbuserinfo,6)"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"><tbody> <tr> <td class="thead"> <a style="float:$stylevar[right]" href="#top" onClick="return toggle_collapse('forumhome_todayactiveusers')"><img id="collapseimg_forumhome_todayactiveusers" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_todayactiveusers].gif" alt="" border="0" /></a> $vbphrase[already_viewed_this_thread] </td> </tr> </tbody> <tbody id="collapseobj_forumhome_todayactiveusers" style="$vbcollapse[collapseobj_forumhome_todayactiveusers]"> <tr> <td class="alt1"><div class="smallfont"> $thread[viewers] </div></td> </tr> </tbody> </table> <br /> </if> |
#38
|
||||
|
||||
Quote:
|
#39
|
||||
|
||||
Quote:
I have another question (maybe a little bug) and a suggestion: 1.) If I close the collapsable table of "Who viewed this thread" I see my Collapsable table of "Number of Active Users" in Index that is Closed too, why!? 2.) Is there the possibility to signal how many times a user has seen that threads? Tnx for the help! Regards |
#40
|
|||
|
|||
What needs to be changed in the code, if I want this bar to be Collapsed by default, rather than expanded?
|
#41
|
|||
|
|||
My table heading is showing as blank rather then stating:
"Already viewed this thread:" In the phrase manager I used "already_viewed_this_thread" as the Var name and "Already viewed this thread:" as the text. Did I goof something up? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|