Random VIP HTML

xUnknownGamer

The Best Noob Around.
Feb 8, 2013
81
7
Hey Devbest,
I was wondering if you guys could hook me up with the Random VIP Users HTML so i can add it to my SVIP page.
I know i didnt explain it well but i dont know what else to say about it, its kinda like the staff page only random.
If you look at the screenshot, i want it to go where it says Random VIP Member.

-Thanks
 

Attachments

  • Screen Shot 2013-06-22 at 3.34.26 PM.png
    Screen Shot 2013-06-22 at 3.34.26 PM.png
    167.4 KB · Views: 23

Find

Posting Freak
Jun 21, 2012
597
189
PHP:
                    <div id="column2" class="column">
                        <div class="habblet-container ">
                            <div class="cbb clearfix blue ">
                                <h2 class="title">Random VIP Members</h2>
                                <div style="padding:5px">
<?php
                        $GetUsers = mysql_query("SELECT * FROM users WHERE vip = '1' ORDER BY RAND() LIMIT 6");
                        while($Users = mysql_fetch_assoc($GetUsers))
                        {
                            echo "<div class=\"ContentBox\"><div class=\"BoxHeader\" id=\"blue\">{$Users['name']}</div><div class=\"BoxContent\"><p>";
                            $GetUsers = mysql_query("SELECT username,motto,last_online,online,look FROM users WHERE vip = '1' ORDER BY RAND() LIMIT 6");
                            while($Users = mysql_fetch_assoc($GetUsers))
                            {
                                if($Users['online'] == 1){ $OnlineStatus = "<font color=\"darkgreen\"><b>Online</b></font>"; } else { $OnlineStatus = "<font color=\"darkred\"><b>Offline</b></font>"; }
                                echo "<img style=\"position:absolute;\" src=\"http://www.habbo.com/habbo-imaging/avatarimage?figure={$Users['look']}&action=crr=3&direction=2&head_direction=3&gesture=sml&size=2\">"
                                    ."<p style=\"margin-left:80px;margin-top:20px;\"><strong>{$Users['username']}</strong><br>{$Users['motto']}</p>"
                                    ."<p style=\"float:right;margin-top:-30px;margin-right:5px;\">{$OnlineStatus}</p><br><br><br>";
                            }
                            echo "</p></div></div>";
                        }
                    ?>
                                </div>
                            </div>
                        </div>
                    </div>
 

Find

Posting Freak
Jun 21, 2012
597
189
PHP:
<?php
$GetUsers = mysql_query("SELECT * FROM users WHERE rank >= '2' AND rank <= '4' ORDER BY RAND() LIMIT 6");
while($Users = mysql_fetch_assoc($GetUsers))
{
echo "<div class=\"ContentBox\"><div class=\"BoxHeader\" id=\"blue\">{$Users['name']}</div><div class=\"BoxContent\"><p>";
$GetUsers = mysql_query("SELECT username,motto,last_online,online,look FROM users WHERE rank >= '2' AND rank <= '4' ORDER BY RAND() LIMIT 6");
while($Users = mysql_fetch_assoc($GetUsers))
{
if($Users['online'] == 1){ $OnlineStatus = "<font color=\"darkgreen\"><b>Online</b></font>"; } else { $OnlineStatus = "<font color=\"darkred\"><b>Offline</b></font>"; }
echo "<img style=\"position:absolute;\" src=\"http://www.habbo.com/habbo-imaging/avatarimage?figure={$Users['look']}&action=crr=3&direction=2&head_direction=3&gesture=sml&size=2\">"
."<p style=\"margin-left:80px;margin-top:20px;\"><strong>{$Users['username']}</strong><br>{$Users['motto']}</p>"
."<p style=\"float:right;margin-top:-30px;margin-right:5px;\">{$OnlineStatus}</p><br><br><br>";
}
echo "</p></div></div>";
}
?>

try change the php to that
 

Users who are viewing this thread

Top