How to Easily Make Your Own Movable Profile Tab Hook
1 Attachment(s)
How to Easily Make Your Own Movable Profile Tab Hook
Thanks to PaulM for his original simple yet powerful post!!! If you want to be able to move your profile tabs around and be able to 100% pick their order then my little tutorial here is for you. I can now take any mod and make it's profile tab go where ever I want it to with this method. Many mods use the hook location of $template_hook[profile_left_last]. This location will put the associated tab always off to the left where you can not control the order of the tab. The more mods you have install that use this same hook the more you will loose site of you importnat mods such a vbBlogs. Blogs for my site MUST always be a visible tab. So I had to learn how to do this myself. I feel that we need to be able to control what tab in shown and what tab is less needed and can be lost off the left side in what I call left side La La Land... INSTRUCTIONS: 1. Create a file labeled: hooks_custom.xml 2. Paste the below code as the content of the file: Code:
<?xml version="1.0" encoding="ISO-8859-1"?> 4. Save and upload this file to your xml folder located here: /includes/xml 5. Next we will add our hook to the MEMBERSINFO template. 6. Go to: AdminCP > Style and Templates > Style Manager > Edit Templates > Members Info Templates > MEMBERSINFO 7. Find: <div id="profile_tabs"> 8. In the list of tab hooks below add your tab in red code for the mods tab you need to have moved to where you would like it to show up. NOTE: add the code in blue for vbBlogs. (you can name your hooks as you wish) Code:
<div id="profile_tabs"> 10. If you have vbBlog installed and you want to move its tab so it is always visible and not lost off in La La Land add the hook code in blue to the xml file and follow the instructions as stated above. 11. Edit the plugin labeled: Member Profile: Add Blog Links to standard MEMBERINFO display. 12. Go to: AdminCP > Plugins & Products > Plugin Manager > Member Profile: Add Blog Links to standard MEMBERINFO display 13. Change: $template_hook[\'profile_left_last\'] to $template_hook[\'blog_custom_hook_1\'] 14. SAVE and REFRESH and your profile page now has your Blog tab where ever you placed it in step #8. Now we can have complete control over our profile tabs and order them any damn way wish to once and for all!!! SEE ATTACHED SCREENSHOT: I have a custom tab labeled "More About Me" and the Blog tab which are now always visible since they are importnat to the members and focus of my site. I do not feel blogs should be lost off the left and it's tab not easily reordered to whatever location we need it to. vbBlogs is too importnat of a mod to have lost off in left side la la land. |
Very nice! Just a question though. Is there a way to make it so that members can choose the order for their profile?
|
Quote:
Maybe in vBulletin v4 there will be a way to drag profile blocks and tabs around similar to how you can do so in vbBlog. You would have to search for a mod to allow members to sort their own profile tabs. |
this looks good ;)
|
hi, could you tech me how to adjust the tab width? thank you!
|
Quote:
|
Either I'm completely stupid, or this is not compatible with vB 4.2. I cannot find the blocks in the MEMBERINFO template.
|
Quote:
You could use "firebug" and look for the profile block code in your version of VB to locate the proper template... |
All times are GMT. The time now is 11:47 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|