View Full Version : Making a more specific spoil/hide bbcode
need2fart
05-26-2011, 07:07 AM
If you have a post count of 500 or greater this hidden content will be available
How could I create something like that utilizing members post counts? So I could define what minimum post count the user must have in order to see the hidden content?
asdfadrian
05-26-2011, 11:59 PM
In your bbcode manager for the replace code you want to do something like this if you want the user viewing the thread to have a post count greater than 50.
<if condition="$bbuserinfo[posts] > 50">
You can view this hidden message!
</else>
You must reach 50 post counts in order to view this content.
</if>
Note: The variable $userbbinfo is for vbulletin templates, if you are using a custom made page, you will need to include the globals.php, or define your variables if you have your own variable system.
I hope this helps!
That's a good thought but unfortunately it won't work because the bbcode replacement is not a template.
You could take a look at this mod: https://vborg.vbsupport.ru/showthread.php?t=230244 . I don't think it would be very hard to modify it to do what you want.
BirdOPrey5
05-29-2011, 05:24 PM
Check out this mod too. https://vborg.vbsupport.ru/showthread.php?t=97366
need2fart
06-11-2011, 07:24 AM
Check out this mod too. https://vborg.vbsupport.ru/showthread.php?t=97366
That was perfect and just what I was looking for! Thanks a lot dude. =)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.