Willkommen in der Webstatt Zum Webstatt Blog und Stories
BundeHund am 17.10.06 13:11

Hallo

Ich hätte da wiedermal ne 'dumme' frage...


<?php
if (!defined('e107_INIT')) { exit; }

$caption = (file_exists(THEME."images/online_menu.png") ? "
".ONLINE_L4 : ONLINE_L4);

if(!defined("e_TRACKING_DISABLED") && (isset($pref['track_online']) && $pref['track_online'])) {
$text = ONLINE_L1.GUESTS_ONLINE." <b>|</b> ";
//if($pref['user_reg'] == 1){
$text .= ONLINE_L2.MEMBERS_ONLINE.(MEMBERS_ONLINE ? ", ": "").MEMBER_LIST."<br />";
//}


global $e107cache;
$members_totals = $e107cache->retrieve("online_menu_totals", 120);
if($members_totals == false) {
$total_members = $sql->db_Count("user");
$newest_member = $sql->db_Select("user", "user_id, user_name", "user_ban='0' ORDER BY user_join DESC LIMIT 0,1");
$row = $sql->db_Fetch();
extract($row);
$members_totals = "".ONLINE_L5.": ".$total_members."</font>";
$e107cache->set("online_menu_totals", $members_totals);
}
$text .= $members_totals;

} else {
if(ADMIN) {
$text = TRACKING_MESSAGE;
} else {
return;
}
}

$ns->tablerender($caption, $text, 'online');

?>



wie kann ich vor dem $caption eine html zeile einbinden?

mit $text habe ich es versucht, geht aber nicht..

kann mir einer helfen?


//edit by snake:
syntax highlight aktiviert

netcup.de Warum gibt es hier Werbung?
nuit nuit am 17.10.06 16:08

zwar unsauber, aber es geht *g*
vielleicht findet man was anderes....
<?php
if (!defined('e107_INIT')) { exit; }

$caption = '<table></table>';

$caption .= (file_exists(THEME."images/online_menu.png") ? "
".ONLINE_L4 : ONLINE_L4);

if(!defined("e_TRACKING_DISABLED") && (isset($pref['track_online']) && $pref['track_online'])) {
$text = ONLINE_L1.GUESTS_ONLINE." <b>|</b> ";
//if($pref['user_reg'] == 1){
$text .= ONLINE_L2.MEMBERS_ONLINE.(MEMBERS_ONLINE ? ", ": "").MEMBER_LIST."<br />";
//}


global $e107cache;
$members_totals = $e107cache->retrieve("online_menu_totals", 120);
if($members_totals == false) {
$total_members = $sql->db_Count("user");
$newest_member = $sql->db_Select("user", "user_id, user_name", "user_ban='0' ORDER BY user_join DESC LIMIT 0,1");
$row = $sql->db_Fetch();
extract($row);
$members_totals = "".ONLINE_L5.": ".$total_members."</font>";
$e107cache->set("online_menu_totals", $members_totals);
}
$text .= $members_totals;
} else {
if(ADMIN) {
$text = TRACKING_MESSAGE;
} else {
return;
}
}

$ns->tablerender($caption, $text, 'online');

?>

execute am 18.10.06 12:40

$ns->tablerender("<div>".$caption."</div>", $text, 'online');

so?

Creative Commons Lizenzvertrag
Alle Inhalte des Webstatt-Archivs stehen unter einer Creative Commons Namensnennung - Weitergabe unter gleichen Bedingungen 3.0 Unported Lizenz.

Impressum & Kontakt