The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Postbit help.
We have added auction ads to our site.
To view a members ads, the link uses the userid. so link is: http://www.yobromofo.com/forum/yobay...id=2&protype=1 Where uid=2 is my userid. Now I want to add this to the postbit, so it appears in everyones profile, but for their userid Im not to sure on the conditionals required, so any help greatly appreciated. The code below I just created doesnt actually work lol. Any input graciously received. <!--yobay stuff start--> <if condition="$post['userid']"><div class="info"><a href="http://www.anyforum.com/forum/yobay/member.php?uid=$userid&protype=1">My YoBaY Stuff</a></div></if> <!--end of yobay stuff--> The bold bit above seems to be the issue, i have tried wrapping in brackets, using $userinfo, $bbuserinfo and $userid... what am i doing wrong. Ste |
#2
|
||||
|
||||
$post['userid'] (it's right there at the beginning of the line in your condition. )
|
#3
|
||||
|
||||
So Lynne, ( LOL you can slap me ) What would be the entire code.
< sometimes the obvious just isnt obvious enough for me. |
#4
|
||||
|
||||
HTML Code:
<!--yobay stuff start--> <if condition="$post['userid']"><div class="info"><a href="http://www.anyforum.com/forum/yobay/member.php?u=$post[userid]&protype=1">My YoBaY Stuff</a></div></if> <!--end of yobay stuff--> |
#5
|
||||
|
||||
Now you can slap me LOL
Cheers Lynne, once again you are the Joan of Arc of VB . :up: --------------- Added [DATE]1233647844[/DATE] at [TIME]1233647844[/TIME] --------------- Bugger just realised that code doesnt work. The variable is called uid This is the user id parsed by PhotoPost Classifieds --------------- Added [DATE]1233648213[/DATE] at [TIME]1233648213[/TIME] --------------- Fixed. <!--yobay stuff start--> <if condition="$post['userid']"><div class="info"><a href="http://www.anyforum.com/forum/yobay/member.php?uid=$post[userid]&protype=1">My YoBaY Stuff</a></div></if> <!--end of yobay stuff--> Thats got the bugger working thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|