1
khilborn
newbb Whos Online Block
  • 2006/10/9 13:51

  • khilborn

  • Just popping in

  • Posts: 15

  • Since: 2006/8/28


Does anyone know how to add the newest registered user to the newbb forum whos online block

Resized Image

You can see where I added "Newest User" manually, thats where I want it displayed

Thanks in advance,
Mike

2
khilborn
Re: newbb Whos Online Block
  • 2006/10/9 16:29

  • khilborn

  • Just popping in

  • Posts: 15

  • Since: 2006/8/28


This is what I tried and its not working.

In newbb_online.html

<table border="0" cellpadding="4" cellspacing="1" width="100%">
<
tr class="even" align="left">
<
td align="left" nowrap="nowrap" colspan="2"><strong><{$smarty.const._MD_USERS_ONLINE}><{$online.num_total}>  <{$smarty.const._MD_BROWSING_FORUM}>strong>td>tr>
<
tr class="odd" align="left">
<
td align="center"><{$online.image}>td>
<
td width="100%">
 [ <
span style="color:<{$color_admin}>"><{$smarty.const._MD_ADMINISTRATOR}>span> ] [ <span  style="color:<{$color_mod}>"><{$smarty.const._MD_MODERATOR}>span> ]
<
br /><{$online.num_anonymous}> <{$smarty.const._MD_ANONYMOUS_USERS}>
<{if 
$online.num_user}>
<
br /><{$online.num_user}> <{$smarty.const._MD_REGISTERED_USERS}>
<{foreach 
item=user from=$online.users}>
    <
a href="<{$user.link}>">
        <{if 
$user.color}>
        <
span style="color:<{$user.color}>"><{$user.uname}>span>
        <{else}>
        <{
$user.uname}>
        <{/if}>
    a>
<{/foreach}>
<{/if}>
<
br />
Newest User: <{include file='newest.php'}>
td>tr>table>


I added the part at the end "Newest User: <{include file='newest.php'}>"

Now newest.php is a new file I wrote

I query the database for the newest member and then:

$row mysql_fetch_array$query );
$newuser $row['uname'];

echo 
$newuser;


But nothing ever prints out??

3
khilborn
Re: newbb Whos Online Block
  • 2006/10/9 21:30

  • khilborn

  • Just popping in

  • Posts: 15

  • Since: 2006/8/28


Well i ahve already figured it out. Instead of

<{include file='newest.php'}>


It should be

<{include_php file='newest.php'}>


If anyone likes this hack and needs help hacking the files let me know or contact me through my website

http://www.clanni.clanservers.com

Login

Who's Online

344 user(s) are online (285 user(s) are browsing Support Forums)


Members: 0


Guests: 344


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits