vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Custom profile numbering (https://vborg.vbsupport.ru/showthread.php?t=213795)

mmoore5553 05-15-2009 10:23 PM

Custom profile numbering
 
I remember i found long time ago how to convert the numeric numbers to what i could use in my post ...i forgot that chart

<if condition="$post['field10'] & 2">
$comma <img src="" border="0" alt="User"></if>

<if condition="$post['field10'] & 4">
$comma <img src="http://cg-hq.com/max.png" border="0" alt="User"></if>

<if condition="$post['field10'] & 8">
$comma <img src="" border="0" alt="User"></if>


i know there is a whole chart with those variables listed. Can anyone help in getting the list ..thanks in advance. I highlight the numbers in red . Those are what i am needing.

--------------- Added [DATE]1242431785[/DATE] at [TIME]1242431785[/TIME] ---------------

i found it ..here it is


option 1 = 2^0 = 1
option 2 = 2^1 = 2
option 3 = 2^2 = 4
option 4 = 2^3 = 8
option 5 = 2^4 = 16
option 6 = 2^5 = 32
option 7 = 2^6 = 64
option 8 = 2^7 = 128
etc...

Dismounted 05-16-2009 05:22 AM

They are called bitfields. There is an article written here about their use in vBulletin.

mmoore5553 05-16-2009 11:08 AM

Thanks dismounted. i did not know what they were called. I am looking up more info now but got what i needed done.


All times are GMT. The time now is 09:19 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.04752 seconds
  • Memory Usage 1,709KB
  • 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)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