Whos Online Block

Post Reply

Topic author
j.rhy@n
Active Member
Posts: 35
Joined: 6. October 2008 13:02

Whos Online Block

Post by j.rhy@n »

Hi

I have my Whos Online Block as a side block, it does not looks so nice on the side..

The other portal http://www.phpbb3portal.com/ uses a different style and it looks much better..

here is the code

Code: Select all

<!-- $Id: whois_online.html,v 1.1 2008/02/09 08:18:16 angelside Exp $ //-->
<div class="panel">
	<div class="inner">
		<span class="corners-top"><span></span></span>
			<h3>{L_WHO_IS_ONLINE}</h3>
			<span style="float:left;">{L_WIO_TOTAL}:</span><span style="float:right;padding-right:10px;">{TOTAL_ONLINE_USERS}</span><br /><hr width="90%" />
			<span style="float:left;">{L_WIO_REGISTERED}:</span><span style="float:right;padding-right:10px;">{VISIBLE_ONLINE}</span><br />
			<span style="float:left;">{L_WIO_HIDDEN}:</span><span style="float:right;padding-right:10px;">{HIDDEN_ONLINE}</span><br />
			<span style="float:left;">{L_WIO_GUEST}:</span><span style="float:right;padding-right:10px;">{GUEST_ONLINE}</span><br />
			<small>
				<br />{RECORD_USERS}<br /><br />{LOGGED_IN_USER_LIST}
				<!-- IF LEGEND --><br /><br />
				{L_LEGEND} :: {LEGEND}
				<!-- ENDIF -->
			</small>
		<span class="corners-bottom"><span></span></span>
	</div>
</div>
<br style="clear:both" />
My guess is the related php file and language files are much different to your portal..

Is it possible to get a better layout..

Thx in advance.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: Whos Online Block

Post by Kevin »

You should just have to adapt the template.
Here you'll find an example: viewtopic.php?f=21&t=310
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
j.rhy@n
Active Member
Posts: 35
Joined: 6. October 2008 13:02

Re: Whos Online Block

Post by j.rhy@n »

Thx for the reply..

I'm not advanced on PHP code..

I'm not sure how to split up the code to allow the following, i.e Total in 1 table followed my the number in another..

This is the look I'm after for the block :

Image

Topic author
j.rhy@n
Active Member
Posts: 35
Joined: 6. October 2008 13:02

Re: Whos Online Block

Post by j.rhy@n »

Ok, I had a friend make it for me..

Whois_online.html "Block"

Code is below, you can see it in action on my site at http://www.j-rhyan.de

Code: Select all

<!-- $Id: whois_online.html,SpacepiG $ //-->

<div class="portal-panel">

    <div class="inner">

        <span class="corners-top"><span></span></span>

            <h3>{L_WHO_IS_ONLINE}</h3>

            <span style="float:left;">{L_WIO_TOTAL}:</span><span style="float:right;padding-right:10px;">{TOTAL_ONLINE_USERS}</span><br /><h4></h4>

            <span style="float:left;">{L_WIO_REGISTERED}:</span><span style="float:right;padding-right:10px;">{VISIBLE_ONLINE}</span><br />

            <span style="float:left;">{L_WIO_HIDDEN}:</span><span style="float:right;padding-right:10px;">{HIDDEN_ONLINE}</span><br />

            <span style="float:left;">{L_WIO_GUEST}:</span><span style="float:right;padding-right:10px;">{GUEST_ONLINE}</span><br /><h4></h4>

            <small>

                <br />{RECORD_USERS}<br /><h4></h4><br />{LOGGED_IN_USER_LIST}<br /><h4></h4>

                <!-- IF LEGEND --><br />

                {L_LEGEND} :: {LEGEND}

                <!-- ENDIF -->

            </small>

        <span class="corners-bottom"><span></span></span>

    </div>

</div>

<br style="clear:both" /> 

Furz12345
Active Member
Posts: 6
Joined: 4. October 2008 21:14

Re: Whos Online Block

Post by Furz12345 »

Ich wollte genau das gleiche Design von diesem Block, aber irgendwie ergeben die Variablen ({TOTAL_ONLINE_USERS},{VISIBLE_ONLINE},...) rein gar nichts. Das heißt, wenn ich z.B. diesen sehr vereinfachten Block nehme:

Code: Select all

<!--version $Id: whois_online.html 284 2008-08-10 21:46:36Z icedcold $ //-->

<table class="tablebg" width="100%" cellspacing="1">
  <tr>
    <th><span style="float: left">
      <img src="{T_THEME_PATH}/images/portal/portal_whosonline.png" width="16px" height="16px" alt="" /> {L_WHO_IS_ONLINE} </span></th>
  </tr>
  <tr class="row1">
    <td>            
{TOTAL_ONLINE_USERS}</td>
  </tr>

</table>
<br clear="all" /> 
erscheint nur die Zeile mit 'Wer ist Online?' und darunter eine leere Zeile, die etwa 2 Pixel hoch ist.

Die Variablen scheinen also, warum auch immer, nicht definiert zu sein. Jetzt wäre meine Frage, was habe ich verbockt?
mfg
Post Reply

Return to “Modification Requests”