The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Chosen Usergroups can hide Reputation Power & Points from Postbit Details »» | |||||||||||||||||||||||||||||||||||||||||||
Chosen Usergroups can hide Reputation Power & Points from Postbit
Developer Last Online: Nov 2023
What is this?
This is a small Template edit that lets you choose from the Usergroup Manger (AdminCP) which Usergroups you want to allow permission from their UserCP to hide Reputation Power from their Postbit. In green is the coding for Reputation Points, in case you want to add that into your Postbit. I've only tested this on vbulletin 4.2.3- Although it should work on all vBulletin 4.X.X products. This is how to globally enable/disable Rep Power/ Reputation for your postbit: Admin CP -> Settingss -> Options -> Thread Display Options (showthread) -> Reputation Power (tick). => If disabled (not ticked), regardless of what users do, it will not appear in the Postibt. This is how to enable/disable chosen Usergroups the option to hide their Reputation via UserCP: AdminCP -> Usergroup -> Usergroup Manager -> [Select Usergroup] Go -> Can Hide Reputation from Others: Yes => If disabled (No), that usergroup will always have their Reputation shown (if Reputation isn't globally disabled from AdminCP). Instructions Postbit or Postbit_Legacy Template (whichever one you use): AdminCP -> Styles & Templates -> Search Templates -> postbit_legacy [Pick your style too] -> postbit_legacy (edit) Note: If postbit_legacy doesn't work, search "postbit" which is located below Postbit Templates. Find: Code:
<vb:if condition="$show['infraction']"> <dt>{vb:rawphrase infractions}</dt> <dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd> </vb:if> <vb:if condition="$show['reputation']"> <vb:if condition="$show['reppower']"> <dt>{vb:rawphrase reppower}</dt> <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd> </vb:if> </vb:if> </dl> </vb:if> Code:
<vb:if condition="$show['infraction']"> <dt>{vb:rawphrase infractions}</dt> <dd>{vb:raw post.warnings}/{vb:raw post.infractions} ({vb:raw post.ipoints})</dd> </vb:if> <vb:if condition="$post['showreputation']"> <vb:if condition="$show['reputation']"> <vb:if condition="$show['reppower']"> <dt>{vb:rawphrase reppower}</dt> <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd> <dt>{vb:rawphrase reputation}</dt> <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputation}</dd> </vb:if> </vb:if> </vb:if> </dl> </vb:if> Red: The essential code that I added in, for this to all work. Note: Nothing else has been changed. If you have done custom edits before, then feel free to only add in the red and/or green parts only, into the correct positions. SAVE That's pretty much it Go to settings (UserCP), General Settings and go to 'Reputation Level:' - Users (if Usergroup has permission) can choose their preference. Note 2: If you want the same thing as my screenshot, then look at the post below- Step B. Screenshots
Show Your Support
|
Comments |
#2
|
|||
|
|||
Pick between:
Postbit or Postbit_Legacy Template (whichever one you use): AdminCP -> Styles & Templates -> Search Templates -> postbit_legacy [Pick your style too] -> postbit_legacy (edit) Note: If postbit_legacy doesn't work, search "postbit" which is located below Postbit Templates. Step A: Find: Code:
<vb:if condition="$show['reputation']"> <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}"> <vb:each from="reputationdisplay" value="row"> <img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend} </vb:each> </span> </vb:if> Code:
<vb:if condition="$post['showreputation']"> <vb:if condition="$show['reputation']"> <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}"> <vb:each from="reputationdisplay" value="row"> <img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend} </vb:each> </span> </vb:if></vb:if> That's it Step B: Find: Code:
<vb:if condition="$show['reputation']"> <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}"> <vb:each from="reputationdisplay" value="row"> <img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend} </vb:each> </span> </vb:if> + Find: Code:
<dt>{vb:rawphrase reppower}</dt> <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd> <dt>{vb:rawphrase reputation}</dt> <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputation}</dd> </vb:if> </vb:if> </vb:if> </dl> </vb:if> Code:
<dt>{vb:rawphrase reppower}</dt> <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reppower}</dd> <dt>{vb:rawphrase reputation}</dt> <dd id="reppower_{vb:raw post.postid}_{vb:raw post.userid}">{vb:raw post.reputation}</dd> <vb:if condition="$show['reputation']"> <span class="postbit_reputation" id="repdisplay_{vb:raw post.postid}_{vb:raw post.userid}" title="{vb:raw post.username} {vb:raw post.level}"> <vb:each from="reputationdisplay" value="row"> <img class="{vb:raw row.class}" src="{vb:stylevar imgdir_reputation}/reputation_{vb:raw row.posneg}{vb:raw row.imgext}" alt="" />{vb:raw row.rowend} </vb:each> </span> </vb:if> </vb:if> </vb:if> </vb:if> </dl> </vb:if> Blue: I just moved the deleted code over here. Red: The end IF condition, for the change done in the first/original post. That's it ------------------------------------------------------------------------------------------------------------------------------------------------------ If you want to force X Usergroups/Users Display Reputation On/Off from their profile, then check out my guide here: https://vborg.vbsupport.ru/showthrea...58#post2555258 If you don't give them permission to Hide Reputation from Others, then whatever you want will stay permanently, until you/another admin decides otherwise. |
#3
|
|||
|
|||
"Mark as Installed" if you did this Template edit and/or just found this thread useful.
Note: I don't know too much about html coding. However if you're unsure about postbit_legacy template edits, or require additional help regarding that, I think I should be able to help. ------- Change Log: v1.00 = Create a custom User Profile Field to add/remove reputation power/points from the postbit. v2.00 = No longer need to create a custom User Profile Field. You can use vbulletin's built in Show/Hide Reputation from the UserCP. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|