Merged small whois online block into whois online module

This commit is contained in:
Marc Alexander
2012-01-04 16:13:56 +01:00
parent 80abc153ea
commit 5e8cdd6ba3
4 changed files with 23 additions and 2 deletions

View File

@@ -137,6 +137,7 @@ Weitere Sprachen kannst in unserem Internationalen Forum finden: http://www.boar
<change>Allow duplicate inclusion of module if it's in a different column type</change>
<change>Fixed incorrect arrow directions when using rtl language (ACP)</change>
<change>Disabled poll module for the side columns</change>
<change>Merged small whois online block into whois online module</change>
</changelog>
<changelog lang="de">
<change>Deutsche Sprachvariablen mit englischen ersetzt</change>
@@ -166,6 +167,7 @@ Weitere Sprachen kannst in unserem Internationalen Forum finden: http://www.boar
<change>Doppelte Einbindung von Modulen erlaubt, falls sie in einem anderen Spaltentyp hinzugefügt werden</change>
<change>Falsche Pfeilrichtungen bei RTL Sprachen korrigiert (Admin-Bereich)</change>
<change>Umfrage Modul in den seitlichen Spalten deaktiviert</change>
<change>Kleinen "Wer ist online?" Block in das "Wer ist online?" Modul eingefügt</change>
</changelog>
</entry>
<entry>

View File

@@ -28,7 +28,7 @@ class portal_whois_online_module
* right 8
* bottom 16
*/
public $columns = 21;
public $columns = 31;
/**
* Default modulename
@@ -39,7 +39,7 @@ class portal_whois_online_module
* Default module-image:
* file must be in "{T_THEME_PATH}/images/portal/"
*/
public $image_src = '';
public $image_src = 'portal_friends.png';
/**
* module-language file
@@ -105,6 +105,15 @@ class portal_whois_online_module
return 'whois_online_center.html';
}
public function get_template_side($module_id)
{
global $config, $template, $user, $auth, $db, $phpbb_root_path, $phpEx;
// No legend on the side so just return the template file
return 'whois_online_side.html';
}
public function get_template_acp($module_id)
{
return array(

View File

@@ -0,0 +1,3 @@
{$LR_BLOCK_H_L}<!-- IF $S_BLOCK_ICON --><img src="{$IMAGE_SRC}" width="{$IMAGE_WIDTH}" height="{$IMAGE_HEIGHT}" alt="" />&nbsp;<!-- ENDIF --><!-- IF U_VIEWONLINE --><a href="{U_VIEWONLINE}">{$TITLE}</a><!-- ELSE -->{$TITLE}<!-- ENDIF -->{$LR_BLOCK_H_R}
<p style="font-size: 90%; margin: 0 5px 0 5px;">{TOTAL_USERS_ONLINE}<br /> <br />{LOGGED_IN_USER_LIST}</p>
{$LR_BLOCK_F_L}{$LR_BLOCK_F_R}

View File

@@ -0,0 +1,7 @@
{$LR_BLOCK_H_L}<!-- IF $S_BLOCK_ICON --><img src="{$IMAGE_SRC}" width="{$IMAGE_WIDTH}" height="{$IMAGE_HEIGHT}" alt="" />&nbsp;<!-- ENDIF --><!-- IF U_VIEWONLINE --><a href="{U_VIEWONLINE}">{$TITLE}</a><!-- ELSE -->{$TITLE}<!-- ENDIF -->{$LR_BLOCK_H_R}
<table class="tablebg" cellspacing="1" width="100%">
<tr>
<td class="row1" width="100%"><span class="genmed">{TOTAL_USERS_ONLINE}<br /><br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</table>
{$C_BLOCK_F_L}{$C_BLOCK_F_R}