Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (driv, id242), 41 Guests and 9 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 708
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#175801 - 01/27/07 04:15 AM How do I place "who is online" on the top instead of the sides?
yosaid Offline
stranger
Registered: 09/03/06
Posts: 16

<tr>
<td class="{$style_side}tdheader">
{$lang.WHO_ON}
</td>
</tr>
<tr>
<td class="{$style_side}alt-1">
{$registered} {$lang.ONLINE_REGISTERED}

{if $registered}
({section name=user loop=$users}
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=showprofile&amp;User={$users[user].uid}">{$users[user].name}</a>{if $smarty.section.user.total > $smarty.section.user.rownum}, {/if}
{/section}
{if $invisible}{if $users}, {/if}{$invisible} {$lang.INVISIBLE}{/if}
)
{/if}

{$lang.WORD_AND} {$anonymous} {$lang.ONLINE_ANON}
<br />
<div class="small" align="right">
<a href="{$config.BASE_URL}/ubbthreads.php?ubb=online">{$lang.DETAILS}</a>
</div>
</td>
</tr>



I tried to add this to my showflat.pl template and nothing shows up. Can someone please help on what code I need to add to my template to show the "who is online" above the forum list intead of the "lef/right".

Also, how do I get the total number of people broswing (guest+registered users)

Thank You.
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#175811 - 01/27/07 12:38 PM Re: How do I place "who is online" on the top instead of the sides? [Re: yosaid]
yosaid Offline
stranger
Registered: 09/03/06
Posts: 16
someone please give me a small tip.
Top
#175818 - 01/27/07 02:07 PM Re: How do I place "who is online" on the top instead of the sides? [Re: yosaid]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
Ok, your small tip is "external use" and the "always build" checkbox on the various islands; I wish I had some more time before i leave to show you how to insert the data into the template file but i'm heading out the door.

Something similar to:
 Code:
{php}
if (!defined('UBB_MAIN_PROGRAM')) define('UBB_MAIN_PROGRAM',1);
$style_side="";$tbopen="";$tbclose="";
echo "<table width=\"100%\">";
include("/var/www/html/forums/ubb7/languages/english/generic.php");
include("/var/www/html/forums/ubb7/cache/online_now.php");
echo "</table>";
{/php} 


into your cfrm.tpl file
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image