Post Icon Legend Question

Started by IVIIVI4ck3y27, March 13, 2012, 12:23:43 AM

Previous topic - Next topic

IVIIVI4ck3y27

I'm currently working with SMF 2.0.2 and I have to admit that I really like it a lot.  The upgrades are fantastic and after using SMF 1.x proudly for a long time, I'm definitely happy to have made the upgrade.

My question is with regards to the post icon legend.  By default it displays only 3 icons.  In tweaking around I was able to figure out how to add a 4th icon to the listing below the board so that I can also include the Child Board icon (i.e. On2.png) in this as with the theme I'm tweaking (Fuzzy) I've replaced all of the icons and want to use a different color identifier between the standard New Posts (On.png) and the New Child Posts (On2.png).  Forgive me as I'm not exactly the sultan of PHP (more a n00b) but I do know enough with tweaking various code types to be dangerous.   ;)

What I want to do is take the following code:

echo '
      <ul class="reset">
         <li class="floatleft"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'new_some.png" alt="New Posts" /> ', $txt['new_posts'], '</li>
         <li class="floatleft"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'new_child.png" alt="New Child Posts" /> ', $txt['new_posts'], '</li>
         <li class="floatleft"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'new_none.png" alt="No New Posts" /> ', $txt['old_posts'], '</li>
         <li class="floatleft"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'new_redirect.png" alt="Redirect" /> ', $txt['redirect_board'], '</li>      </ul>


And edit the area where it says New Posts next to the Child post icon that I created and make it say "New Child Posts" instead.

When I edit the 'new_posts' to say 'new_child_posts' it just goes away.  If I delete that snippet of content and replace it with New Child Posts instead, it breaks the theme.

See attached image for an example.  The "yellow" icon is the one that I want to change to say "New Child Posts" next to it.

What would be the suggested method for remedying this?  Thanks in advance.   ;D

Killer Possum

Just to be clear, you tried the following?


<li class="floatleft"><img src="', $settings['images_url'], '/', $context['theme_variant_url'], 'new_child.png" alt="New Child Posts" />New Child Posts</li>

IVIIVI4ck3y27

Thank you very much.  I knew it had to be something silly that I was missing.  :)

Advertisement: