Könnte mir als jemand auf die schnelle mal den folgenden kleinen Zusatz für ein normales phpbb anpassen.
Code: Alles auswählen
#
#-----[ SQL ]------------------------------------------
#
INSERT INTO phpbb_portal (portal_name, portal_value) VALUES ("html_area", "html area");
#
#-----[ OPEN ]------------------------------------------
#
portal.php
#
#-----[ FIND ]------------------------------------------
#
'WELCOME_TEXT' => $CFG['welcome_text'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'HTML_AREA' => $CFG['html_area'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/portal_body.tpl
#
#-----[ ADD ]------------------------------------------
# // Wherever you want the html to appear insert
{HTML_AREA}
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Welcome_Text'] = 'Welcome Message';
#
#-----[ AFTER, ADD ]-----------------------------------
#
$lang['Html_areal'] = 'Portal Html Area';
#
#-----[ OPEN ]------------------------------------------
#
language/lang_german/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Welcome_Text'] = 'Willkommensnachricht';
#
#-----[ AFTER, ADD ]-----------------------------------
#
$lang['Html_areal'] = 'Portal HTML Bereich';
#
#-----[ OPEN ]-----
#
index.php
#
#-----[ FIND ]-----
#
//
// End session management
//
#
#-----[ AFTER, ADD ]-----
#
// Read Portal Configuration from DB
define('PORTAL_TABLE', $table_prefix.'portal');
$CFG = array();
$sql = "SELECT * FROM " . PORTAL_TABLE . "
WHERE portal_name = 'html_area'";
if( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$CFG[$row['portal_name']] = $row['portal_value'];
}
#
#-----[ FIND ]-----
#
$template->assign_vars(array(
#
#-----[ AFTER, ADD ]-----
#
'HTML-AREA' => $CFG['html_area'],
#
#-----[ OPEN ]-----
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]-----
# // A place you will display the box
<table cellspacing="3" border="0" align="center" cellpadding="0">
#
#-----[ BEFORE, ADD ]-----
#
{HTML-AREA}
#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM
#
#-----[ SAVE/CLOSE ALL FILES ]-----------------------------------
#
# EoM
Ich bedanke mich schon jetzt dafür und falls noch Fragen sind, dann einfach her damit.