Experienced Elementalist
- Joined
- Apr 25, 2012
- Messages
- 222
- Reaction score
- 35
Hello, community.
I'm here with another release for RevCMS Habbo Skin.
This time, i got the "online friends". What does it? It shows your friends that are currently online!
Simply add this code to your me.php
So, it should look like this :
Result :
If your friends are offline :
If your friends are online :
I dont know if this already was released, anyways, have fun with it.
If you want another thing, that isn't already released for revcms, ask for it, maybe i can make it for you!
Have a nice day,
Mozilla.
I'm here with another release for RevCMS Habbo Skin.
This time, i got the "online friends". What does it? It shows your friends that are currently online!
Simply add this code to your me.php
PHP:
<ul id="feed-items">
<li class="small" id="feed-lastlogin">Laatst ingelogd op: {lastSignedIn}</li>
<li class="small" id="feed-pending-members">De volgende vrienden zijn online: <b>
<?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++;
$friend = mysql_fetch_array($getfriend);
echo htmlspecialchars($friend['username']).', ';
}
}
if($i == 0)
{
echo '<li class="small" id="feed-pending-members"> Je hebt geen vrienden online.<b><span> ';
}
echo '</b>'?>
</b><br/></li>
So, it should look like this :
You must be registered to see links
Result :
If your friends are offline :
You must be registered to see links
If your friends are online :
You must be registered to see links
I dont know if this already was released, anyways, have fun with it.
If you want another thing, that isn't already released for revcms, ask for it, maybe i can make it for you!
Have a nice day,
Mozilla.
Last edited: