The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I currently have a condition in the postbit template that shows a link under the username, with the URL having a user's name placed at the end of it:
Code:
<if condition="is_member_of($post, 17) OR is_member_of($post, 18) OR is_member_of($post, 6)"> <a class="smallfont" target="_blank" href="http://url.com?address=$post[musername]">Linky</a> </if> What I am trying to do is have it check to see if a particular (field7) profile field isn't blank. If there IS something in it, then append it to the end of the URL instead of the username. On the other hand, if it IS blank, then grab the username instead and append it to the end of the URL without the field's value (because it is blank anyway). |
#2
|
||||
|
||||
![]() HTML Code:
<if condition="is_member_of($post, 17) OR is_member_of($post, 18) OR is_member_of($post, 6)"> <if condition="$userinfo[field1] == ''"> <a class="smallfont" target="_blank" href="http://url.com?address=$userinfo[field1]">Linky</a> <else /> <a class="smallfont" target="_blank" href="http://url.com?address=$post[musername]">Linky</a> </if> </if> |
#3
|
||||
|
||||
![]()
You probably don't want to use $post[musername], use $post[username] instead. $post[musername] contains usergroup markup (ie. bold tags for staff).
|
#4
|
|||
|
|||
![]()
Ok, I had to change a little from the above example:
Code:
<if condition="is_member_of($post, 17) OR is_member_of($post, 18) OR is_member_of($post, 6)"> <if condition="$post[field7] != ''"> <a class="smallfont" target="_blank" href="http://url.com?address=$post[field7]">Linky</a> <else /> <a class="smallfont" target="_blank" href="http://url.com?address=$post[username]">Linky</a> </if> </if> |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|