Sorry, dass ich erst jetzt antworte.
Ich hab mal den Mod angepasst. Hoffe ich hab nichts vergessen.
Code: Alles auswählen
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
ALTER TABLE `phpbb_forums` ADD `topic_bg` VARCHAR( 255 ) default NULL;
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Forum_status'] = 'Forum status';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Topic_bg'] = 'Topic Background'; // Topic Background MOD
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------
#
$forumstatus = $row['forum_status'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$topicbg = $row['topic_bg']; // Topic Background MOD
#
#-----[ FIND ]------------------------------------------
#
$forumstatus = FORUM_UNLOCKED;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$topicbg = ''; // Topic Background MOD
#
#-----[ FIND ]------------------------------------------
#
'L_FORUM_STATUS' => $lang['Forum_status'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_TOPIC_BG' => $lang['Topic_bg'], // Topic Background MOD
#
#-----[ FIND ]------------------------------------------
#
'DESCRIPTION' => $forumdesc)
#
#-----[ REPLACE WITH ]------------------------------------------
#
'DESCRIPTION' => $forumdesc,
'TOPIC_BG' => ( $topicbg ) ? $topicbg : '', // Topic Background MOD
'TOPIC_BG_DISPLAY' => ( $topicbg ) ? '<img src="' . $phpbb_root_path . $topicbg . '" />' : '' // Topic Background MOD
)
#
#-----[ FIND ]------------------------------------------
#
// There is no problem having duplicate forum names so we won't check for it.
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id, forum_name, cat_id, forum_desc, forum_order, forum_status, prune_enable" . $field_sql . ")
#
#-----[ IN-LINE FIND ]------------------------------------------
#
forum_status
#
#-----[ AFTER, ADD ]------------------------------------------
#
, topic_bg
#
#-----[ FIND ]------------------------------------------
#
VALUES ('" . $next_id . "', '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', $next_order, " . intval($HTTP_POST_VARS['forumstatus']) . ", " . intval($HTTP_POST_VARS['prune_enable']) . $value_sql . ")";
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, " . intval($HTTP_POST_VARS['forumstatus']) . "
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, '" . str_replace("\'", "''", $HTTP_POST_VARS['topicbg']) . "'
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . FORUMS_TABLE . "
SET forum_name = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumname']) . "', cat_id = " . intval($HTTP_POST_VARS[POST_CAT_URL]) . ", forum_desc = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumdesc']) . "', forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . ", prune_enable = " . intval($HTTP_POST_VARS['prune_enable']) . "
WHERE forum_id = " . intval($HTTP_POST_VARS[POST_FORUM_URL]);
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . "
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, topic_bg = '" . str_replace("\'", "''", $HTTP_POST_VARS['topicbg']) . "'
#
#-----[ FIND ]------------------------------------------
#
'FORUM_DESC' => $forum_rows[$j]['forum_desc'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'TOPIC_BG_IMG' => ( $forum_rows[$j]['topic_bg'] ) ? $phpbb_root_path . $forum_rows[$j]['topic_bg'] : '', // Topic Background MOD
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT t.topic_id, t.topic_title, t.topic_status, t.topic_replies, t.topic_time, t.topic_type, t.topic_vote, t.topic_last_post_id, f.forum_name, f.forum_status, f.forum_id, f.auth_view, f.auth_read, f.auth_post, f.auth_reply, f.auth_edit, f.auth_delete, f.auth_sticky, f.auth_announce, f.auth_pollcreate, f.auth_vote, f.auth_attachments" . $count_sql . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
f.forum_status
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, f.topic_bg
#
#-----[ FIND ]------------------------------------------
#
$topic_id = intval($forum_topic_data['topic_id']);
$topic_time = $forum_topic_data['topic_time'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$topic_bg = $forum_topic_data['topic_bg']; // Topic Background MOD
#
#-----[ FIND ]------------------------------------------
#
'POST_IMG' => $post_img,
'REPLY_IMG' => $reply_img,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'TOPIC_BG_IMG' => ($topic_bg) ? $phpbb_root_path . $topic_bg : '', // Topic Background MOD
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/forum_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_FORUM_NAME}</td>
<td class="row2"><input type="text" size="25" name="forumname" value="{FORUM_NAME}" class="post" /></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_TOPIC_BG}</td>
<td class="row2"><input type="text" size="35" name="topicbg" value="{TOPIC_BG}" class="post" /> {TOPIC_BG_DISPLAY}</td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
class="{postrow.ROW_CLASS}"
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
style="background-image: url({TOPIC_BG_IMG});"
#
#-----[ FIND ]------------------------------------------
#
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="top">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
class="{postrow.ROW_CLASS}"
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
style="background-image: url({TOPIC_BG_IMG});"
#
#-----[ FIND ]------------------------------------------
#
<td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
class="{postrow.ROW_CLASS}"
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
style="background-image: url({TOPIC_BG_IMG});"
#
#-----[ FIND ]------------------------------------------
#
<td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap="nowrap">
#
#-----[ IN-LINE FIND ]------------------------------------------
#
class="{postrow.ROW_CLASS}"
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
style="background-image: url({TOPIC_BG_IMG});"
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM