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

Reply
 
Thread Tools Display Modes
  #11  
Old 08-12-2011, 11:14 AM
teach1st's Avatar
teach1st teach1st is offline
 
Join Date: Oct 2001
Location: Cream Corn, FL
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas View Post
Try the following Plug-in code on Hook member_build_blocks_start

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


For me, this plugin removes the text editing part of the visitor message box (pic below) in IE 9 using any style, including default. Resizing the message box restores it.

Reply With Quote
  #12  
Old 08-13-2011, 10:28 AM
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Location: Dengoku
Posts: 864
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to make this work only for a specific usergroup?
Reply With Quote
  #13  
Old 03-01-2012, 06:10 AM
Eq4bits Eq4bits is offline
 
Join Date: May 2006
Posts: 468
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

maybe wrap it with the vb if member show tags?
Reply With Quote
  #14  
Old 03-01-2012, 02:53 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
if (!$vbulletin->GPC_exists['tab'] AND is_member_of($vbulletin->userinfo, 2)) 
{ 
    $vbulletin->GPC['tab'] = 'aboutme'; 
}
the above code will only work for usergroup 2. Change 2 to any usergroup id you want.
Reply With Quote
Благодарность от:
DAMINK
  #15  
Old 05-27-2012, 12:32 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
6 благодарности(ей) от:
ahmednadir, dlewisr, Lynne, Syxguns, tbworld
  #16  
Old 05-27-2012, 12:46 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep, it still works. Andreas showed how to do this a while back.
Reply With Quote
  #17  
Old 05-27-2012, 11:38 PM
DAMINK DAMINK is offline
 
Join Date: Jun 2010
Location: Melbourne Australia
Posts: 301
Благодарил(а): 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).
Thankyou BOP5.
Exactly what i needed.
Reply With Quote
  #18  
Old 05-27-2012, 11:52 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DAMINK View Post
Thankyou BOP5.
Exactly what i needed.
I've had that running on my site for ages. You should have noticed it there.
Reply With Quote
  #19  
Old 06-10-2012, 08:21 PM
pnhltt pnhltt is offline
 
Join Date: Apr 2011
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you explain how to do this in 4.2.0 step by step for the most mentally challenged? Thank you.
Reply With Quote
  #20  
Old 06-11-2012, 10:12 AM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
4 благодарности(ей) от:
Adam H, jcgriff2, mathforum
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 10:55 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.04355 seconds
  • Memory Usage 2,279KB
  • 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
  • (3)bbcode_code
  • (3)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
  • (3)pagenav_pagelink
  • (10)post_thanks_box
  • (9)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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete