Webstatt.org - Community seit 2006 - 2012 (2024?)

php und html?!

user-143
17.10.2006 11:11

Hallo

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



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

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

if(!defined("e_TRACKING_DISABLED"zwinkern && (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 ? ", ": ""zwinkern.MEMBER_LIST."<br />";
//}


global $e107cache;
$members_totals = $e107cache->retrieve("online_menu_totals", 120);
if($members_totals == false) {
$total_members = $sql->db_Count("user"zwinkern;
$newest_member = $sql->db_Select("user", "user_id, user_name", "user_ban='0' ORDER BY user_join DESC LIMIT 0,1"zwinkern;
$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'zwinkern;

?>



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

ALLE KÖNNEN FICKEN NUR DU KANNST ES NICHT - DU ARSCHGESICHT!
Avatar user-271
17.10.2006 14:08

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

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

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

if(!defined("e_TRACKING_DISABLED"zwinkern && (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 ? ", ": ""zwinkern.MEMBER_LIST."<br />";
//}


global $e107cache;
$members_totals = $e107cache->retrieve("online_menu_totals", 120);
if($members_totals == false) {
$total_members = $sql->db_Count("user"zwinkern;
$newest_member = $sql->db_Select("user", "user_id, user_name", "user_ban='0' ORDER BY user_join DESC LIMIT 0,1"zwinkern;
$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'zwinkern;

?>


#!/bin/bash
traurig){ neutral:& };:
user-175
18.10.2006 10:40

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


so?

:>