vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Using vb colors outside of vb and templates (https://vborg.vbsupport.ru/showthread.php?t=23406)

Taelon 07-23-2001 03:11 AM

Thought i'd repost this in here since I think this would probably be the better audience.

Anyone mind filling me in:

Not sure if this is the exact spot, sorta fits in with code hacking but sort of fits in with a how-to question on colors.

Im trying to get the colors to appear when doing a gettemplate("title");

IE: I have a script pulling things from the vbulletin database and I am wanting the colors to appear as actual colors instead of <table bordercolor=#555576> I'd like the actual color code to appear. Is there another function im forgetting to call? Im just either directly echoing or storing in a var using an eval().

Furthermore, how do I set something equal to a color if its not being pulled from the database. I've tried $tablebordercolor ... I assume there all the colors are assigned to variables, perhaps in an array?

thanks,

-Shane

BradC 07-23-2001 12:48 PM

in your "outside of vb" pages did you include the global.php file..

it may have just worked for me a couple of times, but when I include the global.php file I can then use the colors... or am I wrong, and it was by sheer luck :)


All times are GMT. The time now is 11:47 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.00928 seconds
  • Memory Usage 1,704KB
  • 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
  • (2)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