PDA

View Full Version : How can I make "Statistics" the default tab?


JamesAB
02-25-2015, 04:57 PM
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?
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:

$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:

<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/imagehosting/154ee7caac9b8e.png

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

http://northamericancarclub.com/imagehosting/154ee7caae49fb.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.

blind-eddie
02-26-2015, 12:42 AM
Not a problem, glad I could help out another vb3 board owner.

JamesAB
02-26-2015, 01:32 AM
I know it's off topic for this thread, but do you know where the code for $pagenav is created?

blind-eddie
02-26-2015, 03:38 AM
Yes sir, in your acp/styles and templates/search in templates, select template, search for: pagenav, titles only.

You will see the Page Navigation Templates.

JamesAB
02-27-2015, 01:26 AM
Thanks blind-eddie.
I'm actually looking for the underlying PHP code, because when I see 1000+ results the $pagnav vatriable displays too many results and it breaks my mobile design.

Maybe I can fix it in the template if I work to understand the results, but I'm guessing I may need to edit the PHP file to return fewer page choices when there are too many pages.

TheLastSuperman
03-08-2015, 05:23 PM
This info by BOP5 (Joe) also indicates how to change the default tab - https://vborg.vbsupport.ru/showthread.php?p=2333472#post2333472