Modifying the New Posts / No New Posts / Redirect Board Icons

Started by S_EEk_ER, August 11, 2015, 01:58:58 PM

Previous topic - Next topic

S_EEk_ER

Hi guys,

Can someone point me in the right direction on where we would modify the default icons for the "New Posts", "No New Posts" and "Redirect Board"  that are on the forum?  We want to customize them so they have the look and feel for our site.

I hope I am posting this to the right board.

Thanks!

JBlaze

/Themes/{theme}/images/new_some.png
/Themes/{theme}/images/new_none.png
/Themes/{theme}/images/new_redirect.png
Jason Clemons
Former Team Member 2009 - 2012

S_EEk_ER

Sorry, I should have been more clear.  We also want to adjust the wording slightly, so I'll need to get to the code that references those icons.  Can you give me an idea where that is?

Thanks!

JBlaze

/Themes/{theme}/BoardIndex.template.php

If your theme doesn't have it, then modify the one in /Themes/default/
Jason Clemons
Former Team Member 2009 - 2012

Kindred

Actually, the reference files are incorrect. Those files are the ones displayed in the legend at the bottom. The actual files used and displayed to the left of the board name are on. Gif off. Gift etc... And to edit the wording for example the text on Harbor, you would have to edit the language file not the template file
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S_EEk_ER

Quote from: zilladotexe on August 11, 2015, 02:28:11 PM
/Themes/{theme}/BoardIndex.template.php

If your theme doesn't have it, then modify the one in /Themes/default/

Very helpful, I found it.  Thank-you!

S_EEk_ER

Quote from: Kindred on August 11, 2015, 02:43:14 PM
Actually, the reference files are incorrect. Those files are the ones displayed in the legend at the bottom. The actual files used and displayed to the left of the board name are on. Gif off. Gift etc... And to edit the wording for example the text on Harbor, you would have to edit the language file not the template file

You know what's funny?  The legend files are the ones I wanted to modify... so it looks like zilladotexe read my mind!

Thank-you both, I located what I needed to.

S_EEk_ER

Last thing on this...  I believe I found the block of code (listed below) that controls where the legend / "Mark All as Read button" appears.  I want this legend to appear at the top of the forum, so I pasted it near the top section.  However, when I do so, the entire board shifts to the right - see attached pic.

How can I fix this?


/Themes/{theme}/BoardIndex.template.php


   if ($context['user']['is_logged'])
   {
      echo '
   <div id="posting_icons" class="floatleft">';

      // Mark read button.
      $mark_read_button = array(
         'markread' => array('text' => 'mark_as_read', 'image' => 'markread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=all;' . $context['session_var'] . '=' . $context['session_id']),
      );

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

      // Show the mark all as read button?
      if ($settings['show_mark_read'] && !empty($context['categories']))
         echo '<div class="mark_read">', template_button_strip($mark_read_button, 'right'), '</div>';
   }
   else
   {
      echo '
   <div id="posting_icons" class="flow_hidden">
      <ul class="reset">
         <li class="floatleft"><img src="', $settings['images_url'], '/new_none.png" alt="" /> ', $txt['old_posts'], '</li>
         <li class="floatleft"><img src="', $settings['images_url'], '/new_redirect.png" alt="" /> ', $txt['redirect_board'], '</li>
      </ul>
   </div>';
   }

Kindred

yeah... you posted this within the boardindex table/div....
You're going to have to experiment with exactly where (and also probably mess around with the CSS) but  believe it has to be put in HIGHER in the code/file...

(I will comment, however, legends typically belong at the bottom... putting them at the top can be distracting from the actual content and i counter to normal layout guidelines)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Shambles

..and you should really post that query in the theme's support topic, as you're drifting this thread off topic ;)

S_EEk_ER

Quote from: Shambles on August 11, 2015, 04:46:29 PM
..and you should really post that query in the theme's support topic, as you're drifting this thread off topic ;)

Sorry, I'll mark this topic as solved and I posted my question here:  http://www.simplemachines.org/community/index.php?topic=538845.0

Kindred

note...   as already commented in your new thread...   these posts should be being made in the support topic for that theme...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S_EEk_ER

Quote from: Kindred on August 11, 2015, 05:04:34 PM
note...   as already commented in your new thread...   these posts should be being made in the support topic for that theme...

This code is in our "default" theme.

Illori

Quote from: S_EEk_ER on August 11, 2015, 05:19:58 PM
Quote from: Kindred on August 11, 2015, 05:04:34 PM
note...   as already commented in your new thread...   these posts should be being made in the support topic for that theme...

This code is in our "default" theme.

but that does not mean it is the 2.0 curve default theme. it is changed in colors so that makes us believe that you have a custom theme that is not the curve theme. if it is a theme created by someone else you should post in the themes support topic. if not then you should explain that it is a theme you are creating and need help with.

S_EEk_ER

Quote from: Illori on August 11, 2015, 05:26:45 PM
Quote from: S_EEk_ER on August 11, 2015, 05:19:58 PM
Quote from: Kindred on August 11, 2015, 05:04:34 PM
note...   as already commented in your new thread...   these posts should be being made in the support topic for that theme...

This code is in our "default" theme.

but that does not mean it is the 2.0 curve default theme. it is changed in colors so that makes us believe that you have a custom theme that is not the curve theme. if it is a theme created by someone else you should post in the themes support topic. if not then you should explain that it is a theme you are creating and need help with.


Here's the thing - I've only started looking at SMF, PHP and CSS in the last 3-4 days.  This is my fathers site so I have no idea how everything is connected.  We had someone upgrade our forum on Saturday from 1.1.x to 2.0.10, and then we found a theme and figured out how to apply it.

From what I can tell, there are a core set of files in the "default" theme.  There are another set of files in the "blu" theme, but not ALL the files.  So the best I can tell is most of the settings are pulled in from the default theme, the remainder from the blu theme.

The BoardIndex.template.php file is in the default folder, so if I post it to the blu theme support site, my guess is they would not recognize it as one of theirs.

I can appreciate the importance of trying of posting to the correct board to get support, but please understand I really don't know a lot about what I have been looking at.

Where should I post this question?

Steve

DO NOT pm me for support!

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

S_EEk_ER


Advertisement: