vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Check Box in Postbit? (https://vborg.vbsupport.ru/showthread.php?t=134600)

Smooth Adam 12-22-2006 07:06 PM

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?

Dominic 12-23-2006 07:14 PM

Can you provide a image of some sort to help us try and see what you are trying to do.

Smooth Adam 12-24-2006 06:08 AM

1 Attachment(s)
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!

Smooth Adam 12-24-2006 02:09 PM

I just noticed that the icons point to the wrong game - but you guys get the point. :)

Smooth Adam 12-26-2006 06:05 PM

c'mon ... :cross-eyed:

paul41598 12-26-2006 06:29 PM

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>


Smooth Adam 12-26-2006 08:11 PM

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


All times are GMT. The time now is 08:26 AM.

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.00980 seconds
  • Memory Usage 1,720KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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