Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
RevCMS Working Homes!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Forget" data-source="post: 138654" data-attributes="member: 14824"><p><u><strong><span style="font-family: 'Verdana'"><u><span style="color: #222222">About</span></u></span></strong></u></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">These are working homes for RevCMS and they can also be converted into all other cms very easily because its just the scripts that i am releasing not my page layout! </span></span></p><p> </p><p> </p><p><u><strong><span style="font-family: 'Verdana'"><u><span style="color: #222222">Credits</span></u></span></strong></u></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">90% - Me (Forget)for coding the page and scripts</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">10% - Kryptos for making RevCMS</span></span></p><p> </p><p> </p><p><u><strong><span style="font-family: 'Verdana'"><u><span style="color: #222222">Screen Shots</span></u></span></strong></u></p><p> </p><p><img src="http://i50.tinypic.com/2egacs3.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p> </p><p><u><strong><span style="font-family: 'Verdana'"><u><span style="color: #222222">The Codes</span></u></span></strong></u></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">You must have this code at the top of the page for any of the other scripts to work:</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333"><?php</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">function clean($str) {</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$str = @trim($str);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">if(get_magic_quotes_gpc()) {</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$str = stripslashes($str);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">}</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">return mysql_real_escape_string($str);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">}</span></span></p><p></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$username = filter($_REQUEST["user"]);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$userid = filter($_REQUEST["id"]);</span></span></p><p></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">// User Info \\</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$userinfo = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'"));</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$_GET2 = mysql_fetch_assoc($userinfo);</span></span></p><p></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$user = filter($_GET2['username']);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$id = filter($_GET2['id']);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$looks = filter($_GET2['look']);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$email = filter($_GET2['mail']);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$rank = filter($_GET2['rank']);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$motto = filter($_GET2['motto']);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$credits = filter($_GET2['credits']);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$pixels = filter($_GET2['activity_points']);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$pvip = filter($_GET2['vip_points']);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$online = filter($_GET2['online']);</span></span></p><p></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">?></span></span></p><p> </p><p></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php</span></span></p><p> </p><p> </p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">function clean($str) {</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$str = @trim($str);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">if(get_magic_quotes_gpc()) {</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">$str = stripslashes($str);</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">}</span></span></p><p><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">return mysql_real_escape_string($str);</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">}</span></span></span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">//Stats\\</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$stats = mysql_query("SELECT * FROM user_stats WHERE id='$id'");</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$get1 = mysql_fetch_assoc($stats);</span></span></p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$resp = </span></span><span style="font-family: 'Comic Sans MS'"><span style="color: #333333">filter($_GET</span></span><span style="font-family: 'Verdana'"><span style="color: #222222">1['Respect']);</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$giftr = <span style="font-family: 'Comic Sans MS'"><span style="color: #333333">filter($_GET1</span></span> ['GiftsReceived']);</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$gifts = <span style="font-family: 'Comic Sans MS'"><span style="color: #333333">filter($_GET1</span></span> ['GiftsGiven']);</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$achivement = <span style="font-family: 'Comic Sans MS'"><span style="color: #333333">filter($_GET1</span></span> ['AchievementScore']);</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$visits = <span style="font-family: 'Comic Sans MS'"><span style="color: #333333">filter($_GET1</span></span>['RoomVisits']);</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Username:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $username; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Motto:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $motto; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Email:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $email; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Credits:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $credits; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Pixels:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $pixels; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Vip Points:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $pvip; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Amount of respect:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $resp; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Gifts Given:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $gifts; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Gifts Recived:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $giftr; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Achievement Score:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $achivement; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Room Visits:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php echo $visits; ?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Users Badges:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php</span></span></p><p> </p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$getmybadges = mysql_query("SELECT * FROM user_badges WHERE user_id='$id'");</span></span></p><p> </p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #222222">while($rowing = mysql_fetch_assoc($getmybadges)){</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$badge = $rowing['badge_id'];</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">echo '<img src="r63/c_images/album1584/'.$badge.'.gif" style="margin-right: 10px;" />';</span></span></p><p> </p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #222222">}</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Avatar Image:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><img src="<a href="http://habbo.com/habbo-imaging/avatarimage?figure=<?php" target="_blank">http://habbo.com/habbo-imaging/avatarimage?figure=<?php</a> echo $looks; ?>&head_direction=3&action=wlk,wav,drk=0,crr=3" alt="<php echo $username; ?>" /></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Users Rank:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php</span></span></p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$getUser = mysql_query("SELECT * FROM users WHERE id ='$id'");</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$user = mysql_fetch_array($getUser);</span></span></p><p> </p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$rankId = $user['rank'];</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$getRank = mysql_query("SELECT * FROM ranks WHERE id ='$rankId'");</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">$rank = mysql_fetch_array($getRank);</span></span></p><p> </p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #222222">echo "".$rank['name']." (".$rank['id'].")";</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">Show Users Friends:</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"><?php</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> $query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '$id'");</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> $i = 0;</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> while($friends = mysql_fetch_array($query))</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> {</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> $getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' LIMIT 1");</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> if(mysql_num_rows($getfriend) > 0)</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> {</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> $i++;</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> if($i == 1)</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> {</span></span></p><p> </p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> echo '';</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> }</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> $friend = mysql_fetch_array($getfriend);</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> $friendname = $friend['username'];</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">echo "<a href='index.php?url=home&user=$friendname'>";</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">echo htmlspecialchars($friend['username']).'</a>, ';</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> }</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> }</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222"> if($i > 0)</span></span></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">echo '</br>'?></span></span></p><p> </p><p> </p><p><strong><span style="font-family: 'Verdana'"><span style="color: #222222">How it works</span></span></strong></p><p><span style="font-family: 'Verdana'"><span style="color: #222222">Put the url as {url}/index.php?url=home&user={username} or the information will not show up</span></span></p></blockquote><p></p>
[QUOTE="Forget, post: 138654, member: 14824"] [U][B][FONT=Verdana][U][COLOR=#222222]About[/COLOR][/U][/FONT][/B][/U] [FONT=Verdana][COLOR=#222222]These are working homes for RevCMS and they can also be converted into all other cms very easily because its just the scripts that i am releasing not my page layout! [/COLOR][/FONT] [U][B][FONT=Verdana][U][COLOR=#222222]Credits[/COLOR][/U][/FONT][/B][/U] [FONT=Verdana][COLOR=#222222]90% - Me (Forget)for coding the page and scripts[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]10% - Kryptos for making RevCMS[/COLOR][/FONT] [U][B][FONT=Verdana][U][COLOR=#222222]Screen Shots[/COLOR][/U][/FONT][/B][/U] [IMG]http://i50.tinypic.com/2egacs3.jpg[/IMG] [U][B][FONT=Verdana][U][COLOR=#222222]The Codes[/COLOR][/U][/FONT][/B][/U] [FONT=Verdana][COLOR=#222222]You must have this code at the top of the page for any of the other scripts to work:[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]<?php[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]function clean($str) {[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$str = @trim($str);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]if(get_magic_quotes_gpc()) {[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$str = stripslashes($str);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]}[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]return mysql_real_escape_string($str);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]}[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$username = filter($_REQUEST["user"]);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$userid = filter($_REQUEST["id"]);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]// User Info \\[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$userinfo = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'"));[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$_GET2 = mysql_fetch_assoc($userinfo);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$user = filter($_GET2['username']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$id = filter($_GET2['id']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$looks = filter($_GET2['look']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$email = filter($_GET2['mail']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$rank = filter($_GET2['rank']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$motto = filter($_GET2['motto']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$credits = filter($_GET2['credits']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$pixels = filter($_GET2['activity_points']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$pvip = filter($_GET2['vip_points']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$online = filter($_GET2['online']);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]?>[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333][/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]<?php[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]function clean($str) {[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$str = @trim($str);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]if(get_magic_quotes_gpc()) {[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]$str = stripslashes($str);[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]}[/COLOR][/FONT] [FONT=Comic Sans MS][COLOR=#333333]return mysql_real_escape_string($str);[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222][FONT=Comic Sans MS][COLOR=#333333]}[/COLOR][/FONT][/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]//Stats\\[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$stats = mysql_query("SELECT * FROM user_stats WHERE id='$id'");[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$get1 = mysql_fetch_assoc($stats);[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$resp = [/COLOR][/FONT][FONT=Comic Sans MS][COLOR=#333333]filter($_GET[/COLOR][/FONT][FONT=Verdana][COLOR=#222222]1['Respect']);[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$giftr = [FONT=Comic Sans MS][COLOR=#333333]filter($_GET1[/COLOR][/FONT] ['GiftsReceived']);[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$gifts = [FONT=Comic Sans MS][COLOR=#333333]filter($_GET1[/COLOR][/FONT] ['GiftsGiven']);[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$achivement = [FONT=Comic Sans MS][COLOR=#333333]filter($_GET1[/COLOR][/FONT] ['AchievementScore']);[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$visits = [FONT=Comic Sans MS][COLOR=#333333]filter($_GET1[/COLOR][/FONT]['RoomVisits']);[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Username:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $username; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Motto:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $motto; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Email:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $email; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Credits:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $credits; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Pixels:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $pixels; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Vip Points:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $pvip; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Amount of respect:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $resp; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Gifts Given:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $gifts; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Gifts Recived:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $giftr; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Achievement Score:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $achivement; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Room Visits:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php echo $visits; ?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Users Badges:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$getmybadges = mysql_query("SELECT * FROM user_badges WHERE user_id='$id'");[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]while($rowing = mysql_fetch_assoc($getmybadges)){[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$badge = $rowing['badge_id'];[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]echo '<img src="r63/c_images/album1584/'.$badge.'.gif" style="margin-right: 10px;" />';[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]}[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Avatar Image:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<img src="[URL]http://habbo.com/habbo-imaging/avatarimage?figure=<?php[/URL] echo $looks; ?>&head_direction=3&action=wlk,wav,drk=0,crr=3" alt="<php echo $username; ?>" />[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Users Rank:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$getUser = mysql_query("SELECT * FROM users WHERE id ='$id'");[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$user = mysql_fetch_array($getUser);[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$rankId = $user['rank'];[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$getRank = mysql_query("SELECT * FROM ranks WHERE id ='$rankId'");[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]$rank = mysql_fetch_array($getRank);[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]echo "".$rank['name']." (".$rank['id'].")";[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]Show Users Friends:[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]<?php[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] $query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '$id'");[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] $i = 0;[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] while($friends = mysql_fetch_array($query))[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] {[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] $getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' LIMIT 1");[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] if(mysql_num_rows($getfriend) > 0)[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] {[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] $i++;[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] if($i == 1)[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] {[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] echo '';[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] }[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] $friend = mysql_fetch_array($getfriend);[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] $friendname = $friend['username'];[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]echo "<a href='index.php?url=home&user=$friendname'>";[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]echo htmlspecialchars($friend['username']).'</a>, ';[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] }[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] }[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222] if($i > 0)[/COLOR][/FONT] [FONT=Verdana][COLOR=#222222]echo '</br>'?>[/COLOR][/FONT] [B][FONT=Verdana][COLOR=#222222]How it works[/COLOR][/FONT][/B] [FONT=Verdana][COLOR=#222222]Put the url as {url}/index.php?url=home&user={username} or the information will not show up[/COLOR][/FONT] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
RevCMS Working Homes!
Top