Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
7 registered (SteveS, mcasado, Mike L, Gizmo, SD, Bjab, driv), 18 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 255
Top Posters (30 Days)
Ruben 63
SD 54
Gizmo 48
gliderdad 33
Dunny 21
driv 18
dbremer 16
Iann128 16
Stan 14
Mark S 13
Latest Photos
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Gizzo Marx
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 Online   cat

Registered: 06/05/06
Posts: 14904
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
Edit Post
by Bert
01:19 PM
A positive note
by SteveS
09:36 PM
How to locate links to particular site if they are only used in images?
by Conrad
02/10/12 09:41 PM
Pictures not displaying
by Marker23
02/09/12 10:04 PM
Issue with logging out constantly
by Flanuva
02/09/12 07:05 PM
Forum Stats
10213 Members
36 Forums
33667 Topics
180917 Posts

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