Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Stampie - marraskuu 18, 2013, 01:55:35 IP

Otsikko: separator? ...i don't know what to call this, but please help
Kirjoitti: Stampie - marraskuu 18, 2013, 01:55:35 IP
hi, can you guys help me with this?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi41.tinypic.com%2F2afhqac.jpg&hash=bf15149a5706ba8fceed11623e3db6d5684d0d6e)

that path is supposed to be: Manchester United - MAnchester United FC Talks - First Team Talks - Ngomongin Squad 2013/2014

it has no "separator" in every section with the Theme i am using, i want to add ">>" or something to be the separator

Many thanks for your help :)
Otsikko: Re: separator? ...i don't know what to call this, but please help
Kirjoitti: kat - marraskuu 18, 2013, 02:54:46 IP
As you get that as you want it, I assume, when you use the SMF default theme, I would think that you'd need to ask in the theme's support topic, for this, Stampie.
Otsikko: Re: separator? ...i don't know what to call this, but please help
Kirjoitti: Kindred - marraskuu 18, 2013, 02:56:37 IP
I believe that this issue lies in the linktree CSS for that theme
Otsikko: Re: separator? ...i don't know what to call this, but please help
Kirjoitti: Illori - marraskuu 18, 2013, 03:02:08 IP
the css does not call the separator

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


that is from the default theme, but best would be to ask the theme author for help.
Otsikko: Re: separator? ...i don't know what to call this, but please help
Kirjoitti: Stampie - marraskuu 19, 2013, 03:45:27 AP
Thanks guys :)

- [email protected] my mistake :)

- Kindred... it's solved, actually it's from the index.template.php (d'oh)

- illori... Thanks ..i actually have to change:


after a long looks and comparing the Default theme and my current theme

my current theme index.template.php


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

      echo '
         </li>';
   }


and replacing with this one from the Default theme


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

      echo '
         </li>';
   }


the line echo ' &#187;'; was not present in my current theme index.template.php , i wonder why it was missing... d'oh

and thank you guys for helping, it means a lot :)

warm regards
Otsikko: Re: separator? ...i don't know what to call this, but please help
Kirjoitti: kat - marraskuu 19, 2013, 05:18:38 AP
No sweat, mate! Thanks for posting the solution, too, coz it might-well help others. :)