Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

online users center panel

Asked Modified Viewed 2,060 times
N
Nathan
N
Nathan 10
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
asked
Junior Member

Hi,

Im after a centre panel which incorperates the onlines users panel on one half and then on the other, random photo on the other half.
ive tried putting the 2 seperate codes into a table with 2 columns, but doesnt seem to work.

please help!
0 replies

7 posts

H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

Post your code. It's better to learn how it's done than just have someone do it for you.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

I have a mean Online Users Center Panel it's called Enhanced Online Users Center Panel, it shows normal online users stuff as well as all members who have visited that day thingy and birthdays that day thingy.

Bad news is it does nothing with Photos as its a User Panel not a Photo Panel. lol
0 replies
N
Nathan
N
Nathan 10
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Junior Member

slight different than what i stated earlier in the post, but kinda along the same lines. this is the welcome message panel and the last seen 15 users panel in one center panel, but doesnt seem to work.

hope you can help....

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]$result = dbquery("SELECT * FROM ".DB_USERS." WHERE user_lastvisit>'0' AND user_status='0' ORDER BY user_lastvisit DESC LIMIT 0,15"wink;

opentable('Welcome to Welshblackball.com'wink;
echo '<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td width='65%'>".stripslashes($settings['siteintro'])."</td>
<td width='35%'><center>";
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$lastseen = time() - $data['user_lastvisit'];
$iW=sprintf("%2d", floor($lastseen / 604800));
$iD=sprintf("%2d", floor($lastseen / (60 * 60 * 24)));
$iH=sprintf("%02d", floor((($lastseen % 604800) % 86400) / 3600));
$iM=sprintf("%02d", floor(((($lastseen % 604800) % 86400) % 3600) / 60));
$iS=sprintf("%02d", floor((((($lastseen % 604800) % 86400) % 3600) % 60)));
if ($lastseen < 60){
$lastseen = '<center><img src="http://www.wrexham8ball.com/images/icon_last.gif"></center>\';
} elseif ($lastseen < 360){
$lastseen = '<5mins';
} elseif ($iW > 0){
if ($iW == 1) {
$text = 'Week';
} else {
$text = 'Weeks';
}
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) {
$text = 'Day';
} else {
$text = 'Days';
}
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "<tr>\n<td class='side-small' align='left'>".THEME_BULLET."\n";
echo "<a href='".BASEDIR."profile.php?lookup=".$data['user_id']."' title='".$data['user_name']."' class='side'>\\n";
echo trimlink($data['user_name'], 15)."</a></td><td class='side-small' align='right'>".$lastseen."</td>\\n</tr>\n";
}
}
echo "</table>";

@closetable();
?>[/syntaxhighlighter]
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]<?php
$result = dbquery("SELECT user_id,
user_name,
user_lastvisit,
user_status
FROM ".DB_USERS."
WHERE user_lastvisit>'0'
AND user_status='0'
ORDER BY user_lastvisit
DESC LIMIT 0,15
"wink;

opentable("Welcome to Welshblackball.com"wink;
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>\n<tr>\n";
echo "<td width='65%'>".stripslashes($settings['siteintro'])."</td>\n";
echo "<td width='35%'><center>";
if (dbrows($result) != 0) {
while ($data = dbarray($result)) {
$lastseen = time() - $data['user_lastvisit'];
$iW=sprintf("%2d", floor($lastseen / 604800));
$iD=sprintf("%2d", floor($lastseen / (60 * 60 * 24)));
$iH=sprintf("%02d", floor((($lastseen % 604800) % 86400) / 3600));
$iM=sprintf("%02d", floor(((($lastseen % 604800) % 86400) % 3600) / 60));
$iS=sprintf("%02d", floor((((($lastseen % 604800) % 86400) % 3600) % 60)));
if ($lastseen < 60){
$lastseen = "<center><img src='http://www.wrexham8ball.com/images/icon_last.gif' alt='' /></center>\n";
} elseif ($lastseen < 360){
$lastseen = '<5mins';
} elseif ($iW > 0){
if ($iW == 1) {
$text = 'Week';
} else {
$text = 'Weeks';
}
$lastseen = $iW." ".$text;
} elseif ($iD > 0){
if ($iD == 1) {
$text = 'Day';
} else {
$text = 'Days';
}
$lastseen = $iD." ".$text;
} else {
$lastseen = $iH.":".$iM.":".$iS;
}
echo "<tr>\n";
echo "<td class='side-small' align='left'>".THEME_BULLET."\n";
echo profile_link($data['user_id'], $data['user_name'], $data['user_status']);
echo "</td><td class='side-small' align='right'>".$lastseen."</td>\\n</tr>\n";
}
}
echo "</table>";
closetable();
?>[/syntaxhighlighter]
0 replies
N
Nathan
N
Nathan 10
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Junior Member

hi,

thanks for your reply philip, but i get the following error when using what you wrote:

Parse error: syntax error, unexpected '<' in /home/fhlinux200/w/wrexham8ball.co.uk/user/htdocs/administration/panel_editor.php(122) : eval()'d code on line 1
0 replies
H
HobbyMan
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums
answered
Veteran Member

lol, remove <?php from line 1

I added it for testing, sorry
0 replies
N
Nathan
N
Nathan 10
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
answered
Junior Member

the two items in the panel appear above eachother, id like them to appear side by side....

sorry to be a pain in the rear end!
0 replies

Category Forum

Panels and Infusions

Labels

None yet

Statistics

  • Views 0 views
  • Posts 7 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

N
N
Nathan 10
  • Junior Member, joined since
  • Contributed 35 posts on the community forums.
  • Started 11 threads in the forums
  • Started this discussions
C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
H
H
Just some Guy
  • Veteran Member, joined since
  • Contributed 1,486 posts on the community forums.
  • Started 91 threads in the forums

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet