Profile Tab Manager

xF1 Unmaintained Profile Tab Manager 1.0.1

No permission to download
This add-on will let you create how much tabs you want and show them in the user's profile page.

To create a new tab:

Go to Applications->Profile Tab Manager->Create New Tab.

When creating a new tab, you dont need to worry about the template. If you dont get anything in mind, just leave blank. The default template is loaded.
So, after created a new tab, go to any profile page (which has the permissions that you've set):
After this, you can customize the template of your tab,
Ok, but what if we want to send some custom params to our template?

Ok, this is how i do it:

Create a new file inside the folder library/ProfileTabManager/Callbacks/ called Test.php. We will make a method to use as callback for our custom field.

Put this inside:
PHP:
<?php
class ProfileTabManager_Callbacks_Test extends XenForo_Application
{
 public static function MyCustomField()
 {
 //Lets get some information about the user who is visiting
 $visitor = XenForo_Visitor::getInstance()->toArray();
 //Return the content to our custom field template
 return array('visitor' => $visitor);
 }
}
?>

In the menu Applications->Profile Tab Manager->Display All Tabs, click in our tab "My Custom Tab" to edit.

Fill the information with the class and method callbacks.

Edit the template to and change to this:

Code:
<li id='__tab__' class='profileContent'>
  Hello {$visitor.username}! You are following {$visitor.following} users!
  <noscript><a href='{xen:link members/__tab__, $user}'>{xen:phrase view}</a></noscript>
</li>

Save it. Go to the profile page and see the result.
For sure, this is just a example. You can make more than this.

  • Like
Reactions: nabeel and jcurlz
Author
AnimeHaxor
Size
16.5 KB
Extension
zip
Downloads
7
Views
563
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from AnimeHaxor

Similar resources

Custom member search through both the Members Page and Profile Page
0.00 star(s) 0 ratings
Downloads
4
Updated
Brivium - Prevent URL Profile Post AnimeHaxor
Prevent users to post URLs on their status updates & profile posts to prevent spammer.
0.00 star(s) 0 ratings
Downloads
9
Updated
brivium - User Profile Cover AnimeHaxor
This addon allows set a Cover Image on profile page like Facebook.
5.00 star(s) 2 ratings
Downloads
107
Updated
Change the number of following and followers displayed
0.00 star(s) 0 ratings
Downloads
5
Updated
eBay listings on users profile.
0.00 star(s) 0 ratings
Downloads
3
Updated