PDA

View Full Version : Help: Postbit Legacy Special Images


princeedward
06-22-2009, 12:19 PM
hi....just one question here....to anyone that might willing to help me please...

On my board we have On The Spot Member Feature Weekly ....that will sit there and answer to all questions might all members ask him/her throughout the week

now all i want is if i can add or is it possible to add image ONLY to the said On the Spot Member any image like a Star or anything which he/she will carry it...until end of the week or say...unless i removed it....

maybe i should edit it via postbit/postbit legacy templates? have no idea how this will work...

pls. view my attachment for more info...

appreciate any help on this please

thanks and best regards to all

:)

rrudeboy
06-22-2009, 12:34 PM
have you checked YaAS: https://vborg.vbsupport.ru/showthread.php?t=196244 ?

Lynne
06-22-2009, 03:40 PM
You could just add something to the template like:
<if condition="$post[userid] == 'x'">
an image
</if>

If this is something you do weekly, I'd probably go add something to a vboptions page to enter the userid there and then change x to $vboptions[whatever], but that's just me.

princeedward
06-22-2009, 11:33 PM
have you checked YaAS: https://vborg.vbsupport.ru/showthread.php?t=196244 ?thanks but i got it already just want to try the other way...maybe

You could just add something to the template like:
<if condition="$post[userid] == 'x'">
an image
</if>

If this is something you do weekly, I'd probably go add something to a vboptions page to enter the userid there and then change x to $vboptions[whatever], but that's just me.as always Lynne is there and wiiling to assist all....if you saw my attachment idea., is this going to work on that place itself? okay...got me and i think you got a best idea there...but the next thing or other way you're telling me via vboptions dont have a single idea how i'm gonna start it and make it happen...frankly speaking no idea about it...

can you please help me more to it

Million Thanks and Best Regards To You!

:)

Lynne
06-23-2009, 01:59 AM
That condition should work wherever you want to put it in the postbit.

As for using options, you'd have to turn on debug mode and add the option to the dropdown you want to add it to. If you called it 'OTST_weekly", then you would change the condition to something like:
<if condition="$post[userid] == $vboptions['OTST_weekly']">
an image
</if>

I haven't tried anything like that, so you should test it on a test site first.