modda hiç bir sorun yok...tek sorun bu mod subsilver temasına göre olduğu için kendi temama uyduramadığım tek ayarlama index body .tpl dosyası... sorun aşağıdaki resimdede gözüküyo
MOD BU
Kod: Tümünü seç
########################################################
## MOD Title: Forum Icon with ACP Control (Default)
## MOD Version: 1.0.4
## MOD Author: Mac (Y.C. LIN) < ycl_6@sinamail.com > http://endless-tw.net
##
## MOD Description: This mod allow admin to give each forum a icon in the ACP
## Icons will show on index
##
## Installation Level: Easy
## Installation Time: 3 Minutes
##
## Files To Edit: 8
## index.php
## viewforum.php
## admin/admin_forums.php
## language/lang_english/lang_admin.php
## templates/subSilver/admin/forum_admin_body.tpl
## templates/subSilver/admin/forum_edit_body.tpl
## templates/subSilver/index_body.tpl
## templates/subSilver/viewforum_body.tpl
##
## Included Files: n/a
##
#################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## Set your forum icon image paths as those rank images
##
## If you wish to using the LIST BOX option,
## you have to follow the instruction in EXTRA folder. Please DO NOT using the below code!
## Both options CANNOT be used together.
##
##############################################################
## MOD History:
##
## 2003-11-04 - Version 1.0.0
## - Initial Release
##
## 2003-11-08 - Version 1.0.1
## - Checked for 2.0.6 competibility, no change in coding
##
## 2003-11-15 - Version 1.0.2
## - Corrections were made for phpBB MOD Database submission
##
## 2003-12-01 - Version 1.0.3
## - Forum icon selectable using list box (Option 2)
## - Add forum icon image to Forum Administration main panel
## - Add forum icon image to corresponding the viewforum.php
##
## 2004-02-11 - Version 1.0.4
## - Fix ListBox no-picture problem when icon is slected for the first time
## People using the default option DOES NOT need to upgrade
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix used on your database
ALTER TABLE `phpbb2_forums` ADD `forum_icon` VARCHAR( 255 ) default NULL;
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Forum_status'] = 'Forum status';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Forum_icon'] = 'Forum icon'; // Forum Icon MOD
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_forums.php
#
#-----[ FIND ]------------------------------------------
#
$forumstatus = $row['forum_status'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$forumicon = $row['forum_icon']; // Forum Icon MOD
#
#-----[ FIND ]------------------------------------------
#
$forumstatus = FORUM_UNLOCKED;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$forumicon = ''; // Forum Icon MOD
#
#-----[ FIND ]------------------------------------------
#
'L_FORUM_STATUS' => $lang['Forum_status'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_FORUM_ICON' => $lang['Forum_icon'], // Forum Icon MOD
#
#-----[ FIND ]------------------------------------------
#
'DESCRIPTION' => $forumdesc)
#
#-----[ REPLACE WITH ]------------------------------------------
#
'DESCRIPTION' => $forumdesc,
'ICON' => ( $forumicon ) ? $forumicon : '', // Forum Icon MOD
'ICON_DISPLAY' => ( $forumicon ) ? '<img src="' . $phpbb_root_path . $forumicon . '" />' : '' // Forum Icon 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 ]------------------------------------------
#
, forum_icon
#
#-----[ 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']) . "
#
#-----[ AFTER, ADD ]------------------------------------------
#
, '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "'
#
#-----[ 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']) . "
#
#-----[ AFTER, ADD ]------------------------------------------
#
, forum_icon = '" . str_replace("\'", "''", $HTTP_POST_VARS['forumicon']) . "'
#
#-----[ FIND ]------------------------------------------
#
'FORUM_DESC' => $forum_rows[$j]['forum_desc'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'FORUM_ICON_IMG' => ( $forum_rows[$j]['forum_icon'] ) ? '<img src="' . $phpbb_root_path . $forum_rows[$j]['forum_icon'] . '" alt="'.$forum_data[$j]['forum_name'].'" title="'.$forum_data[$j]['forum_name'].'" />' : '', // Forum Icon Mod
#
#-----[ OPEN ]------------------------------------------
#
index.php
#
#-----[ FIND ]------------------------------------------
#
$posts = $forum_data[$j]['forum_posts'];
$topics = $forum_data[$j]['forum_topics'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$icon = $forum_data[$j]['forum_icon']; // Forum Icon Mod
#
#-----[ FIND ]------------------------------------------
#
'FORUM_FOLDER_IMG' => $folder_image,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'FORUM_ICON_IMG' => ($icon) ? '<img src="' . $phpbb_root_path . $icon . '" alt="'.$forum_data[$j]['forum_name'].'" title="'.$forum_data[$j]['forum_name'].'" />' : '', // Forum Icon Mod
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
'FORUM_NAME' => $forum_row['forum_name'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'FORUM_ICON_IMG' => ($forum_row['forum_icon']) ? '<img src="' . $phpbb_root_path . $forum_row['forum_icon'] . '" alt="'.$forum_row['forum_name'].'" title="'.$forum_row['forum_name'].'" /> ' : '', // Forum Icon Mod Icon 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_FORUM_ICON}</td>
<td class="row2"><input type="text" size="35" name="forumicon" value="{ICON}" class="post" /> {ICON_DISPLAY}</td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/forum_admin_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row2"><span class="gen"><a href="{catrow.forumrow.U_VIEWFORUM}" target="_new">{catrow.forumrow.FORUM_NAME}</a></span><br /><span class="gensmall">{catrow.forumrow.FORUM_DESC}</span></td>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<td class="row2"><span class="gen">
#
#-----[ AFTER, ADD ]------------------------------------------
#
{catrow.forumrow.FORUM_ICON_IMG}
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
colspan="2"
#
#-----[ REPLACE WITH ]------------------------------------------
#
colspan="3"
#
#-----[ FIND ]------------------------------------------
#
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
colspan="2"
#
#-----[ REPLACE WITH ]------------------------------------------
#
colspan="3"
#
#-----[ FIND ]------------------------------------------
#
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<td class="row1" align="center" valign="middle" height="50">{catrow.forumrow.FORUM_ICON_IMG}</td>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
<td align="left" valign="bottom" colspan="2">
#
#-----[ AFTER, ADD ]------------------------------------------
#
{FORUM_ICON_IMG}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
[ resmi görüntülemek için tıklayın ]
benim index body tpl dosyamda bu neresinin değişmesi lazım lütfen yardımcı olurmusunuz
Kod: Tümünü seç
<div align="center">
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="tborder">
<tr>
<td align="left" valign="middle" class="row2" width="60%">
<img src="templates/rogue_x/images/navbit.gif" style="vertical-align:middle" alt="" /> <span class="title">{L_INDEX}</span>
</td>
<td align="left" class="row1">
<!-- BEGIN switch_user_logged_in -->
<span class="gensmall">
{LAST_VISIT_DATE}<br />
<a href="privmsg.php?folder=inbox">Inbox</a> | <a href="privmsg.php?folder=sentbox">Sentbox</a> | <a href="privmsg.php?folder=outbox">Outbox</a> | <a href="privmsg.php?folder=savebox">Savebox</a><br />
{PRIVATE_MESSAGE_INFO}
</span>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}" style="padding:0px;margin:0px">
<table width="99%" cellspacing="0" border="0" align="center" cellpadding="2">
<tr>
<td align="left"><span class="gensmall">User:</span></td>
<td align="left"><input tabindex="1" class="post" type="text" name="username" size="10" /></td>
<td align="left" class="gensmall"><input type="checkbox" name="autologin" style="vertical-align:middle" checked="checked" /> Remember Me?</td>
</tr><tr>
<td align="left"><span class="gensmall">Pass:</span></td>
<td align="left"><input tabindex="2" class="post" type="password" name="password" size="10" maxlength="32" /></td>
<td align="left"><input tabindex="3" type="submit" class="mainoption" name="login" value="Login" /><br /></td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->
</td>
</tr>
</table>
</div>
<br />
<!-- BEGIN catrow -->
<!-- eXtremepixels.com top category table setup -->
<table width="100%" class="tcat" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="cat_top_ls" width="34"><img src="templates/rogue_x/images/trans.gif" width="34" height="28" border="0" alt="" /></td>
<td width="100%" align="left" valign="middle" class="tcat">
<span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span>
</td>
<td class="cat_top_rs" width="34"><img src="templates/rogue_x/images/trans.gif" width="34" height="28" border="0" alt="" /></td>
</tr>
</table>
<!-- End top category table setup -->
<table width="100%" align="center" cellpadding="4" cellspacing="1" border="0" class="tborder">
<tr>
<th width="33" height="10" nowrap="nowrap"> </th>
<th height="10" nowrap="nowrap" align="left" valign="middle"><div align="left"> {L_FORUM}</div></th>
<th width="50" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" nowrap="nowrap"> {L_POSTS} </th>
<th align="center" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="20" height="22" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" align="center" valign="middle" height="50">{catrow.forumrow.FORUM_ICON_IMG}</td>
<td class="row2" width="100%"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row1" align="center" valign="middle"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row1" align="center" valign="middle" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</table>
<!-- bottom table setup -->
<table width="100%" class="thead" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="5"><img src="templates/rogue_x/images/trans.gif" height="5" alt=" " border="0" /></td>
</tr>
</table>
<!-- bottom table setup -->
<br />
<!-- END catrow -->
<!-- eXtremepixels.com top category table setup -->
<table width="100%" class="tcat" border="0" cellpadding="0" cellspacing="0">
<tr>
<td class="cat_top_ls" width="34"><img src="templates/rogue_x/images/trans.gif" width="34" height="28" border="0" alt="" /></td>
<td width="100%" align="left" valign="middle" class="tcat">
<span class="cattitle"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></span>
</td>
<td class="cat_top_rs" width="34"><img src="templates/rogue_x/images/trans.gif" width="34" height="28" border="0" alt="" /></td>
</tr>
</table>
<!-- End top category table setup -->
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="tborder">
<tr>
<td rowspan="2" width="30" align="center" class="row1" nowrap="nowrap"><img src="templates/rogue_x/images/whos_online.gif" width="24" height="24" alt="" border="0" /></td>
<td width="100%" class="row2" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} <br /> {RECORD_USERS}</span></td>
</tr><tr>
<td width="100%" class="row2" align="left"><span class="gensmall">{LOGGED_IN_USER_LIST}</span></td>
</tr>
<tr>
<th colspan="2" align="left" valign="middle" height="55"><div align="left">Board Statistics</div></th>
</tr>
<tr>
<td class="row2" colspan="2" align="left" valign="middle">
<span class="gensmall">{TOTAL_USERS} :: {TOTAL_POSTS}<br />{NEWEST_USER}</span>
</td>
</tr>
</table>
<!-- bottom table setup -->
<table width="100%" class="thead" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="5"><img src="templates/rogue_x/images/trans.gif" height="5" alt=" " border="0" /></td>
</tr>
</table>
<!-- bottom table setup -->
<br />
<table cellspacing="1" border="0" align="center" cellpadding="6" style="background-color: #70140B; border: 1px #353535 solid">
<tr>
<td width="28" align="center"><img src="templates/rogue_x/images/on.gif" alt="{L_NEW_POSTS}"/></td>
<td align="center"><span class="gensmall">{L_NEW_POSTS}</span></td>
<td width="28" align="center"><img src="templates/rogue_x/images/off.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td align="center"><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td width="28" align="center"><img src="templates/rogue_x/images/lock.gif" alt="{L_FORUM_LOCKED}" /></td>
<td align="center"><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
<br /><br />
<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
<tr>
<td align="left" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td>
<td valign="top" align="right"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a> |
<!-- END switch_user_logged_in -->
<a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span><br /><br /></td>
</tr>
</table>
<br clear="all" />