Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: Matthew K. in April 20, 2011, 03:47:57 NACHMITTAGS

Titel: [TRICK] Look and Layout in Profile Dropdown
Beitrag von: Matthew K. in April 20, 2011, 03:47:57 NACHMITTAGS
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
Code (Add Before End) Auswählen
$txt['look_layout'] = 'Look and Layout';

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

Code (Add After) Auswählen
'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
Titel: Re: [TRICK] Look and Layout in Profile Dropdown
Beitrag von: Masterd in April 21, 2011, 06:00:41 VORMITTAG
Nice trick, Labradoodle-360! :D
Titel: Re: [TRICK] Look and Layout in Profile Dropdown
Beitrag von: jason192222 in September 22, 2011, 08:27:51 VORMITTAG
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
Titel: Re: [TRICK] Look and Layout in Profile Dropdown
Beitrag von: Matthew K. in September 22, 2011, 10:25:05 VORMITTAG
Not a problem, welcome to SMF.