Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: FireDitto - syyskuu 26, 2010, 08:56:56 IP

Otsikko: Remove Info Center & User Header [RC5]
Kirjoitti: FireDitto - syyskuu 26, 2010, 08:56:56 IP
hi,

I'd like to remove the Info Center located at the foot of the forum, and the User Header info at the top of the forum [Hello User and the Search box and all that under those two]

I have a Portal System, and so it's pretty unnecessary to have it all there.

I would still like to keep the "News" block that is above the forum categories.


I'd greatly appreciate someone with the patience to walk me through the process, as opposed to doing it themselves.

Thank you =)



EDIT: I run RC3 and a personalised duplicate of the default theme.

This post was originally made when I ran RC3; now I'm on RC5 and would appreciate an update, please!
Otsikko: Re: Remove Info Center & User Header
Kirjoitti: sAce - syyskuu 27, 2010, 03:01:26 AP
In order to remove Infocenter please attach - Themes/theme_name/Boardindex.template.php
for header - Themes/theme_name/index.template.php
Otsikko: Re: Remove Info Center & User Header
Kirjoitti: IchBin™ - syyskuu 27, 2010, 01:32:17 IP
In the Boardindex.template.php file there is a line towards the bottom of the file that echo's out the template_info_center() function. You should simply be able to comment out that line like this:
// template_info_center();

In the default theme that is about line # 492.
Otsikko: Re: Remove Info Center & User Header
Kirjoitti: Hj Ahmad Rasyid Hj Ismail - syyskuu 27, 2010, 05:55:43 IP
Follow IchBin to remove Info Centre.

For removing user info under Forum Name & Logo. Find:
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="align_right">' . $settings['site_slogan'] . '</div>', '
</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>

Replace:
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="align_right">' . $settings['site_slogan'] . '</div>', '
</div>';
/* <div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>

And find: // ]]></script>';

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

Replace:
// ]]></script>';
*/
// Show the menu here, according to the menu sub template.
template_menu();
Otsikko: Re: Remove Info Center & User Header
Kirjoitti: FireDitto - syyskuu 28, 2010, 05:21:12 AP
Thank you very much, guys =)
Otsikko: Re: Remove Info Center & User Header
Kirjoitti: FireDitto - kesäkuu 13, 2011, 03:05:58 AP
Could I please get the RC5 update of this?

Please and Thank you!!
Otsikko: Re: Remove Info Center & User Header [RC5]
Kirjoitti: Hj Ahmad Rasyid Hj Ismail - elokuu 21, 2011, 06:26:33 IP
It is basically the same dear.