Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Inferno912 on February 24, 2006, 11:50:33 PM

Title: How can you completely disable the User Info box at the top?
Post by: Inferno912 on February 24, 2006, 11:50:33 PM
I've been trying to mod around with it, like disabling the avatar and stuff, but how can I totally take out the box?
Title: Re: How can you completely disable the User Info box at the top?
Post by: RyanJones on February 25, 2006, 06:35:16 AM
Try this:

Open: Themes/xxxxx/languages/ModSettings.english.php



Find (About line 61):

$txt['todayMod'] = 'Enable "Today" feature';

After, add:

$txt['enableInfoCenter'] = 'Enable user information center?';


Close & Save file



Open: Sources/ModSettings.php


Find (About line 255):

array('check', 'enableVBStyleLogin'),

After, add:

array('check', 'enableInfoCenter'),


Close & Save file



If you want it completly remved, tabs and all use this

Open: Themes/xxxxx/index.template.php


Find (About line 333):

</div>';


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

After, add:

}


Close & Save file



If you want to leave the tabs, use this:


Open: Themes/xxxxx/index.template.php


Find (About line 255):

echo '
</form>
</td>
</tr>
</table>
</div>';

After, add:

}


Close & Save file



Enjoy!

Cheers,

Ryan Jones
Title: Re: How can you completely disable the User Info box at the top?
Post by: Inferno912 on February 25, 2006, 07:24:06 AM
oh man, the theme i have only has 7 lines of code....
Title: Re: How can you completely disable the User Info box at the top?
Post by: Inferno912 on February 25, 2006, 07:32:12 AM
in fact, all the themes' settings.english.php have 7 lines of code. Is there a different document you are referring to?
Title: Re: How can you completely disable the User Info box at the top?
Post by: Inferno912 on February 25, 2006, 07:36:45 AM
yes found it, thanks