The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I have asked this before with no luck.
We have certain members who do not wish their post count to be publically displayed. What code would we need to enable a user to hide/enable their post count. Ste I imagine an if condition and new userprofile field checkbox be required to customize: $vbphrase[posts]: $post[posts] |
#2
|
||||
|
||||
![]()
Make a new profile field which is a Yes or No for whether they want their post count shown. Then find each place on the site where the post count is shown (at least in the postbit templates and on the profile.php page) and put a condition around the postcount based on their new profile field.
There is an article on using profile fields in the postbit which will probably help. |
#3
|
||||
|
||||
![]()
Thats the bit I am struggling with tho, is how does the conditional know if yes should display and no should not, as neither have a value other than one is a 3 letter string the other 2 letter string.
Example ( i am old school programming ) so apologies. <if condition="$post['field22']"="no" then echo [$vbphrase[posts]: $post[posts] ] else "foo" > Now the above is just a silly concept, if the conditional was a value that was to be echoed, i could fathom it out, but because the yes or the no, have no value, I am getting confused. Ste |
#4
|
||||
|
||||
![]() HTML Code:
<if condition="$post['field22'] == 'Yes'"> $vbphrase[posts]: $post[posts] </if> You might want to look through the vbulletin manual, like this page - Template Conditionals |
#5
|
||||
|
||||
![]() Quote:
Are you married cos your wonderful :up: Bugger it stuffed up the post display lol. < back to the drawing board |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|