(jcow) right Side bar Menu

the box u are marked is separate script.one is script people u my know n other is script notification..
people u my know this script
Click here to open new window

Click here to open new window

Code// PEOPLE YOU MAY KNOW

$res = sql_query("SELECT * from `".tb()."accounts` order by lastlogin desc limit 5");
$output = '';
while($row = sql_fetch_array($res)) {
if ((!$isfriend) && ($client['id'] != $row['id']) ) {
$output .='<div style="align:left">
<table border="0">
<tr>
<td width="60">
<a href="'.url('u/'.$row['username']).'">
'.avatar($row).'
'.$addavatar.'</td>
<td valign="absmiddle"><b>
<a href="'.url('u/'.$row['username']).'">'.htmlspecialchars($row['fullname']).'</a></b><br>
'.($row['location']).' | '.gender($row['gender']).'</br>
<a href="'.uhome().'/jquery/add/'.$row['id'].'" rel="facebox" class="tipTip" title="Click here to add this person as friend"><img src="'.uhome().'/files/icons/addfriends.png" /></a>
</td>
</tr>
</table>
</div>';
}
}
ass(array('title'=>t('People you may know'), 'content' => '<div class="toolbar"></div>'.$output));


notification script
Code block(dashboard_notifications());

Code
function dashboard_notifications() {
global $client;
if (!$client['id']) return '';
$content .= '<script type="text/javascript" src="'.uhome().'/js/jquery.vtricker.js">
</script>
<script>
jQuery(document).ready(function($$) {
$$(\'#stream_not\').vTicker({
speed: 500,
pause: 7000,
showItems: 4,
animation: \'fade\',
mousePause: false,
height: 170,
direction: \'down\'
});
});
</script>


<div id="stream_not" style="overflow-x: hidden; overflow-y: hidden; position: relative; height:170px;">
<ul class="simple_list" style="background:#FAFAFA; width:187px; display: block; ">
';
$res = sql_query("SELECT m.*,u.username FROM `".tb()."messages` as m left join `".tb()."accounts` as u on u.id=m.from_id where m.to_id='{$client['id']}' and m.from_id=0 ORDER by m.id DESC LIMIT 7");
$rsspass = md5(get_gvar('secure_key').$client['id']);
while ($row = sql_fetch_array($res)) {
$start = strpos($row['message'],'/u/')+3;
$end = strpos($row['message'],'">');
$username = substr($row['message'],$start,$end-$start);
$res2 = sql_query("SELECT * FROM `".tb()."accounts` where username ='{$username}' LIMIT 1 ");
$row2 = sql_fetch_array($res2);

$content .= '
<li style="font-family:Arial, Helvetica, sans-serif;font-size:10px;color:#000000;text-align:left;">
<div style="align:left; margin-left:0;">

<table border="0"><tr><td width="25" style="background:#E8DFE8;">

<a href="'.url('u/'.$row2['username']).'">

'.avatar($row2,20).'

</td>

<td valign="absmiddle">

'.$row['message'].'

</td></tr></table>

</div>
';
}
$content .= '</ul></li></div>';
//return array('title'=>t('Notifications').' '.url('notifications',t('View')), 'content' => $content);
return array('content' => $content);
}

that all goodmickey

0 komentar:

Posting Komentar

 
© Grunge Theme Copyright by rizky rionaldy | Template by Blogger Templates | Blog Trick at Blog-HowToTricks