turf colors on panel
#1

edit.
Reply
#2

You should chase your friend up as to what he means... It's obvious that it's a problem with the output from either the DB, or the panel itself.

You'd more likely need to pass the colors of the gangzone owners to the panel to allow it to display in a color. Being that black is 000000, it can't be that far off.
Reply
#3

With "converter" color.

use

PHP код:
substr($Field['ColorTurf'],2,-2); 
EX: from 0x452A0DFF to 452A0D
and from 10 digits converted to 6 digits, only good for css.

Then you can create a div with turf size with color converted

Example: <div style="background-color:#'.substr($Field['ColorTurf'],2,-2).'; width: xpx; height:ypx;">
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)