vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Tagged Users In Post Bit (https://vborg.vbsupport.ru/showthread.php?t=146709)

DieselMinded 05-08-2007 02:54 AM

Tagged Users In Post Bit
 
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/showthrea...37#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
Code:

<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

PHP Code:

<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

PHP Code:

<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

PHP Code:

<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..

PHP Code:

<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 ...

PHP Code:

<!-- 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


All times are GMT. The time now is 02:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01104 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete