The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Are profile field vars available everywhere or just postbit?
|
#2
|
||||
|
||||
![]()
I don't believe they're available everywhere... but I'm pretty sure that they're available in other areas besides the postbit.
|
#3
|
|||
|
|||
![]()
I would like to do something like (dunno what var it needs):
<if condition= ($post[field8] == yes)> Display or not display something on the main forum page. </if> Is this possible or do I need to create a query for it? |
#4
|
||||
|
||||
![]()
Yeah, you can do that with a template edit. Just create a new profile field. (AdminCP -> User Profile Fields -> Add New User Profile Field) Make whatever kind of field you want. If you're going to have like a Yes, display the image or No, don't display the image kind of deal. Then I'd make Single-Selection Radio Buttons. Then after you fill out all the details and submit the field you need to find the Field Number. It's in the name column of the Profile Field Manager. Then just place this code wherever... in your case you said you wanted to display something on your index, so you need to put it in your FORUMHOME template. Just replace the xx with your field number.
Code:
<if condition="$bbuserinfo['fieldxx']==Yes"> If you selected "Yes", then you can see this message! Isn't that wonderful? </if> |
#5
|
|||
|
|||
![]()
You rock! Thanks!
|
#6
|
||||
|
||||
![]()
You're welcome, happy to help.
|
#7
|
||||
|
||||
![]()
$bbuserinfo is only going to take into account the person viewing the thread, not the poster though.
|
#8
|
||||
|
||||
![]()
Yeah... I assume he's using it to display something on the forumhome that's selectable in the UserCP. So, it'd be a user's option, not the poster...
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|