vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   [How-to] Add more tabs to the vB 3.7 profile pages (https://vborg.vbsupport.ru/showthread.php?t=165554)

ragtek 01-14-2010 03:32 AM

They must have unique names/classnames.

Maybe you took the same?

gonedigital 02-18-2010 03:25 AM

this the same for VB 3.8.4???

because I don't see

member_build_blocks_start in the templates in my Style Manager where it says to

"Add a new plugin to the member_build_blocks_start hook with the following PHP code:"

muratcan25 12-16-2010 07:20 AM

3.8.6 Pl 1 woww :)
Thank You man !

Bobred 02-06-2011 03:48 PM

1 Attachment(s)
So I've (mostly) got this working for vB 4.1.1, but there's a few problems:

1: The tab's styling is a little messed up (see picture)

2: The contents of the block appear at the bottom of the screen upon loading the member's profile page.

Other than changing the hook_location value, it's pretty much a copy of this how-to. I've seen a how-to for adding tabs in 4.0.8, but it looks really messy compared to this, so I'd really rather get this working. Anyone have any ideas?


[edit]

So I've got the answer to part 2:
There is a function called wrap() that you have can override. This function takes the html and wraps it in a div, but the class of this div is wrong.
So we need to fix this.
Put this code inside the class declaration for vB_ProfileBlock_MyModification (or whatever you're calling it):
PHP Code:

    function wrap($title$id=''$html=''){
        
$wrap "<div id=\"view-".$id."\" class=\"view_section\">".$html."</div>";
        return 
$wrap;
    } 


JohorBahru 08-30-2011 03:26 PM

1 Attachment(s)
how can i adjust the width of the tabs so user can see all tab in one glance.

Attachment 132480

eg, make a proper adjustment to the profile tabs so the last 2 tabs can be display without a drop down bar needed

thank you!

Lynne 08-30-2011 04:16 PM

Quote:

Originally Posted by JohorBahru (Post 2239992)
how can i adjust the width of the tabs so user can see all tab in one glance.

Attachment 132480

eg, make a proper adjustment to the profile tabs so the last 2 tabs can be display without a drop down bar needed

thank you!

I believe you would need to manually edit the css file /clientscript/vbulletin_tabctrl.css And don't forget that even if you get it to fit on *your* browser, your users will not necessarily have their browser width the same and so the tabs may still be displayed in the dropdown.

Revenga 07-09-2013 03:45 PM

How do I make the new tab and it's contents only viewable by Administrators of the forum?

Sorry to bump a 2 year old thread.

- Revenga

Lynne 07-10-2013 02:17 AM

Try a Search This Article for "is_member_of" because that has probably already been covered.

devil78 07-28-2018 11:22 AM

Username Management Addon - History in Profile

https://vborg.vbsupport.ru/showthread.php?t=101411

Addon working, but

Code:

<div class="alt1 block_row">
        <ul class="list_no_decoration">
                $block_data[usernamehistory]
        </ul>
</div>


member_build_blocks_start


Code:

$blocklist = array_merge($blocklist, array(
        'usernamehistory' => array(
                'class' => 'usernamehistory',
                'title' => 'Username History',
                'hook_location' => 'profile_left_last'
        )
));

class vB_ProfileBlock_usernamehistory extends vB_ProfileBlock
{
        var $template_name = 'memberinfo_block_usernamehistory';

        function confirm_empty_wrap()
        {
                return false;
        }

        function confirm_display()
        {
                return ($this->block_data['usernamehistory'] != '');
        }

        function prepare_output($id = '', $options = array())
        {
            $this->block_data['usernamehistory'] = '$mh_unm_uph_history';
        }
}

https://vborg.vbsupport.ru/external/2018/07/2.jpg

Profile tabs does not show plugin help me:(


All times are GMT. The time now is 10:32 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.03051 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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