Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2007, 02:54 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 05-08-2007, 09:12 PM
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Location: Texas
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 05-08-2007, 09:55 PM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:11 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06520 seconds
  • Memory Usage 2,196KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (5)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete