The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hide certain postbit elements via option in user CP?
Some of our users have been asking us if there can be ways to change what displays in the postbit, specifically user rank images. How can we make user rank images toggleable on or off so members who do not wish to view them can turn them off from the postbit? I know it's easy to just AdBlock but that's not the sort of solution they want to hear, haha.
Thank you! |
#2
|
||||
|
||||
They want to block *everyone's* ranks (not just their own)? Create a user profile field (Do you wish to hide user ranks in threads - Yes or No) and then get the field id and put a condition around the area in the postbit (or postbit_legacy, whichever you use):
Code:
<if condition="$bbuserinfo[fieldx] == No"> Rank Code</if> |
#3
|
|||
|
|||
Thank you, it worked! But now the user rank images are being hidden by default despite "No" being set as the first option. Is there any way to make them show by default?
|
#4
|
||||
|
||||
Try this.
Code:
<if condition="$post['rank'] AND $bbuserinfo['fieldxx'] != 'No' "> Rank Code</if> I see what the problem is, the code Lynn posted: Code:
<if condition="$bbuserinfo[fieldx] == No"> Code:
<if condition="$bbuserinfo['fieldx'] == No"> |
#5
|
||||
|
||||
That works on my site in my postbit (I copied it from there), but perhaps I'm on a different version and it worked back then.
|
Благодарность от: | ||
blind-eddie |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|