PDA

View Full Version : Postbit help.


TimberFloorAu
02-02-2009, 10:59 PM
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/member.php?uid=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

Lynne
02-02-2009, 11:19 PM
$post['userid'] (it's right there at the beginning of the line in your condition. :) )

TimberFloorAu
02-02-2009, 11:31 PM
So Lynne, ( LOL you can slap me ) What would be the entire code.

< sometimes the obvious just isnt obvious enough for me.

Lynne
02-02-2009, 11:34 PM
<!--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-->

(assuming that link is correct, that is)

TimberFloorAu
02-02-2009, 11:39 PM
Now you can slap me LOL

Cheers Lynne, once again you are the Joan of Arc of VB .

:up:

--------------- Added 1233647844 at 1233647844 ---------------

Bugger just realised that code doesnt work.

The variable is called uid

This is the user id parsed by PhotoPost Classifieds

--------------- Added 1233648213 at 1233648213 ---------------

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