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.
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:
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:
Save it. Go to the profile page and see the result.
For sure, this is just a example. You can make more than this.
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.
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:
You must log in to view
(12 lines)
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:
You must log in to view
(4 lines)
Save it. Go to the profile page and see the result.
For sure, this is just a example. You can make more than this.
Attachments