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
[UberCMS] Add-ons.
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="Jerry" data-source="post: 268317" data-attributes="member: 35321"><p>Hello DevBest, I am going to release a few UberCMS add-on people may not have, <u>some of these are based on someone else's releases</u>. Some of them are not mine so I'll be adding credits to whoever.</p><p></p><p>Friends Online:</p><p><img src="http://i.imgur.com/q4Id974.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>[PHP]<?PHP</p><p> $query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '".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' LIMIT 1");</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 class="small" id="feed-pending-members">Friend(s) online:<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> {</p><p> </p><p> echo '<li class="small" id="feed-pending-members">You have no friends online.<b><span> ';</p><p> }</p><p>echo '</b>'?></p><p> </li> [/PHP]</p><p>This could be placed around up top of the Last Signed In script in comp-me.tpl!</p><p></p><p>Newest User:</p><p><img src="http://i.imgur.com/fcfEriz.png" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p>[PHP] <div id="habblet-container" class="column2"></p><p> </p><p> <div class="habblet-container "> </p><p> <div class="cbb clearfix blue "></p><p></p><p> <h2 class="title">Newest User</h2></p><p> <div class="habblet-container"></p><p><?php</p><p></p><p>$getTopStats = mysql_query("SELECT * FROM users ORDER BY id DESC LIMIT 1");</p><p>while($topSpats = mysql_fetch_array($getTopStats)){</p><p>echo '</br><b><center><span style="display:block; color:#972F89; float:center; padding:0px; background:url(/images/sparkles.gif)">'.$topSpats['username'].'</b></span></center><center><img src="%www%/inc/imager.php?figure=' . $topSpats['look'] . '&size=b&action=sit,wav,crr=667&direction=2&head_direction=3&gesture=sml&size=m" align="middle"></center><hr><center>Account created: '.$topSpats['account_created'].'</center><center>Motto: '.$topSpats['motto'].'</center>';</p><p>}</p><p>?></p><p></div></div></div></div>[/PHP]</p><p><strong>RevCMS;</strong></p><p>Friends Online:</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' LIMIT 1");</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 class="small" id="feed-pending-members">Friend(s) online:<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> {</p><p> </p><p> echo '<li class="small" id="feed-pending-members">You have no friends online.<b><span> ';</p><p> }</p><p>echo '</b>'?></p><p> </li>[/CODE]</p><p></p><p><u>Credits</u>:</p><p>100% for <strong>JerryCool</strong> to code Newest User.</p><p>99% for <strong>@[USER=7382]Spartak[/USER]</strong> for releasing Friends Online for Rev.</p><p>1% for <strong>JerryCool</strong> for coding Friends Online for Uber.</p><p></p><p>I'll release more add-ons soon. <img src="/styles/default/xenforo/smilies/emojione/biggrin.png" class="smilie" loading="lazy" alt=":D" title="Big Grin :D" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="Jerry, post: 268317, member: 35321"] Hello DevBest, I am going to release a few UberCMS add-on people may not have, [U]some of these are based on someone else's releases[/U]. Some of them are not mine so I'll be adding credits to whoever. Friends Online: [IMG]http://i.imgur.com/q4Id974.png[/IMG] [PHP]<?PHP $query = mysql_query("SELECT * FROM messenger_friendships WHERE user_one_id = '".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' LIMIT 1"); if(mysql_num_rows($getfriend) > 0) { $i++; if($i == 1) { echo '<li class="small" id="feed-pending-members">Friend(s) online:<b><span> '; } $friend = mysql_fetch_array($getfriend); echo htmlspecialchars($friend['username']).', '; } } if($i == 0) { echo '<li class="small" id="feed-pending-members">You have no friends online.<b><span> '; } echo '</b>'?> </li> [/PHP] This could be placed around up top of the Last Signed In script in comp-me.tpl! Newest User: [IMG]http://i.imgur.com/fcfEriz.png[/IMG] [PHP] <div id="habblet-container" class="column2"> <div class="habblet-container "> <div class="cbb clearfix blue "> <h2 class="title">Newest User</h2> <div class="habblet-container"> <?php $getTopStats = mysql_query("SELECT * FROM users ORDER BY id DESC LIMIT 1"); while($topSpats = mysql_fetch_array($getTopStats)){ echo '</br><b><center><span style="display:block; color:#972F89; float:center; padding:0px; background:url(/images/sparkles.gif)">'.$topSpats['username'].'</b></span></center><center><img src="%www%/inc/imager.php?figure=' . $topSpats['look'] . '&size=b&action=sit,wav,crr=667&direction=2&head_direction=3&gesture=sml&size=m" align="middle"></center><hr><center>Account created: '.$topSpats['account_created'].'</center><center>Motto: '.$topSpats['motto'].'</center>'; } ?> </div></div></div></div>[/PHP] [B]RevCMS;[/B] Friends Online: [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' LIMIT 1"); if(mysql_num_rows($getfriend) > 0) { $i++; if($i == 1) { echo '<li class="small" id="feed-pending-members">Friend(s) online:<b><span> '; } $friend = mysql_fetch_array($getfriend); echo htmlspecialchars($friend['username']).', '; } } if($i == 0) { echo '<li class="small" id="feed-pending-members">You have no friends online.<b><span> '; } echo '</b>'?> </li>[/CODE] [U]Credits[/U]: 100% for [B]JerryCool[/B] to code Newest User. 99% for [B]@[USER=7382]Spartak[/USER][/B] for releasing Friends Online for Rev. 1% for [B]JerryCool[/B] for coding Friends Online for Uber. I'll release more add-ons soon. :D [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
CMS Releases
[UberCMS] Add-ons.
Top