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
[Small plugin] Friends Online [addon]
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="Spartak" data-source="post: 82464" data-attributes="member: 7382"><p>Hello, here's my second or third release requested by james6213:</p><p> </p><p>its a simple plugin that GET your friends online ingame</p><p> </p><p>[CODE]<?PHP</p><p> $query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '".$_SESSION['user']['id']."'");</p><p> $i = 0;</p><p> while($friends = mysql_fetch_array($query))</p><p> {</p><p> $getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' AND online = '1' [SIZE=5][COLOR=#ff6600]LIMIT 25[/COLOR][/SIZE]");</p><p> if(mysql_num_rows($getfriend) > 0)</p><p> {</p><p> $i++;</p><p> if($i == 1)</p><p> {</p><p> </p><p> echo '<li id="feed-friends">Your friend(s) online are:<b><span> ';</p><p> }</p><p> $friend = mysql_fetch_array($getfriend);</p><p> echo htmlspecialchars($friend['username']).', ';</p><p> }</p><p> }</p><p> if($i > 0)</p><p> echo[/CODE]</p><p> </p><p>sorry for my languge ==> French (i know some people like Canadian will comment about it...just stfu)</p><p> </p><p> </p><p>SC<img src="https://cdn.devbest.com/data/assets/smilies/REE.png" srcset="https://cdn.devbest.com/data/assets/smilies/REE.png 1x, https://cdn.devbest.com/data/assets/smilies/REE-2x.png 2x" class="smilie" loading="lazy" alt="REE" title="REE REE" data-shortname="REE" />NSHOT :</p><p> </p><p><img src="http://i.imgur.com/5ugND.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>LIKE IT? just press like</p><p> </p><p>Hate? GTFO</p><p> </p><p> </p><p> </p><p>Edit : Fixed the limit its show ur 25 Friends online.</p><p> </p><p>If you want to edit it just look at THE ORANGE BIG SIZE and edit the 25 by another number for ex : if u want to show only 5 friend's on then replace 25 by 5.</p><p> </p><p>hope its helped</p><p> </p><p>Credits : Extreme</p></blockquote><p></p>
[QUOTE="Spartak, post: 82464, member: 7382"] Hello, here's my second or third release requested by james6213: its a simple plugin that GET your friends online ingame [CODE]<?PHP $query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '".$_SESSION['user']['id']."'"); $i = 0; while($friends = mysql_fetch_array($query)) { $getfriend = mysql_query("SELECT * FROM users WHERE id ='".$friends['user_two_id']."' AND online = '1' [SIZE=5][COLOR=#ff6600]LIMIT 25[/COLOR][/SIZE]"); if(mysql_num_rows($getfriend) > 0) { $i++; if($i == 1) { echo '<li id="feed-friends">Your friend(s) online are:<b><span> '; } $friend = mysql_fetch_array($getfriend); echo htmlspecialchars($friend['username']).', '; } } if($i > 0) echo[/CODE] sorry for my languge ==> French (i know some people like Canadian will comment about it...just stfu) SCREENSHOT : [IMG]http://i.imgur.com/5ugND.png[/IMG] LIKE IT? just press like Hate? GTFO Edit : Fixed the limit its show ur 25 Friends online. If you want to edit it just look at THE ORANGE BIG SIZE and edit the 25 by another number for ex : if u want to show only 5 friend's on then replace 25 by 5. hope its helped Credits : Extreme [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[Small plugin] Friends Online [addon]
Top