avatars

For discussion of the Poker Mavens server module and other administration topics

avatars

Postby unvash » Mon Mar 03, 2014 4:00 am

how can i show the avatars in one big image ? i use this code but its not show all the avatar in big image its just showing the avatars in a simple drop down list

<div style="width: 100px; height: 175px; overflow: auto; border: solid 2px">
<?php
for ($i=0; $i<$avatarmax; $i++)
{
$a = "display: inline-block; width: 48px; height: 48px; background: " .
"url('" . $avatarurl . "') no-repeat -" . ($i * 48) . "px 0px;";
$s = "<input type='radio' name='Avatar' value='" . ($i + 1) . "'";
if ($i == 0) $s .= " checked";
$s .= ">";
$s .= "<div style=\"" . $a . "\"></div>";
echo $s . "<br><br>\r\n";
}
?>
unvash
 
Posts: 35
Joined: Sun Jan 05, 2014 3:53 pm

Re: avatars

Postby Kent Briggs » Mon Mar 03, 2014 10:24 am

unvash wrote:how can i show the avatars in one big image ?


Just display the $avararurl as-is, without the no-repeat and offset parameters.

<img src="http://www.example.com:8087/Image?Name=Avatars">
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3831
Joined: Wed Mar 19, 2008 8:47 pm


Return to Site Administration

Who is online

Users browsing this forum: No registered users and 13 guests

cron