[Help] Guilds mark code

Gasolincho

Well-Known Member
Joined
May 15, 2008
Messages
683
Reaction score
692
i need guilds mark code :) becouse on my web don't show me guild logo ...
 

Mephisto

New Member
Joined
Apr 10, 2008
Messages
451
Reaction score
240
Guild mark logo function
PHP:
function logo($code,$xy) {
$color[0]    = ''; 
$color[1]='#000000'; 
$color[2]='#8c8a8d'; 
$color[3]='#ffffff'; 
$color[4]='#fe0000'; 
$color[5]='#ff8a00'; 
$color[6]='#ffff00'; 
$color[7]='#8cff01'; 
$color[8]='#00ff00'; 
$color[9]='#01ff8d'; 
$color['a']='#00ffff'; 
$color['b']='#008aff'; 
$color['c']='#0000fe'; 
$color['d']='#8c00ff'; 
$color['e']='#ff00fe'; 
$color['f']='#ff008c'; 
$i = 0; 
$ii = 0;
$it = "<table class=table cellpadding=0 cellspacing=0><tr>";
while ($i<64) {
$place = $code{$i};
$i++;
$ii++;
$add = $color[$place];
$it .= "<td style=background-color:$add; width=$xy height=$xy></td>";
if ($ii==8) { 
$it .= "</tr>"; 
if ($ii != 64) 
$it .="<tr>"; $ii =0; 
}
}
$it .= "</table>";
return $it;
}
guild mark decode
PHP:
$logo = urlencode(bin2hex($row['G_Mark']));
$mark = logo($logo,3);
Number in logo() function is for size bigger number => bigger logo
 
Thread starter Similar threads Forum Replies Date
M [Help] Delete Guilds Help 6
gogik [Help] Guilds Exit Personal ID Help 8
Protect [Help] How To Delete Guilds Without Members Help 9
Break House [Help] Guilds Create Problem Help 26
G [Help] market Help 0

Similar threads