vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Default Member Profile Tab (https://vborg.vbsupport.ru/showthread.php?t=316137)

gfran5 12-21-2014 01:20 PM

Default Member Profile Tab
 
I am trying to change the default profile tab from "My Activity" to my custom built tab "My Profile".. i used a plugin as shown in this tutorial.

However when i go to the tab, at first the template does not render, then once i click on another tab and come back to the "my profile tab" everything is then loaded.

Is there something i should as to the PHP tab plugin to make sure the template renders straight away?

kh99 12-21-2014 01:44 PM

In your template at the beginning there's a vb:if:
Code:

...<vb:if condition="$selected_tab == 'test'">...
Does whatever you have for 'test' match the blockid of your new tab (assuming that you didn't use 'test' as the id)?

ozzy47 12-21-2014 02:38 PM

Or try this mod, https://vborg.vbsupport.ru/showthread.php?t=302655

gfran5 12-21-2014 03:03 PM

That was the issue Kevin, Thanks!

--------------- Added [DATE]1419243039[/DATE] at [TIME]1419243039[/TIME] ---------------

This is off topic, but does anybody know how they did this ?? bodybuilding.com

--------------- Added [DATE]1419244092[/DATE] at [TIME]1419244092[/TIME] ---------------

Are they using wordpress? or is it something else?

kh99 12-24-2014 09:52 AM

Sorry, the post merging kind of hides follow-up questions. But the page you linked to just looks like customized vbulletin, so I'm not sure what you mean.

HM666 12-24-2014 11:30 PM

Quote:

Originally Posted by gfran5 (Post 2528243)
That was the issue Kevin, Thanks!

--------------- Added [DATE]1419243039[/DATE] at [TIME]1419243039[/TIME] ---------------

This is off topic, but does anybody know how they did this ?? bodybuilding.com

--------------- Added [DATE]1419244092[/DATE] at [TIME]1419244092[/TIME] ---------------

Are they using wordpress? or is it something else?

Its vBulletin 4 with a static stay in place menu. So its just some extra code added into the templates. It looks like they are using a custom menu for the top tabs and left the bottom navbar in place to me. Using a custom menu for the top tabs can look great but can also cause issues when you install a mod that needs to add a tab for an extra page like videos, articles and so on. you would have to add those links/tabs yourself to the code probably unless they have coded it in such a way where even though the menu is custom it accepts any new tabs added from a mod. It looks like they are using the built in sidebar (I think) and just coded it differently as well as the footer. There are endless things that you can do in some of the templates within vBulletin to customize it. :)


All times are GMT. The time now is 06:48 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.01020 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete