PDA

View Full Version : Tagged Users In Post Bit


DieselMinded
05-08-2007, 02:54 AM
I have a Diesel Forum and Ive added a Tick box in user profile for users to select Ford, Dodge Chevy ect ,,,, They can only pick one , and this does show on there profile ...

What I would like is a small Image in post bit to Tag the member with his Make this will be helpful while moderating heated threads ect between the brands

So if they Select Dodge ,,,, A Small Dodge Icon Shows in post bit somewhere maybe beside the online/offline image

Having an interface to upload images to represent profile fields would be cool but i can ftp to the sever no biggie just give me the control in admin Options

Thanks for Thinking about it :)

DM

Now that i think about it it would be nice to have it show where the Instant messengers show ...... Like this Mod ..

https://vborg.vbsupport.ru/showthread.php?p=1243437#post1243437

But we need 4 or 5 images and a tick box field

WetWired
05-08-2007, 09:12 PM
The exact template mods depend on exactly how you have the profile field setup, but what you're going to want is a series of
<if condition="$post[fieldx]==y"><img></if> for the possibilities. You could probably put $post[fieldx], where x is the profile field number from the CP, in the postbit and figure it out on your own.

DieselMinded
05-08-2007, 09:55 PM
Thanks for the reply and if you dont want to make this a mod thats cool but i need a bit more help... Im not helpless just a little un skilled

<if condition="$post[field5]==y"><img>www.dieselbombers.com/images/dodge.gif</img></if>

If I drop this on post bit and post bit legacy it will find what they put in there profile under the 5th profile field and then put that image (where i drop the code) in post bit

I have check boxes , 4 options would they be 5.1 5.2 5.3 5.4 ????

Like this

<if condition="$post[field5.1]==y"><img>www.dieselbombers.com/images/dodge.gif</img></if>

Your Help is greatly appreciated

DM

Well thats not right the entire field is 5 how do i make it decipher from 4 separate images according to there entry ?

Would it be

<if condition="$post[field5]==SOMETHING IN HERE"><img>www.dieselbombers.com/images/dodge.gif</img></if>

That wouldnt work either it would have to be..

<if condition="$post[field5]==a,b,c,d,"><img>a=www.dieselbombers.com/images/dodge.gif,b=www.dieselbombers.com/images/ford.gif,c=www.dieselbombers.com/images/chevy.gif,d=www.dieselbombers.com/images/vw.gif</img></if>

As you can see I need help with the code Thanks To anyone who can help

Here Edit this one ...

<!-- Tagged Code start -->
<if condition="$post[field5]"><a href="Dont Need a HyperLink/$post[field5]" alt="My Brand" target="_blank">
<img src="images/dodge.gif" border="0"></a>
</if>
<!-- Tagged Code end -->

Edit this to where it can tell what option you selected and add the correct image for that item

TIA

DM