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)

teach1st 08-12-2011 11:14 AM

Quote:

Originally Posted by Andreas (Post 2141223)
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.

https://vborg.vbsupport.ru/external/2011/08/53.png

Wordplay 08-13-2011 10:28 AM

is it possible to make this work only for a specific usergroup?

Eq4bits 03-01-2012 06:10 AM

maybe wrap it with the vb if member show tags?

BirdOPrey5 03-01-2012 02:53 PM

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.

BirdOPrey5 05-27-2012 12:32 PM

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).

Boofo 05-27-2012 12:46 PM

Yep, it still works. Andreas showed how to do this a while back.

DAMINK 05-27-2012 11:38 PM

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).

Thankyou BOP5.
Exactly what i needed.

Boofo 05-27-2012 11:52 PM

Quote:

Originally Posted by DAMINK (Post 2333695)
Thankyou BOP5.
Exactly what i needed.

I've had that running on my site for ages. You should have noticed it there.

pnhltt 06-10-2012 08:21 PM

Can you explain how to do this in 4.2.0 step by step for the most mentally challenged? Thank you.

BirdOPrey5 06-11-2012 10:12 AM

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.


All times are GMT. The time now is 03:30 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.01979 seconds
  • Memory Usage 1,743KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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