Ik heb me al zot gezoekt naar deze mods. (of hij bestaat niet, dat weet ik niet)
Als je op deze link klikt. http://www.covers-be-4u2.com/forum.php?c=3
Dan ziet hij er zo uit.
Wat ik wil dat is zo.
Wat rood is moet weg, Gaat dat, Kan dat ?
Heb ik ook gedaan, ik denk dat je iets moet veranderen in de index.php iets met ( catrow.forumrow ) of zoiets.paulus schreef:probeer is index_body.tpl
Code: Selecteer alles
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/subSilver/images/frame-tl.png" width="15" height="30"></td>
<td class="frame-t" width="100%" align="center"><span class="cattitle">Forum Menu</span></td>
<td><img src="templates/subSilver/images/frame-tr.png" width="15" height="30"></td>
</tr>
<tr>
<td class="frame-l"></td>
<td class="table-pad-nav" width="100%"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
<td class="frame-r"></td>
</tr>
<tr>
<td><img src="templates/subSilver/images/frame-bl.png" width="15" height="30"></td>
<td class="frame-b" width="100%"></td>
<td><img src="templates/subSilver/images/frame-br.png" width="15" height="30"></td>
</tr>
</table>
<br />
<!-- BEGIN catrow -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/subSilver/images/frame-tl.png" width="15" height="30"></td>
<td class="frame-t" width="100%" align="center"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td><img src="templates/subSilver/images/frame-tr.png" width="15" height="30"></td>
</tr>
<tr>
<td class="frame-l"></td>
<td class="table-pad" width="100%">
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<!-- BEGIN forumrow -->
<tr>
<th class="thCornerL" align="center" nowrap>{L_FORUM}</th>
<th class="thTop" align="left"><span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a></span></th>
<th class="thTop" align="center" nowrap>{L_TOPICS}</th>
<th class="thTop" align="center" nowrap>{L_POSTS}</th>
<th class="thTop" align="center" nowrap>{L_FORUM_VIEWS}</th>
<th class="thCornerR" align="center" nowrap>{L_LASTPOST}</th>
</tr>
<tr>
<td class="row1" align="center" valign="middle" nowrap><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="40" height="40" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" align="left" valign="middle" width="100%"><span class="genmed">{catrow.forumrow.FORUM_DESC}</span><br /><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" nowrap><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" nowrap><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" nowrap><span class="gensmall">{catrow.forumrow.VIEWS}</span></td>
<td class="row2" align="center" valign="middle" nowrap><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</table></td>
<td class="frame-r"></td>
</tr>
<tr>
<td><img src="templates/subSilver/images/frame-bl.png" width="15" height="30"></td>
<td class="frame-b" width="100%"></td>
<td><img src="templates/subSilver/images/frame-br.png" width="15" height="30"></td>
</tr>
</table>
<br />
<!-- END catrow -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="templates/subSilver/images/frame-tl.png" width="15" height="30"></td>
<td class="frame-t" width="100%" align="center"><span class="cattitle">Forum Statistieken</span></td>
<td><img src="templates/subSilver/images/frame-tr.png" width="15" height="30"></td>
</tr>
<tr>
<td class="frame-l"></td>
<td class="table-pad" width="100%">
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<th class="thSides" colspan="2" align="left">{L_ONLINE_EXPLAIN}</th>
</tr>
<tr>
<td class="row1" align="center" valign="middle"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br />{USERS_OF_THE_DAY_LIST}</span></td>
</tr>
<tr>
<th class="thSides" colspan="2" align="center"><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></th>
</tr>
<tr>
<td class="row1" align="center" valign="middle"><img src="templates/subSilver/images/stats.gif" alt="Board statistics" /></td>
<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{NEWEST_USER}<br />{SITE_HITS}<br />{TOTAL_USERS}<br />
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br /><a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a> · <a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a> · <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a> · <a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td>
<!-- END switch_user_logged_in -->
</tr>
</table>
<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
<table class="formholder" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="center"><a name="login"></a><span class="gensmall"><strong>{L_LOGIN_LOGOUT}</strong> » {L_USERNAME}: <input class="post" type="text" name="username" size="10" /> {L_PASSWORD}: <input class="post" type="password" name="password" size="10" maxlength="32" /> {L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" /> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></span></td>
</tr>
</table>
</form>
<!-- END switch_user_logged_out -->
</td>
<td class="frame-r"></td>
</tr>
<tr>
<td><img src="templates/subSilver/images/frame-bl.png" width="15" height="30"></td>
<td class="frame-b" width="100%" align="center"><span class="cattitle"><a href="statistics.php" class="cattitle">Statistieken</a></span></td>
<td><img src="templates/subSilver/images/frame-br.png" width="15" height="30"></td>
</tr>
</table>
<br />
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="50" align="center"><img src="templates/subSilver/images/folder_new_big.gif" width="40" height="40" alt="{L_NEW_POSTS}"/></td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td width="50" align="center"><img src="templates/subSilver/images/folder_big.gif" width="40" height="40" alt="{L_NO_NEW_POSTS}" /></td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td width="50" align="center"><img src="templates/subSilver/images/folder_locked_big.gif" width="40" height="40" alt="{L_FORUM_LOCKED}" /></td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
<br />
Bischke schreef:Code: Selecteer alles
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="templates/subSilver/images/frame-tl.png" width="15" height="30"></td> <td class="frame-t" width="100%" align="center"><span class="cattitle">Forum Menu</span></td> <td><img src="templates/subSilver/images/frame-tr.png" width="15" height="30"></td> </tr> <tr> <td class="frame-l"></td> <td class="table-pad-nav" width="100%"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td> <td class="frame-r"></td> </tr> <tr> <td><img src="templates/subSilver/images/frame-bl.png" width="15" height="30"></td> <td class="frame-b" width="100%"></td> <td><img src="templates/subSilver/images/frame-br.png" width="15" height="30"></td> </tr> </table> <br /> <!-- BEGIN catrow --> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="frame-l"></td> <td class="table-pad" width="100%"> <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0"> <!-- BEGIN forumrow --> <tr> <th class="thCornerL" align="center" nowrap>{L_FORUM}</th> <th class="thTop" align="left"><span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a></span></th> <th class="thTop" align="center" nowrap>{L_TOPICS}</th> <th class="thTop" align="center" nowrap>{L_POSTS}</th> <th class="thTop" align="center" nowrap>{L_FORUM_VIEWS}</th> <th class="thCornerR" align="center" nowrap>{L_LASTPOST}</th> </tr> <tr> <td class="row1" align="center" valign="middle" nowrap><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="40" height="40" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td> <td class="row1" align="left" valign="middle" width="100%"><span class="genmed">{catrow.forumrow.FORUM_DESC}</span><br /><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td> <td class="row2" align="center" valign="middle" nowrap><span class="gensmall">{catrow.forumrow.TOPICS}</span></td> <td class="row2" align="center" valign="middle" nowrap><span class="gensmall">{catrow.forumrow.POSTS}</span></td> <td class="row2" align="center" valign="middle" nowrap><span class="gensmall">{catrow.forumrow.VIEWS}</span></td> <td class="row2" align="center" valign="middle" nowrap><span class="gensmall">{catrow.forumrow.LAST_POST}</span></td> </tr> <!-- END forumrow --> </table></td> <td class="frame-r"></td> </tr> <tr> <td><img src="templates/subSilver/images/frame-bl.png" width="15" height="30"></td> <td class="frame-b" width="100%"></td> <td><img src="templates/subSilver/images/frame-br.png" width="15" height="30"></td> </tr> </table> <br /> <!-- END catrow --> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="templates/subSilver/images/frame-tl.png" width="15" height="30"></td> <td class="frame-t" width="100%" align="center"><span class="cattitle">Forum Statistieken</span></td> <td><img src="templates/subSilver/images/frame-tr.png" width="15" height="30"></td> </tr> <tr> <td class="frame-l"></td> <td class="table-pad" width="100%"> <table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0"> <tr> <th class="thSides" colspan="2" align="left">{L_ONLINE_EXPLAIN}</th> </tr> <tr> <td class="row1" align="center" valign="middle"><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td> <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br />{USERS_OF_THE_DAY_LIST}</span></td> </tr> <tr> <th class="thSides" colspan="2" align="center"><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></th> </tr> <tr> <td class="row1" align="center" valign="middle"><img src="templates/subSilver/images/stats.gif" alt="Board statistics" /></td> <td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{NEWEST_USER}<br />{SITE_HITS}<br />{TOTAL_USERS}<br /> <!-- BEGIN switch_user_logged_in --> {LAST_VISIT_DATE}<br /><a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a> · <a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a> · <a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a> · <a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span></td> <!-- END switch_user_logged_in --> </tr> </table> <!-- BEGIN switch_user_logged_out --> <form method="post" action="{S_LOGIN_ACTION}"> <table class="formholder" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td align="center"><a name="login"></a><span class="gensmall"><strong>{L_LOGIN_LOGOUT}</strong> » {L_USERNAME}: <input class="post" type="text" name="username" size="10" /> {L_PASSWORD}: <input class="post" type="password" name="password" size="10" maxlength="32" /> {L_AUTO_LOGIN} <input class="text" type="checkbox" name="autologin" /> <input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></span></td> </tr> </table> </form> <!-- END switch_user_logged_out --> </td> <td class="frame-r"></td> </tr> <tr> <td><img src="templates/subSilver/images/frame-bl.png" width="15" height="30"></td> <td class="frame-b" width="100%" align="center"><span class="cattitle"><a href="statistics.php" class="cattitle">Statistieken</a></span></td> <td><img src="templates/subSilver/images/frame-br.png" width="15" height="30"></td> </tr> </table> <br /> <table border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td width="50" align="center"><img src="templates/subSilver/images/folder_new_big.gif" width="40" height="40" alt="{L_NEW_POSTS}"/></td> <td><span class="gensmall">{L_NEW_POSTS}</span></td> <td width="50" align="center"><img src="templates/subSilver/images/folder_big.gif" width="40" height="40" alt="{L_NO_NEW_POSTS}" /></td> <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td> <td width="50" align="center"><img src="templates/subSilver/images/folder_locked_big.gif" width="40" height="40" alt="{L_FORUM_LOCKED}" /></td> <td><span class="gensmall">{L_FORUM_LOCKED}</span></td> </tr> </table> <br />
Code: Selecteer alles
for($j = 0; $j < $total_forums; $j++)
{
if ( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] && $forum_data[$j]['cat_id'] == $cat_id )
{
$display_forums = true;
}
}
Code: Selecteer alles
if ( $viewcat == $cat_id || $viewcat == -1 )
{
for($j = 0; $j < $total_forums; $j++)
{
if ( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] && $forum_data[$j]['cat_id'] == $cat_id )
{
$display_forums = true;
}
}
}
Luuk schreef:Dit moet je ook niet in index_body.tpl veranderen maar in index.php. Ik zal even kijken voor de goede code.
EDIT:
zoek in index.phpen vervang metCode: Selecteer alles
for($j = 0; $j < $total_forums; $j++) { if ( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] && $forum_data[$j]['cat_id'] == $cat_id ) { $display_forums = true; } }
Code: Selecteer alles
if ( $viewcat == $cat_id || $viewcat == -1 ) { for($j = 0; $j < $total_forums; $j++) { if ( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] && $forum_data[$j]['cat_id'] == $cat_id ) { $display_forums = true; } } }
Code: Selecteer alles
// Okay, let's build the index
//
for($i = 0; $i < $total_categories; $i++)
{
$cat_id = $category_rows[$i]['cat_id'];
//
// Should we display this category/forum set?
//
$display_forums = false;
if ( $viewcat == $cat_id || $viewcat == -1 )
{
for($j = 0; $j < $total_forums; $j++)
{
if ( $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] && $forum_data[$j]['cat_id'] == $cat_id )
{
$display_forums = true;
}
}
}
//
// Yes, we should, so first dump out the category
// title, then, if appropriate the forum list
//
if ( $display_forums )
Code: Selecteer alles
// Let's decide which categories we should display
//
$display_categories = array();
for ($i = 0; $i < $total_forums; $i++ )
{
if ($is_auth_ary[$forum_data[$i]['forum_id']]['auth_view'])
{
$display_categories[$forum_data[$i]['cat_id']] = true;
}
}
//
// Okay, let's build the index
//
for($i = 0; $i < $total_categories; $i++)
{
$cat_id = $category_rows[$i]['cat_id'];
//
// Yes, we should, so first dump out the category
// title, then, if appropriate the forum list
//
if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
Code: Selecteer alles
// Let's decide which categories we should display
//
$display_categories = array();
for ($i = 0; $i < $total_forums; $i++ )
{
if ($is_auth_ary[$forum_data[$i]['forum_id']]['auth_view'])
{
$display_categories[$forum_data[$i]['cat_id']] = true;
}
}
//
// Okay, let's build the index
//
for($i = 0; $i < $total_categories; $i++)
{
$cat_id = $category_rows[$i]['cat_id'];
//
// Yes, we should, so first dump out the category
// title, then, if appropriate the forum list
//
if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
Code: Selecteer alles
// Let's decide which categories we should display
//
$display_categories = array();
if ( $viewcat == $cat_id || $viewcat == -1 )
for ($i = 0; $i < $total_forums; $i++ )
{
if ($is_auth_ary[$forum_data[$i]['forum_id']]['auth_view'])
{
$display_categories[$forum_data[$i]['cat_id']] = true;
}
}
}
//
// Okay, let's build the index
//
for($i = 0; $i < $total_categories; $i++)
{
$cat_id = $category_rows[$i]['cat_id'];
//
// Yes, we should, so first dump out the category
// title, then, if appropriate the forum list
//
if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
Nee dat gaat ook niet dan krijg ik deze fout: Parse error: parse error, unexpected '}' in /home/coversbe/public_html/forum.php on line 558Raimon schreef:Probeer eens deze code:
Zoek in index.php:
Vervang met:Code: Selecteer alles
// Let's decide which categories we should display // $display_categories = array(); for ($i = 0; $i < $total_forums; $i++ ) { if ($is_auth_ary[$forum_data[$i]['forum_id']]['auth_view']) { $display_categories[$forum_data[$i]['cat_id']] = true; } } // // Okay, let's build the index // for($i = 0; $i < $total_categories; $i++) { $cat_id = $category_rows[$i]['cat_id']; // // Yes, we should, so first dump out the category // title, then, if appropriate the forum list // if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])
Ik kan niks beloven , en maak een backup van tevoren.Code: Selecteer alles
// Let's decide which categories we should display // $display_categories = array(); if ( $viewcat == $cat_id || $viewcat == -1 ) for ($i = 0; $i < $total_forums; $i++ ) { if ($is_auth_ary[$forum_data[$i]['forum_id']]['auth_view']) { $display_categories[$forum_data[$i]['cat_id']] = true; } } } // // Okay, let's build the index // for($i = 0; $i < $total_categories; $i++) { $cat_id = $category_rows[$i]['cat_id']; // // Yes, we should, so first dump out the category // title, then, if appropriate the forum list // if (isset($display_categories[$cat_id]) && $display_categories[$cat_id])