Hi.
i upgraded my forum to phpbb 3.0.1 and now i want install advanced rewrite mod.
but i have a mod that is so important for me that display the lost poste on index like it:
the scroll.php file is here:
http://www.speedyshare.com/215526756.html
i uploaded it too my root forum.
i want to see that this mod will work when i install the advanced rewrite mod?
after this:
- Code: Select all
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
is the places that won't show at scroll like:
- Code: Select all
if ($row["forum_id"] <> 117)
that 117 is the forum id.
if not can plz help me to fix it for that.?
another question that i have is about sub forums:
i have changed file include/functions_display.php like this:
find:
- Code: Select all
$s_subforums_list = array();
foreach ($subforums_list as $subforum)
{
$s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '">' . $subforum['name'] . '</a>';
}
$s_subforums_list = (string) implode(', ', $s_subforums_list);
$catless = ($row['parent_id'] == $root_data['forum_id']) ? true : false;
and replacet it with:
- Code: Select all
//$s_subforums_list = array();
$say=0;
$s_subforums_list='<table border="0" width="400">';
foreach ($subforums_list as $subforum)
{
$say++;
if(($say%2)==0){
$s_subforums_list .= '</td><td width="50%"><a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '" title="' . (($subforum['unread']) ? $user->lang['NEW_POSTS'] : $user->lang['NO_NEW_POSTS']) . '">' . $subforum['name'] . '</a></td></tr>';
}else{
$s_subforums_list .= '<tr><td width="50%"><a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '" title="' . (($subforum['unread']) ? $user->lang['NEW_POSTS'] : $user->lang['NO_NEW_POSTS']) . '">' . $subforum['name'] . '</a></td>';
}
}
$s_subforums_list .='</table>';
$catless = ($row['parent_id'] == $root_data['forum_id']) ? true : false;
it display subforums like this:
now i want to know that is it bad for indexing the subforums?becuase i check in google and didn't see that subforums index
i am waiting for u
