The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
User's Ranks Help
So, Posted this on another site, and they directed me to come here, and now I am totally lost.
On this site, in their 'Edit Options" page, they have a "Ranks" option, look, How can I get that option, into my sites 'Edit Option" page? |
#2
|
||||
|
||||
I would guess it is a Custom User Profile Field that is creating the option. But, then you would need to actually use the field in your code to only have that many rows.
|
#3
|
||||
|
||||
I already know where the ranks show code in the postbit template, but how would I, like for each option, or in my case, yes or no. For the no option, I click "No" and it wouldnt show the tags.
|
#4
|
||||
|
||||
You would put a condition around the code in the postibt template. If it's set to No, then you don't show it. Is that what you are asking?
|
#5
|
||||
|
||||
Yes I am, can you show me?
|
#6
|
||||
|
||||
HTML Code:
<vb:if condition="$post['fieldx'] != 'No'">show code</vb:if> |
#7
|
||||
|
||||
And where do I put that, right below the rank code in the postbit template, or I put the rank in the "show code" part?
|
#8
|
||||
|
||||
You said you knew where the rank code was in the postbit, no? So, put the condition around that code.
You really should just try it out and see. I assume you are doing this on a test site and not your live site. |
#9
|
||||
|
||||
I put the
PHP Code:
PHP Code:
And this is the rank code, PHP Code:
BTW: On 3.8.6 vbulletin. Am I putting in the wrong way? |
#10
|
||||
|
||||
Whoops, it should be $post['fieldx'] (with a single apostrophe on each side). Also, fieldx should be changed to the field number you have created. If it's field5, then you should have $post['field5'].
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|