Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: KIMBAL - toukokuu 24, 2011, 08:22:06 AP

Otsikko: Remove Header
Kirjoitti: KIMBAL - toukokuu 24, 2011, 08:22:06 AP
Could i ask someone to edit my index.template.php to remove the header of my new forum, I would like everything above the menu tabs to be removed thanks in advance
Otsikko: Re: Remove Header
Kirjoitti: mashby - toukokuu 24, 2011, 08:27:17 AP
Could you let me know which theme this file is from as well as a link to your site? Makes it a little easier to remove stuff that way. :)
Otsikko: Re: Remove Header
Kirjoitti: KIMBAL - toukokuu 24, 2011, 09:26:09 AP
http://filepiggy.me/     default 2.0 RC5  I just  had to reinstall so please use this Index.template.php
Otsikko: Re: Remove Header
Kirjoitti: mashby - toukokuu 24, 2011, 09:32:28 AP
Give this one a whirl. Let us know if this is the desired outcome. :)
Otsikko: Re: Remove Header
Kirjoitti: KIMBAL - toukokuu 24, 2011, 09:44:05 AP
Thats just what i was looking for thanks so much for your time Mashby its appreciate  ;D
Otsikko: Re: Remove Header
Kirjoitti: mashby - toukokuu 24, 2011, 10:00:29 AP
Sweet, I'll mark this as solved.
Otsikko: Re: Remove Header
Kirjoitti: netshaq - toukokuu 24, 2011, 01:23:31 IP
This works great, do you guys have the same template for SMF 1.1.13

thanks
Otsikko: Re: Remove Header
Kirjoitti: Sir Osis of Liver - toukokuu 24, 2011, 02:41:26 IP
For 1.1.13 default theme, in index.template.php -

Find this:



echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>



Change it to this:



echo '
<!--div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>





Find this:



</table>
</div>';


// Show the menu here, according to the menu sub template.
template_menu();



Change it to this:



</table>
</div-->';


// Show the menu here, according to the menu sub template.
template_menu();



You can delete the commented text, but make sure it's doing what you want.

Otsikko: Re: Remove Header
Kirjoitti: netshaq - toukokuu 25, 2011, 11:10:05 AP
works great

thanks