The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How do i edit user profile navigation tabs
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 |
#2
|
|||
|
|||
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. |
#3
|
||||
|
||||
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.. |
#4
|
||||
|
||||
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.
|
#5
|
||||
|
||||
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. |
#6
|
|||
|
|||
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. |
#7
|
||||
|
||||
thought i'd post it incase anyone else needed it
Code:
if (!$vbulletin->GPC_exists['tab']) { $vbulletin->GPC['tab'] = 'visitor_messaging'; } 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 Which looks much cleaner. Want to get it to go My Wall, Blog, My Media, Friends, Quotes, Mentions, About Me |
#8
|
|||
|
|||
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} <vb:if condition="$blocks[activitystream]">... <vb:if condition="$blocks[visitor_messaging]">... <!-- Add your own hook --> {vb:raw template_hook.profile_tabs_myhook} <!-- Add This Line Only! --> <!-- Add your own hook --> <vb:if condition="$blocks[infractions]">... <vb:if condition="$blocks[reputation]">... {vb:raw template_hook.profile_tabs_last} |
#9
|
|||
|
|||
I am sure someone could make a plugin that does this for you
|
#10
|
||||
|
||||
Quote:
PHP Code:
To the same plugin as this Code:
if (!$vbulletin->GPC_exists['tab']) { $vbulletin->GPC['tab'] = 'visitor_messaging'; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|