Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
Chosen Usergroups can hide Reputation Power & Points from Postbit Details »»
Chosen Usergroups can hide Reputation Power & Points from Postbit
Version: 2.00, by akz645 akz645 is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.2.3 Rating:
Released: 08-10-2015 Last Update: Never Installs: 4
Template Edits
Re-useable Code  
No support by the author.

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>
Replace with:
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>
Green: That's the code for reputation points to appear in your postbit. Don't add that, if you don't want to display it.
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

File Type: png Show Reputation.png (9.3 KB, 0 views)
File Type: png Hide Reputation.png (8.4 KB, 0 views)
File Type: jpg Thread Display Options (showthread).jpg (44.1 KB, 0 views)
File Type: jpg Reputation Power (tick).jpg (106.6 KB, 0 views)
File Type: png Usergroup Manager.png (5.1 KB, 0 views)
File Type: jpg [Select Usergroup] Go.jpg (24.5 KB, 0 views)
File Type: jpg Can Hide Reputation from Others.jpg (17.7 KB, 0 views)
File Type: jpg Go to settings (UserCP), General Settings.jpg (62.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-11-2015, 02:50 PM
akz645 akz645 is offline
 
Join Date: Jul 2015
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Pick between:
  • Step A -> If you want to hide the reputation bar (green/empty)
  • Step B -> If you want to hide the reputation bar (green/empty) & relocate it's position below Rep Power & Reputation

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>
Replace with:
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>
Red: The essential code that I added in, for this to all work.

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>
^Delete all of that
+
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>
Replace with:
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>
Green: That's the code for reputation points to appear in your postbit. Don't add that, if you don't want to display it.
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.
Reply With Quote
  #3  
Old 09-02-2015, 11:31 PM
akz645 akz645 is offline
 
Join Date: Jul 2015
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

"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.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:42 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05677 seconds
  • Memory Usage 2,264KB
  • Queries Executed 19 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (8)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete