September 24, 2021, 03:05:44 AM

News:

Wondering if this will always be free?  See why free is better.


Additional Info
Type
Package ID
Shadav:Tabbed_Profile
First Created
October 12, 2020, 12:20:54 AM
Last Updated
October 18, 2020, 05:49:26 PM

Tabbed Profile v1.0

Makes Profile Tabbed and Organizes things
Compatible With 2.0.17
Latest version v1.0
Downloads 241
Reviews 0
Rating 0/5
Subscribers 0
License (View License)
Author(s)
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 : inspirationalpixels.com/creating-tabs-with-html-css-and-jquery

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>
</ul>

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">
MODIFICATION GOES HERE
</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>
</h3>
</div>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
MODIFICATION GOES HERE
</div></div>
</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
change
<li class="active"><a href="#tab1">', $txt['userinfo'], '</a></li>
to
<li><a href="#tab1">', $txt['userinfo'], '</a></li>

change
<li><a href="#tab2">', $txt['summary'], '</a></li>
to
<li class="active"><a href="#tab2">', $txt['summary'], '</a></li>

change
<div id="tab1" class="tab active">
to
<div id="tab1" class="tab">

change
<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
find
// Show/Hide Tabs
jQuery('.tabs ' + currentAttrValue).show().siblings().hide();


replace with one of the below

fade
// 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, Tabbed_Profile_Lite.zip, for those that may already have installed tabbed info mod
Manual installation info
You have to register or login to be able to leave a review
There are currently no reviews on this customization
Advertisement: