![]() |
How do i edit user profile navigation tabs
https://vborg.vbsupport.ru/external/2014/06/33.png
At some point i've changed the default to become 'about me' But can;t for the life of me remember how i did it. I do so much, i can;t remember it all. Just want to rearange the tabs, rename a couple and change the default to the Wall oh, and want to delete the activity 'all and my friends' bit in the tabs |
Did you use a modification or an article to add tabs? Perhaps this one?
https://vborg.vbsupport.ru/showthread.php?t=265971 I am asking to clarify how you added the tabs in the first place. |
To disable tabs go into admincp/general options drop down under userprofile options. You will see a list. I believe you can set your default there as well.
To change names you can use the phrasing system.. |
Like Richieboy said, you have to edit the Phrases for those profile tabs to rename them. Search the Tab Names in Phrases. Now if you want to reorder the tabs, well that's a different story, and I'm note sure about that. But I'm sure it will require a lot of edits in the correct Template.
|
Quote:
It was definitely through the plug in tho to set the default so i juat changed that. But to change the order of the tabs is unknown. |
Currently looking into this for you. Sorry, was a bit back logged and needed to refill my drink. :)
Post or PM me your code for the tabs plugin. I just want to see the method you are using, I do not need to execute it. |
Quote:
https://vborg.vbsupport.ru/external/2014/06/31.png Code:
if (!$vbulletin->GPC_exists['tab']) Select 'copy link address' and paste it into a new browser address bar. The last word after the '#' on that address is what you want to copy and paste where the red lettering is in the above code. --------------- Added [DATE]1403435476[/DATE] at [TIME]1403435476[/TIME] --------------- Just found how to rearrange the standard tabs go to templates and open MEMBERINFO. Right at the bottom of the code are the tab codes. you can just rearrange the order of the code. Still need to work out how to put the custom tabs in the middle of the standard ones. i now have this https://vborg.vbsupport.ru/external/2014/06/32.png Which looks much cleaner. Want to get it to go My Wall, Blog, My Media, Friends, Quotes, Mentions, About Me |
Thanks for sharing. It is what makes this place work and it is appreciated. :)
When I asked you to post the code, I did not clarify and I was referring to the php plugin code. (Sorry, my fault). I was going to add the following to your code so it would be a better example. :) -------------------------------------------------------------------------------------- I will go ahead and post and we will join it up with your code later. You most likely are rendering to: $template_hook['profile_tabs_first'] .= $templater->render(); $template_hook['profile_tabs_last'] .= $templater->render(); Choice 1: Since you already figured out you can just move the html code around, you could just move the hook around. Choice 2: Using the template hook system we can just add on to it. The "template hook array" is already registered to the template so we just need to add onto the array. PHP Code:
Add to MEMBERINFO template Add the new hook... The rest of the code is for reference HTML Code:
{vb:raw template_hook.profile_tabs_first} |
I am sure someone could make a plugin that does this for you
|
Quote:
PHP Code:
To the same plugin as this Code:
if (!$vbulletin->GPC_exists['tab']) |
I thought you added your own "tabs". Now, that I look at your page, those tabs are coming from a modification correct? The code I was showing was applicable to your own php plugin code. If they are not your own "tabs" ignore my last post for now.
All of your mods will use similar hooks to plugin to "memberinfo.php" to render the "MEMBERINFO" template. The hook will be "member_complete". If you go into your "ACP - Plugin Manager" you can sort on hooks (at the top of the table) and find all hooks that use "member complete". Now one little trick that might work is modify the hook execution of this group of plugins in a descending order. Normally the hook execution is "5". Note, this will only work for plugins and not vbulletin "tabs" -- unless they are plugins, like blog or cms. For example: wall (execution order 6) mentions (execution order 7) and so on ... You have to play around with it a bit. :) |
Its working on my profile
http://www.dreadsuk.com/member.php?2-Elijah but looks like other peoples profiles are screwed up http://www.dreadsuk.com/member.php?2074-___aurora___ http://s13.postimg.org/z0x5y3iqv/Scr...t_14_31_40.png --------------- Added [DATE]1403444168[/DATE] at [TIME]1403444168[/TIME] --------------- Quote:
|
Clear the vbulletin cache and your browser cache, to be on the safe side.
--------------- Added 22 Jun 2014 at 07:03 --------------- Your tabs worked on my end when I tried your links. By the way, I like the theme of your board, very unique. |
Search in forum templates or as tbworld suggested, all you need is edit html code and edit css :)
|
Ok, so in the plugin manager for the plugins i want to move, i found the line
$template_hook['profile_tabs_last'] .= $templater->render(); which i changed to $template_hook['profile_tabs_first'] .= $templater->render(); This moves the tab to either first or last. Are they the only options or can we specify something like 'position_2' or 'tab2' something like that. do you knwo what the command would be? |
Post #8, I poorly explained how to add additional template hooks. You can then modify the plugin code that uses PHP hook "member_complete" to use your new custom template hook.
I know I did a great job of making this sound difficult. I will try to rewrite this after I get some sleep on the plane. You are on the right track, almost there :) |
Quote:
|
All times are GMT. The time now is 08:23 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|