Customizing SMF > SMF Coding Discussion

Removing New Posts, No New Posts, and Redirect Board

(1/4) > >>

immalex:

can someone please tell me how to remove the New Posts, No New Posts, and Redirect Board section?, including text and icon

Thanks in advance.

Oranos:
open up BoardIndex.template.php and look for


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

and either remove it or comment it out (I recommend you comment it out so you can put it back later if you ever want to)

immalex:

--- Quote from: Oranos on August 20, 2010, 02:25:33 AM ---open up BoardIndex.template.php and look for


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

and either remove it or comment it out (I recommend you comment it out so you can put it back later if you ever want to)

--- End quote ---
sorry for being a newbie, but how do you comment it out?

Oranos:
no problem, just change it to this:


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

Notice the difference, before the echo on the first line I added "/*" and at the end of the last line I added "*/" everything between that is commented out. If you ever want to add those things back in, just go back to that code and remove the "/*" and "*/" and it will be back.

immalex:
after doing that. its like this. i also would like to remove the "mark all messages as read" button. please help again :P

Navigation

[0] Message Index

[#] Next page

Go to full version