vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Text output color from profile field (https://vborg.vbsupport.ru/showthread.php?t=305377)

Xanlamin 12-04-2013 07:41 PM

Text output color from profile field
 
what I am wanting to do is based on what word is selected (Single-Selection Menu) When that word is shown it is a specified color.

I have a Roster page where I show the Username / Rank / Status / and so on

Their Status is either ACTIVE, INACTIVE, or AWOL. I want ACTIVE to be green, INACTIVE to be yellow and AWOL to be red.

How to do this using the profile field?

I installed the parse bbcode in profile fields plugin but it's not doing it's job.

Any help would be grateful.

Xanlamin 06-20-2014 05:20 AM

Anyone?

kh99 06-20-2014 08:48 AM

I don't think it's easy to chage the profile field values to be in color. But what you could do is use 'if' statements to decide what html to use when it's displayed. I'm notsure from your post what's going on, but if you're using a template for your roster page, then you'd use a series of vb:if tags. If it's in php; then of course it's just an 'if' statement. If you could explain more about how your roster page is created, we might be able to give you a code example.


All times are GMT. The time now is 03:19 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.00927 seconds
  • Memory Usage 1,705KB
  • 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