Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[TRICK] Look and Layout in Profile Dropdown

Started by Matthew K., April 20, 2011, 03:47:57 PM

Previous topic - Next topic

Matthew K.

Hello all!

The title explains it fairly well, following the edits below will add a "Look and Layout" sub-button to the "Profile" button on the menu for SMF 2.0 RC5.

Anyway, lets get started.

First of all, we'll add our language string.
Code (Add Before End) Select
$txt['look_layout'] = 'Look and Layout';

Finally, we'll actually add the button to the navigation system.
Code (Find) Select
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile',
'show' => true,

Code (Add After) Select
'theme' => array(
'title' => $txt['look_layout'],
'href' => $scripturl . '?action=profile;area=theme',
'show' => true,

A screenshot is attached of the final result.




Really nice trick. I was searching some info like that. I am new at SMF and want to add SMF within my wordpress website so i need some really cool trick. Thanks anyway for share

Matthew K.