Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-21-2014, 08:10 PM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 06-22-2014, 03:24 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 06-22-2014, 04:17 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #4  
Old 06-22-2014, 05:49 AM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 06-22-2014, 08:51 AM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
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.
That helped me find it but i dont thing this was it.

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.
Reply With Quote
  #6  
Old 06-22-2014, 08:55 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 06-22-2014, 09:25 AM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post
Post or PM me your code for the tabs plugin.
thought i'd post it incase anyone else needed it



Code:
if (!$vbulletin->GPC_exists['tab'])
{
    $vbulletin->GPC['tab'] = 'visitor_messaging';
}
i added visitor messaging as my default now. To add a different one, (for the courtesy of anyone reading) go to your profile page and right click on the tab you want to default.
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
Reply With Quote
  #8  
Old 06-22-2014, 11:44 AM
tbworld tbworld is offline
 
Join Date: Oct 2008
Posts: 2,126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
// Your existing code ...

  
$template_hook['profile_tabs_myhook'] .= $templater->render();

// Your existing 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}
Use the same procedure to create multiple hooks if you need them.
Reply With Quote
  #9  
Old 06-22-2014, 12:11 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am sure someone could make a plugin that does this for you
Reply With Quote
  #10  
Old 06-22-2014, 12:19 PM
DreadsUK's Avatar
DreadsUK DreadsUK is offline
 
Join Date: Jan 2014
Posts: 355
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tbworld View Post

Add to MEMBERINFO template[/B]
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}
Use the same procedure to create multiple hooks if you need them.
Do i add this
PHP Code:
// Your existing code ...

  
$template_hook['profile_tabs_myhook'] .= $templater->render();

// Your existing code ... 
[B]

To the same plugin as this
Code:
if (!$vbulletin->GPC_exists['tab'])
{
    $vbulletin->GPC['tab'] = 'visitor_messaging';
}
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:09 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04379 seconds
  • Memory Usage 2,270KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete