Alternatifim Cafe

Alt Forumlar? ?ki Sütuna Bölme

Discussion started on Webmaster Programları

Kurulum:
Vbulletin Options >>> forum listeleme görüntüleme seçenekleri >>> Depth of Sub-Forums >>> 0'? 4 yap?yoruz.
/functions_forumlist.php 'de su kodlar? buluyoruz.

PHP Kodu:
Kod: [Seç]
foreach($vbulletin->iforumcache["$parentid"] AS $forumid)
Place this code above it:
$output .= "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\" ><tr valign=\"top\"> ";
$cols = 0;


ustune ekl?yoruz;
PHP Kodu:
Kod: [Seç]
if (!empty($output))
{
$subforum = $splitter["$canpost"] . $subforum;
}
if ($depth < $vbulletin->options['subforumdepth'])
{
$output .= construct_subforum_bit($forumid, $cancontainthreads, $subforum, $depthmark . '--', $depth + 1);
}
}
}
return $output;
}
Replace with
//sub-forum hack
if ($depth < $vbulletin->options['subforumdepth'])
{
$cols++;
if ($cols==3)
{
$cols = 1;
$output .= "</tr><tr>";
}
$output .= '<td width="50%">' . construct_subforum_bit($forumid, $cancontainthreads, $subforum, $depthmark . '--', $depth + 1) . "</td>";
}
}
}
if ($cols ==1) $output.="<td>&nbsp;</td></tr></table>";
else $output.="</tr></table>";
return $output;
}
//end hack

tekrar bu kodlar? buluyoruz.

PHP Kodu:
Kod: [Seç]
if (!empty($output))
{
$subforum = $splitter["$canpost"] . $subforum;
}
if ($depth < $vbulletin->options['subforumdepth'])
{
$output .= construct_subforum_bit($forumid, $cancontainthreads, $subforum, $depthmark . '--', $depth + 1);
}
}
}
return $output;
}

bunlarla degi?t?r?yoruz.
PHP Kodu:
Kod: [Seç]
//sub-forum hack
if ($depth < $vbulletin->options['subforumdepth'])
{
$cols++;
if ($cols==3)
{
$cols = 1;
$output .= "</tr><tr>";
}
$output .= '<td width="50%">' . construct_subforum_bit($forumid, $cancontainthreads, $subforum, $depthmark . '--', $depth + 1) . "</td>";
}
}
}
if ($cols ==1) $output.="<td>&nbsp;</td></tr></table>";
else $output.="</tr></table>";
return $output;
}
//end hack

"forumhome_subforumbit_post" u tamamen silip a?a??dakini ekleyin.
PHP Kodu:
Kod: [Seç]
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/subforum_$forum[statusicon].gif" alt="" /> <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><span class="smallfont">$forum[title]</span></a>
#1 - Ağustos 23 2006, 23:28:23

Üye:

0 Üye ve 1 Ziyaretçi konuyu incelemekte.