{$lang.WHO_ON} {$registered} {$lang.ONLINE_REGISTERED} {if $r..."> {$lang.WHO_ON} {$registered} {$lang.ONLINE_REGISTERED} {if $r...">
Previous Thread
Next Thread
Print Thread
Hop To
Joined: Sep 2006
Posts: 16
Y
stranger
stranger
Y Offline
Joined: Sep 2006
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.


Joined: Sep 2006
Posts: 16
Y
stranger
stranger
Y Offline
Joined: Sep 2006
Posts: 16
someone please give me a small tip.


Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
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


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 868 guests, and 467 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)