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.
./Themes/default/languages/index.english.php
$txt['look_layout'] = 'Look and Layout';
Finally, we'll actually add the button to the navigation system.
./Sources/Subs.php
'summary' => array(
'title' => $txt['summary'],
'href' => $scripturl . '?action=profile',
'show' => true,
),
'theme' => array(
'title' => $txt['look_layout'],
'href' => $scripturl . '?action=profile;area=theme',
'show' => true,
),
A screenshot is attached of the final result.
Enjoy!
Labradoodle-360
Nice trick, Labradoodle-360! :D
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
Not a problem, welcome to SMF.