vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How can I make "Statistics" the default tab? (https://vborg.vbsupport.ru/showthread.php?t=317518)

JamesAB 02-25-2015 04:57 PM

How can I make "Statistics" the default tab?
 
When someone opens the profile page (like /member.php?u=1) the current default tab displayed is "Visitor Messages".

Is it possible to change it so the default tab shown will be "Statistics"?

Thanks for your help,
James

ozzy47 02-25-2015 05:14 PM

Use this mod. https://vborg.vbsupport.ru/showthread.php?t=302655

blind-eddie 02-25-2015 05:19 PM

That one is for vb4, use this one, https://vborg.vbsupport.ru/showthread.php?t=269702

ozzy47 02-25-2015 07:18 PM

Yep, did not see it was vB3, stupid phone. :p

blind-eddie 02-25-2015 08:10 PM

It happens a lot here lol

JamesAB 02-25-2015 09:55 PM

Can I change something here?
Code:

        vBulletin.register_control("vB_TabCtrl", "profile_tabs", "$selected_tab", "»", "profile.php?u=2&do=loadtab&tabid={1:tabid}");

blind-eddie 02-25-2015 10:50 PM

Just above the code you posted, you will see:

Code:

                $blocks[visitor_messaging]
                $blocks[aboutme]
                $blocks[stats]
                $blocks[friends]
                $blocks[infractions]
                $blocks[contactinfo]

You can arrange them any way you want.

JamesAB 02-25-2015 11:41 PM

Rearranging them doesn't seem to change the display order. :confused:

Thanks for your help,
James

blind-eddie 02-25-2015 11:55 PM

I have no problem with rearranging them on my site.

MEMBERINFO template:

Code:

        <div id="profile_tabs">
                $template_hook[profile_left_first]
                $blocks[friends]
                $blocks[visitor_messaging]
                $blocks[aboutme]
                $blocks[stats]
                $blocks[infractions]
                $blocks[contactinfo]
                $template_hook[profile_left_last]
        </div>

In this example I have $blocks[friends] as first tab.
Doing so renders...
http://northamericancarclub.com/imag...e7caac9b8e.png

In this example I have $blocks[aboutme] as first tab.
Doing so renders...

http://northamericancarclub.com/imag...e7caae49fb.png


This is style specific.

JamesAB 02-26-2015 12:35 AM

You are correct. it was my mistake. i was looking at the wrong theme when I was testing.

Thanks again for all your help.


All times are GMT. The time now is 10:40 PM.

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.01113 seconds
  • Memory Usage 1,728KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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