PDA

View Full Version : Using vb colors outside of vb and templates


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 :)