vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Show "About Me" tab in profile by default (https://vborg.vbsupport.ru/showthread.php?t=256179)

wildheart 08-29-2012 12:20 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2338670)
Log into the Admin CP.

On the side menu expand "Products & Plugins"

Click on "Plugin Manager"

At the very bottom there is a link to "Add New Plugin"

On that page put in the following information-

Product: vBulletin (this should be default)
Title: Tab Fix
Hook: member_build_blocks_start (from a drop-down list)
Execution Order: 5 (default value)

To make Visitor Messaging the default past this into the PHP Code box:

PHP Code:

if (!$vbulletin->GPC_exists['tab'])
{
    
$vbulletin->GPC['tab'] = 'visitor_messaging';



Or to make About Me as the default paste in this instead:

PHP Code:

if (!$vbulletin->GPC_exists['tab'])
{
    
$vbulletin->GPC['tab'] = 'aboutme';


Save the plugin and you should be done- go to a profile page to test.

Thank you very much! All my members are very grateful.;)

ThisBoss 01-09-2013 12:17 AM

Quote:

Originally Posted by BirdOPrey5 (Post 2333472)
This still works n 4.2 by the way.

Anyone looking for a way to put Visitor Messages back as the default instead of the Activity Stream use this code:

Code:

if (!$vbulletin->GPC_exists['tab'])
{
    $vbulletin->GPC['tab'] = 'visitor_messaging';
}

On the same hook (member_build_blocks_start).

How do I add this?
Do I do it in the memberinfo template?

edgeless 03-04-2013 07:19 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2338670)
Log into the Admin CP.

On the side menu expand "Products & Plugins"

Click on "Plugin Manager"

At the very bottom there is a link to "Add New Plugin"

On that page put in the following information-

Product: vBulletin (this should be default)
Title: Tab Fix
Hook: member_build_blocks_start (from a drop-down list)
Execution Order: 5 (default value)

To make Visitor Messaging the default past this into the PHP Code box:

PHP Code:

if (!$vbulletin->GPC_exists['tab'])
{
    
$vbulletin->GPC['tab'] = 'visitor_messaging';



Or to make About Me as the default paste in this instead:

PHP Code:

if (!$vbulletin->GPC_exists['tab'])
{
    
$vbulletin->GPC['tab'] = 'aboutme';


Save the plugin and you should be done- go to a profile page to test.

For unknown reasons, this made no difference on my new installation of v4.2.0. Each user's activity tab is still acting as their default for the profile. Any thoughts as to why?

--------------- Added [DATE]1362428662[/DATE] at [TIME]1362428662[/TIME] ---------------

Never mind! I had to enable it... it works fine. One of those duhhhh moments on my part. Sorry.

TravisWPaquin 08-09-2013 11:07 AM

Wonderful! Thank you for the tip on how to replace the activity stream with visitor messaging. It is not too bad having the my activity stream, it is just horribl to look at all the time when you click a users profile. Otherwise, it's good for latest posts/threads at a quicker rate.

Thanks again.

stoute 09-09-2013 09:59 PM

I know this is reviving an old thread but... when i get the plugin created and make a custom tab the default, it makes both the "My Activity" AND custom tab default. so both of the are highlighted when loading the page.
http://immortalarg.com/forum/member.php?1-stoute

If I choose another tab, such as the "aboutme" tab to make default then it works perfect... I must be missing something. Any Ideas? I can post source if needed.

**EDIT** I figured it out.
The custom tab needs the hook of "member_complete" and the tab fix gets the aforementioned hook of "member_build_blocks_start".

karnevil 09-23-2013 07:03 AM

Excellent - Thank you. Works perfectly on vb 4.2.1.

dj83 09-25-2013 12:32 PM

how do I remove the about me tab as default?

I am using vb 4.2.1 and after someone leaves a message it redirects to the about me page instead of staying on the visitor message page.

ForceHSS 09-25-2013 01:10 PM

Quote:

Originally Posted by dj83 (Post 2447917)
how do I remove the about me tab as default?

I am using vb 4.2.1 and after someone leaves a message it redirects to the about me page instead of staying on the visitor message page.

If you mean remove it so no one sees it even in there own profile there is no setting for that as far as I know but you could get it coded if there is none

dj83 09-25-2013 07:50 PM

oops sorry I meant so it wont be the default.

ozzy47 09-25-2013 10:11 PM

Which tab did you want as the default tab?

--------------- Added [DATE]1380158305[/DATE] at [TIME]1380158305[/TIME] ---------------

Actually, it don't matter, here is a mod I just made that you can set a tab as default, [ozzy47] Default Profile Tab


All times are GMT. The time now is 11:11 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
  • Page Generation 0.01194 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete