Alt Bölümleri Alt Alta Sıralama

Started by Yağız..., November 08, 2008, 08:46:39 AM

Previous topic - Next topic

darkkA


Pяηѕѕ LF

Quote from: Pяєηѕєѕ 丂√丂 on January 16, 2009, 11:57:30 AM
Quote from: Yağız on December 28, 2008, 11:00:19 AM
Quote from: gurbetci on December 28, 2008, 10:41:04 AM
<td colspan="5" class="windowbg', !empty($settings['seperate_sticky_lock']) ? '3' : '', '">

usta "0"  yaptim hatta kalkti..

Pekala baslarina nasil resim ekleriz?
Bulun:
                     $children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
Değiştirin:
                     $children[] = $child['new'] ? '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/onk.gif" alt="' . $txt[333] . '"/><b>' . $child['link'] . '</b>' : '<img style="margin-right:5px;" src="' . $settings['images_url'] . '/offk.gif" alt="' . $txt[334] . '"/>' . $child['link'];
Yeni mesaj varken onk.gif, yokken offk.gif gözükür. Ona göre images klasörüne iki tane resim atın.

Merhaba,

Bir sey sormak istiyorum. Forum'da Boardicon yüklü ise, alt bölüm resimleri için onk.gif ve offk.gif yerine Boardicon resimlerinin gösterilmesi mümkünmü ?

Bir bölümde telefon resmi varsa boardicon da alt bölümlerdeki resimlerde kücük telefonlar olsun. Eger kitap varsa alt bölümler kitap olsun.

Umarim anlatabildim.

Kolay gelsin.


Bu eklenti ile ilgili fikri olan arkadaslar varmi  ?
1.1.21 Default

deejayss

hey gidi günler hey.

l1nux1ngtgb

Sana teşekkürlerimi sunuyorum Yağız.
İmkansız diye bir şeyin olması imkansızdır. ( söz L!NUX!NG )

akbora

Buradaki alt forumları 3 lü yapma metodu dilbermc kullanıyorum ve 1.18 smf.

Codlar uyar mı?
SMF 2.0.13
Default Theme
Utf8 Turkish
---------------

Yağız...

Hayır, uymaz. En yakın zamanda bakacağım.

falta



Yağız...


zdearban

Quote from: Yağız... on February 16, 2009, 11:07:44 AM
Denemedim ama olması gerekiyor.

evet az önce değiştirdim oldu fakat yazılar ufaldı  :S

Yağız...



Yağız...

                    $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'] ? '<strong>' . $child['link'] . '</strong>' : $child['link'];
                         $sayac++;
                     }
                     echo '
          <tr>
             <td class="windowbg3 smalltext largepadding">
                <table>
                   <tr>
                      <td valign="top"><strong>', $txt['parent_boards'], '</strong>:<br/>';
                      for($sayac2 = 0 ; $sayac2 < ceil($sayac/2);$sayac2++)
                         echo $children[$sayac2], '<br/>';
                      echo '
                      </td>
                      <td width="30"> </td>
                      <td valign="top"><br/>';
                      for(; $sayac2 < $sayac ; $sayac2++)
                         echo $children[$sayac2], '<br/>';
                      echo '
                      </td>
                   </tr>
                </table>
             </td>

Bu şekilde deneyin.



CafCaf Dergisi


Yağız...

#56
Bulun:
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
}

echo '
<div style="padding-top: 1px;" class="smalltext"><i>', $txt['parent_boards'], ': ', implode(', ', $children), '</i></div>';
}

Değiştirin:

$sayac=0;
foreach ($board['children'] as $child)
{
$child['link'] = '<a href="' . $child['href'] . '" title="' . ($child['new'] ? $txt[333] : $txt[334]) . ' (' . $txt[330] . ': ' . $child['topics'] . ', ' . $txt[21] . ': ' . $child['posts'] . ')">' . $child['name'] . '</a>';
$children[] = $child['new'] ? '<b>' . $child['link'] . '</b>' : $child['link'];
$sayac++;
}

echo '
<div style="padding-top: 1px;" class="smalltext">
<table>
<tr>
<td valign="top">
<span class="smalltext"><b>', $txt['parent_boards'], '</b>:<br/>';
for($sayac2 = 0 ; $sayac2 < ceil($sayac/2);$sayac2++)
echo $children[$sayac2], '<br/>';
echo '
</span>
</td>
<td width="30"> </td>
<td valign="top">
<span class="smalltext"><br/>';
for(; $sayac2 < $sayac ; $sayac2++)
echo $children[$sayac2], '<br/>';
echo '
</span>
</td>
</tr>
</table>
</div>';
}

CafCaf Dergisi



hxxp:img201.imageshack.us/my.php?image=hata.jpg [nonactive]


Yapıyorum ama böyle bir hata veriyor.

Yağız...

</div>'; den sonra } koymayı unutmuşum. Tekrar deneyin.

CafCaf Dergisi

Ne kadar teşekkür etsem az.. Allah razı olsun. Kolay gelsin =)

Advertisement: