The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Post Count Conditional HELP!
I want to display some HTML to members with less than 25 posts in a template, how can this be achieved. Thank you
|
#2
|
||||
|
||||
Quote:
Code:
<if condition="$bbuserinfo['postcount'] > '25'"> Html code here </if> |
#3
|
|||
|
|||
Thanks mate, Ive just tried it but no luck.
<if condition="$bbuserinfo['postcount'] > '25'"> <p>This is a test ignore me</p> <else /> <p>Testing</p> </if> It will show Testing to all users. --------------- Added [DATE]1240180803[/DATE] at [TIME]1240180803[/TIME] --------------- I have just tested without the Code:
<else /> --------------- Added [DATE]1240180852[/DATE] at [TIME]1240180852[/TIME] --------------- Actually, take that back it doesnt show at all using that lol |
#4
|
||||
|
||||
"posts" is the field in the user table. However, it gets formatted usually (so if you have over 1000 posts, it will show at 1,000). You can't do a condition on the formatted number which means you need to somehow get the unformatted number to use for your condition.
Also, the name of the variable is just about always dependent on what template you are using it in, or what hook location. |
#5
|
|||
|
|||
Ahh so this needs a plugin then, well that's my luck up lol I dont know any PHP yet, I did see this thread but not sure how to modify it to work as what I want:
https://vborg.vbsupport.ru/showpost....36&postcount=1 --------------- Added [DATE]1240182164[/DATE] at [TIME]1240182164[/TIME] --------------- Got it working, not the same as I wanted but still Thank you. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|