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

Reply
 
Thread Tools Display Modes
  #31  
Old 08-29-2012, 12:20 PM
wildheart's Avatar
wildheart wildheart is offline
 
Join Date: Jul 2011
Location: South Africa
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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.
Reply With Quote
Благодарность от:
BirdOPrey5
  #32  
Old 01-09-2013, 12:17 AM
ThisBoss ThisBoss is offline
 
Join Date: Oct 2012
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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?
Reply With Quote
  #33  
Old 03-04-2013, 07:19 PM
edgeless edgeless is offline
 
Join Date: Mar 2013
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
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.
Reply With Quote
Благодарность от:
BirdOPrey5
  #34  
Old 08-09-2013, 11:07 AM
TravisWPaquin's Avatar
TravisWPaquin TravisWPaquin is offline
 
Join Date: Aug 2012
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Благодарность от:
BirdOPrey5
  #35  
Old 09-09-2013, 09:59 PM
stoute stoute is offline
 
Join Date: May 2010
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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".
Reply With Quote
  #36  
Old 09-23-2013, 07:03 AM
karnevil karnevil is offline
 
Join Date: Feb 2007
Location: Derbyshire
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent - Thank you. Works perfectly on vb 4.2.1.
Reply With Quote
  #37  
Old 09-25-2013, 12:32 PM
dj83 dj83 is offline
 
Join Date: Sep 2013
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #38  
Old 09-25-2013, 01:10 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dj83 View Post
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
Reply With Quote
  #39  
Old 09-25-2013, 07:50 PM
dj83 dj83 is offline
 
Join Date: Sep 2013
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

oops sorry I meant so it wont be the default.
Reply With Quote
  #40  
Old 09-25-2013, 10:11 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 08:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04878 seconds
  • Memory Usage 2,282KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (4)bbcode_php
  • (4)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
  • (4)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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