alt bolumleri siraliyan mod

berq0704.01.2011 - 01:03
bu sitedeki gibi alt bölümleri siralamak istiyorum bunun icin bi mod varmi ? manüel olursa sevinirim

Linkback: https://www.buyuknet.com/alt-bolumleri-siraliyan-mod-t32336.0.html

tarantula90104.01.2011 - 01:05
alt sıraları derken sıtenın en altındakı sıtemap 1 2 3 seklınde olan bırseymı ıstıyorsunuz

berq0704.01.2011 - 01:06
yok hayir alt kategorileri bu sitedeki gibi alt alta istiyorum

tarantula90104.01.2011 - 01:10
Boardindex.template.php de bul
Kod: [Seç]
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
foreach ($board['children'] as $child)
{
if (!$child['is_redirect'])
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . $child['topics'] . ', ' . $txt['posts'] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
else
$child['link'] = '<a href="' . $child['href'] . '" title="' . $child['posts'] . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

// Has it posts awaiting approval?
if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
$child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';sesc=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

$children[] = $child['new'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];


}
echo '
<tr>
<td class="windowbg3 smalltext largepadding"><strong>', $txt['parent_boards'], '</strong>: ', implode(', ', $children), '</td>

değiştir
Kod: [Seç]
/* Each child in each board's children has:
id, name, description, new (is it new?), topics (#), posts (#), href, link, and last_post. */
                    $sayac=0;
foreach ($board['children'] as $child)
{
if (!$child['is_redirect'])
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt['new_posts'] : $txt['old_posts']) . ' (' . $txt['board_topics'] . ': ' . $child['topics'] . ', ' . $txt['posts'] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
else
$child['link'] = '<a href="' . $child['href'] . '" title="' . $child['posts'] . ' ' . $txt['redirects'] . '">' . $child['name'] . '</a>';

// Has it posts awaiting approval?
if ($child['can_approve_posts'] && ($child['unapproved_posts'] | $child['unapproved_topics']))
$child['link'] .= ' <a href="' . $scripturl . '?action=moderate;area=postmod;sa=' . ($child['unapproved_topics'] ? 'topics' : 'posts') . ';brd=' . $child['id'] . ';sesc=' . $context['session_id'] . '" title="' . sprintf($txt['unapproved_posts'], $child['unapproved_topics'], $child['unapproved_posts']) . '" class="moderation_link">(!)</a>';

@$children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/on.gif" width="12" height="12" alt="' . $txt[333] . '"/><strong>' . $child['link'] . '</strong>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/off.gif" width="12" height="12" alt="' . $txt[334] . '"/>' . $child['link'];
$sayac++;
}
echo '
<tr>
<td class="windowbg3 smalltext largepadding">
<table style="float:right; padding-left:10px;margin-top: 15px;" width="97%" cellspacing="0" cellpadding="3" border="0">
<tr>
<td style="width:50%" valign="top">
<strong>', $txt['parent_boards'], '</strong>:<br/>';
for($sayac2 = 0 ; $sayac2 < ceil($sayac/2);$sayac2++)
echo $children[$sayac2], '<br/>';
echo '
</td>
<td style="width:60%" valign="top">
<br/>';
for(; $sayac2 < $sayac ; $sayac2++)
echo $children[$sayac2], '<br/>';
echo '
</td>
</tr>
</table>
</td>

yedek almadan denemeyınız



Etiket:

Bu bilgi size yardimci oldu mu?

EvetHayır
alt bolumleri siraliyan mod
alt bolumleri siraliyan mod
(Ortalama: 5 üzerinden 2.5 - 2 Oy)
2