Advertisement:

Author Topic: [TRICK] Look and Layout in Profile Dropdown  (Read 11099 times)

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
[TRICK] Look and Layout in Profile Dropdown
« on: April 20, 2011, 03:47:57 PM »
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) [Select]
$txt['look_layout'] = 'Look and Layout';
Finally, we'll actually add the button to the navigation system.
./Sources/Subs.php
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.

Enjoy!
Labradoodle-360

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,887
  • Gender: Male
  • Sapienti satis.
Re: [TRICK] Look and Layout in Profile Dropdown
« Reply #1 on: April 21, 2011, 06:00:41 AM »
Nice trick, Labradoodle-360! :D
My Mods

Sugested that too. Hey ho. I'd link you to the original discussion but it's not visible to most people (seekrit team board stuff that is more dangerous than wikileaks).


Don't PM me for support! Use the appropriate support board!

Offline jason192222

  • Newbie
  • *
  • Posts: 5
Re: [TRICK] Look and Layout in Profile Dropdown
« Reply #2 on: September 22, 2011, 08:27:51 AM »
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

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: [TRICK] Look and Layout in Profile Dropdown
« Reply #3 on: September 22, 2011, 10:25:05 AM »
Not a problem, welcome to SMF.