Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 12-22-2006, 07:06 PM
Smooth Adam Smooth Adam is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Check Box in Postbit?

Still trying to get this question answered. I have some check boxes in my profile area... how can I put them into my postbit?
Reply With Quote
  #2  
Old 12-23-2006, 07:14 PM
Dominic Dominic is offline
 
Join Date: Dec 2006
Location: Boston
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you provide a image of some sort to help us try and see what you are trying to do.
Reply With Quote
  #3  
Old 12-24-2006, 06:08 AM
Smooth Adam Smooth Adam is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank God someone answered my post!

https://vborg.vbsupport.ru/showthread.php?t=134428

I run a gaming forum. I have some checkboxes in the profile area with different game titles next to them. As of right now there are 6 check boxes. When a user checks a game title, I want an icon to appear in the postbit with that game's icon.

See the image I made below for a visual. Thanks and Merry Christmas!
Attached Images
File Type: gif Untitled-3.gif (23.6 KB, 0 views)
Reply With Quote
  #4  
Old 12-24-2006, 02:09 PM
Smooth Adam Smooth Adam is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just noticed that the icons point to the wrong game - but you guys get the point.
Reply With Quote
  #5  
Old 12-26-2006, 06:05 PM
Smooth Adam Smooth Adam is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

c'mon ... :cross-eyed:
Reply With Quote
  #6  
Old 12-26-2006, 06:29 PM
paul41598's Avatar
paul41598 paul41598 is offline
 
Join Date: Jun 2004
Location: MI
Posts: 732
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this Adam:

Find out the field[x] from "User Profile Manager" that you have your checkboxes made in. Then use the code below in your postbit_legacy or what have you.


Code:
<if condition="$post[fieldx] & 1">
<img src="LINK_TO_IMAGE_HERE" border="0">
</if>
<if condition="$post[fieldx] & 2">
<img src="LINK_TO_IMAGE_HERE" border="0">
</if>
Reply With Quote
  #7  
Old 12-26-2006, 08:11 PM
Smooth Adam Smooth Adam is offline
 
Join Date: Jan 2005
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That works. I came across this post as well:

http://www.vbulletin.com/forum/showp...0&postcount=11. Just change the field number. Here's an example:

Code:
<td><if condition="$post[field6] != '0'">
<if condition="$post['field6']&1"><img src="URL HERE"><br />
</if>
<if condition="$post['field6']&2"><img src="URL HERE"><br />
</if>
<if condition="$post['field6']&4"><img src="URL HERE"><br />
</if>
<if condition="$post['field6']&8"><img src="URL HERE"><br />
</if>
<if condition="$post['field27']&16"><img src="URL HERE"><br />
</if> 
<else />
                <em>$vbphrase[n_a]</em>
            </if></td>
Thanks so much!!!
Reply With Quote
Reply

Thread Tools
Display Modes

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 11:10 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.05037 seconds
  • Memory Usage 2,231KB
  • Queries Executed 14 (?)
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
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (1)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete