Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Tabbed Profile

Started by shadav, October 26, 2020, 06:04:01 PM

Previous topic - Next topic


Link to the mod

This will change your profile page into tabs and rearrange things to make it a bit nicer :)

thanks to this article for the tutorial on how to make tabs :

this will not work with other modifications to the profile.template.php
that being said you can make it work by adding more tabs and throwing the modifications into the new tabs
you'd need to add more tab menus by adding them into the
<ul class="tab-links">
        <li class="active"><a href="#tab1">', $txt['userinfo'], '</a></li>
        <li><a href="#tab2">', $txt['summary'], '</a></li>
        <li><a href="#tab3">', $txt['signature'], '</a></li>
so you'd add
<li><a href="#tab4">NEW MENU NAME GOES HERE</a></li>and then wrap the modification into a tab
<div id="tab4" class="tab">
</div> <!-- #tab4 -->
if you want it to match and have the cat bar you would do
<div id="tab4" class="tab">
<div class="cat_bar">
        <h3 class="catbg">
            <span class="ie6_header floatleft"><img src="', $settings['images_url'], '/icons/info.gif" alt="NEW MENU NAME GOES HERE" class="icon" />NEW MENU NAME GOES HERE</span>
<div class="windowbg2">
            <span class="topslice"><span></span></span>
            <div class="content">
</div> <!-- #tab4 -->
change info.gif to whatever image you want to use

and this after
</div> <!-- #tab3 -->
you can change the active tab (the default tab that opens on page load)
so let's change it from user info to summary
<li class="active"><a href="#tab1">', $txt['userinfo'], '</a></li>to
<li><a href="#tab1">', $txt['userinfo'], '</a></li>
<li><a href="#tab2">', $txt['summary'], '</a></li>to
<li class="active"><a href="#tab2">', $txt['summary'], '</a></li>
<div id="tab1" class="tab active">to
<div id="tab1" class="tab">
<div id="tab2" class="tab">to
<div id="tab2" class="tab active">

you can change the style of the buttons with the provided css, I tried to keep it close to the default theme

you can change the animation in the tabbedinfo.js
// Show/Hide Tabs
jQuery('.tabs ' + currentAttrValue).show().siblings().hide();

replace with one of the below

// Show/Hide Tabs
jQuery('.tabs ' + currentAttrValue).fadeIn(400).siblings().hide();

Slide 1
// Show/Hide Tabs
jQuery('.tabs ' + currentAttrValue).siblings().slideUp(400);
jQuery('.tabs ' + currentAttrValue).delay(400).slideDown(400);

Slide 2
// Show/Hide Tabs
jQuery('.tabs ' + currentAttrValue).slideDown(400).siblings().slideUp(400);

added licence (GNU General Public License)
basically do what you like except please do give credit where credit is due...
I'm not really good at scripts and things so :p I welcome anyone who's willing to improve on it

added error=skip to language edits

fixed missing jquery

fixed issue with signature button showing when user has no signature

added a second file,, for those that may already have installed tabbed info mod


no update, still works with 2.0.18
just added a gif to show what this does
You cannot view this attachment.