Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

Ufak Bir Sorun

Aloittaja Hako__, kesäkuu 30, 2011, 09:59:47 AP

« edellinen - seuraava »

Hako__

index.template.php buldum ;

foreach ($context['linktree'] as $link_num => $tree)
   {
      // Show something before the link?
      if (isset($tree['extra_before']))
         echo $tree['extra_before'];

      // Show the link, including a URL if it should have one.
      echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';

      // Show something after the link...?
      if (isset($tree['extra_after']))
         echo $tree['extra_after'];

      // Don't show a separator for the last one.
      if ($link_num != count($context['linktree']) - 1)
         echo '&nbsp;>&nbsp;';
   }


Degisdirdim ;

if($settings['linktree_inline'])
       echo '<img src="' . $settings['default_images_url'] . '/nav_inline_start.gif" alt="linktree" class="midimage" border="0" />&nbsp;';
   // Each tree item has a URL and name.  Some may have extra_before and extra_after.
   foreach ($context['linktree'] as $link_num => $tree)
   {
      // Show the | | |-[] Folders.
      if (!$settings['linktree_inline'])
      {
         if ($link_num > 0)
            echo str_repeat('<img src="' . $settings['default_images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />', $link_num - 1), '<img src="' . $settings['default_images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
         echo '<img src="' . $settings['default_images_url'] . '/icons/folder_open2.gif" alt="+" border="0" />&nbsp; ';
      }

      // Show something before the link?
      if (isset($tree['extra_before']))
         echo $tree['extra_before'];

      // Show the link, including a URL if it should have one.
      echo $settings['linktree_link'] && (isset($tree['url']) && $link_num != count($context['linktree']) - 1) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'];

      // Show something after the link...?
      if (isset($tree['extra_after']))
         echo $tree['extra_after'];
     
      if ($settings['linktree_inline'] && $link_num == count($context['linktree']) - 2)
              echo '<br /><img src="' . $settings['default_images_url'] . '/nav_inline_end.gif" alt="linktree" class="midimage" border="0" />&nbsp;';
      // Don't show a separator for the last one.
      if ($link_num != count($context['linktree']) - 1)
         echo $settings['linktree_inline'] ? ($link_num < (count($context['linktree']) - 2) ? ' &nbsp;&gt;&nbsp; ' : '') : '<br />';
   }


Gerekli resimleri suraya attim

Move the included file "nav_inline_end.gif" to "./Themes/default/images".

   Move the included file "nav_inline_start.gif" to "./Themes/default/images".

   Move the included file "folder_open2.gif" to "./Themes/default/images/icons".

orjinla konu burada ;

http://custom.simplemachines.org/mods/index.php?mod=1097

Yanliz kategori adinda , bolum adinda , konu adindada  folder_open2.gif cikiyor farkli cikmasi gerekirken kodlara baya bir goz atip ugrasdim ama cozemedim bu konuda yardimci olursaniz sevinirim.
Siralama Aynen Soyle olmasi gerekiyor

En Ustede ; folder_open2.gif

Kategori Adinda ; nav_inline_start.gif

Konu Basinda ISe  ; nav_inline_end.gif olmasi gerekiyor normald ustadlarim anlarlar zaten simdiden saolun.

cee山

echo str_repeat('<img src="' . $settings['default_images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />', $link_num - 1), '
<img src="' . $settings['default_images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
echo '<img src="' . $settings['default_images_url'] . '/icons/folder_open2.gif" alt="+" border="0" />&nbsp; ';

evet güzel acıklamıssınız ama biraz daha ayrıntıya vurmanız lazımdı..kodlar iste üsteki gibi...(not) bunu tersine cevirin istediginiz gibi yapın veya urasmayın direk hepsi aynı olsun K.gelsin
(yani burda iste.. :D)
      // Show the | | |-[] Folders.
      if (!$settings['linktree_inline'])
      {
         if ($link_num > 0)
            echo str_repeat('<img src="' . $settings['default_images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />', $link_num - 1), '<img src="' . $settings['default_images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
         echo '<img src="' . $settings['default_images_url'] . '/icons/folder_open2.gif" alt="+" border="0" />&nbsp; ';
      }

Hako__

uzgunum ama ne demek istediginiz anliyamadim.aciklama derken zaten adan zeye kadar acikladim daha ne yapmam gerekiyor ? forum titlesinde kategoride bolumde konu adinda ayni resimler cikiyor degisik degisik olmasi gerekirken.bu arada verdiginiz koddanda bisey anlamadim o kodu zaten denedim verdigim kodu ama olmadi iste sorun her resmin ayni olmasi.

Emre Y

if($settings['linktree_inline'])
       echo '<img src="' . $settings['default_images_url'] . '/folder_open2.gif" alt="linktree" class="midimage" border="0" />&nbsp;';
   // Each tree item has a URL and name.  Some may have extra_before and extra_after.
   foreach ($context['linktree'] as $link_num => $tree)
   {
      // Show the | | |-[] Folders.
      if (!$settings['linktree_inline'])
      {
         if ($link_num > 0)
            echo str_repeat('<img src="' . $settings['default_images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />', $link_num - 1), '<img src="' . $settings['default_images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
         echo '<img src="' . $settings['default_images_url'] . '/icons/nav_inline_end.gif" alt="+" border="0" />&nbsp; ';
      }

      // Show something before the link?
      if (isset($tree['extra_before']))
         echo $tree['extra_before'];

      // Show the link, including a URL if it should have one.
      echo $settings['linktree_link'] && (isset($tree['url']) && $link_num != count($context['linktree']) - 1) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'];

      // Show something after the link...?
      if (isset($tree['extra_after']))
         echo $tree['extra_after'];
     
      if ($settings['linktree_inline'] && $link_num == count($context['linktree']) - 2)
              echo '<br /><img src="' . $settings['default_images_url'] . '/nav_inline_start.gif" alt="linktree" class="midimage" border="0" />&nbsp;';
      // Don't show a separator for the last one.
      if ($link_num != count($context['linktree']) - 1)
         echo $settings['linktree_inline'] ? ($link_num < (count($context['linktree']) - 2) ? ' &nbsp;&gt;&nbsp; ' : '') : '<br />';
   }


Denermisiniz? Yedek alın lütfen.

Hako__

Degisen tek sey resim oldu yine title kategori bolum ve konu adinda ayni resim nav_inline_end.gif cikiyor :S

cee山

Lainaus käyttäjältä: Hako__ - kesäkuu 30, 2011, 09:59:47 AP
Yanliz kategori adinda , bolum adinda , konu adindada  folder_open2.gif cikiyor farkli cikmasi gerekirken kodlara baya bir goz atip ugrasdim ama cozemedim bu konuda yardimci olursaniz sevinirim.
Siralama Aynen Soyle olmasi gerekiyor

En Ustede ; folder_open2.gif

Kategori Adinda ; nav_inline_start.gif

Konu Basinda ISe  ; nav_inline_end.gif olmasi gerekiyor normald ustadlarim anlarlar zaten simdiden saolun.
Yanlıs anlamadıysam sadece resim konularında sıkıntınız var onları isimleri degistirerek ulasabilirsiniz yok eger kodlarda sorun olmasın diyorsanız verilen kodların icindeki .gif leri hepsini aynı yap bir de boyle dene bak...:Z anlatmakdan kasıt bu kadar fazla yazmanıza gerek yoktu + smf sürümünüz... + forumunuz meydanda yok bir resim ekleseydinizde ne resmin ne olduguna neyin ne oldugunu gorseydik :)

Hako__

1.1.14 de neyini anlamadiniz onu anlamadim ben burada.Gordugunuz gibi default temaya gif resmi verilmis ve 4 degisik resim linki ve resim normal title icin ayri bir resim kategorici ayri bir resim bolum icin ayri bir resim ve konu icin ise yine ayri bir resim linki kendi default temanizdan resimlere bakarsaniz anlarsiniz zaten hepisinde degisik degisik resim olmasi gerekirken hepisinde ayni resim cikiyor.

cee山

#7
http://custom.simplemachines.org/mods/index.php?action=download;mod=1097;id=49357;image

anlamadıgım sey su neden bu kadar abartıyorsunuz düz olması daha hos ve uygun oluyor yeni sürüm gelince gene gidicek bide boyle yağ gibi üste cıkıp kızıp adamı deli ediyorsunuz en iyisi yardım etmemek insan bir sitesinin linkini verir neyse sana kolay gelsn artık baska kardes cevap verir sana.....

Advertisement: