Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-21-2014, 01:20 PM
gfran5's Avatar
gfran5 gfran5 is offline
 
Join Date: Nov 2014
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 12-21-2014, 01:44 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)?
Reply With Quote
  #3  
Old 12-21-2014, 02:38 PM
ozzy47's Avatar
ozzy47 ozzy47 is offline
 
Join Date: Jul 2009
Location: USA
Posts: 10,929
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or try this mod, https://vborg.vbsupport.ru/showthread.php?t=302655
Reply With Quote
  #4  
Old 12-21-2014, 03:03 PM
gfran5's Avatar
gfran5 gfran5 is offline
 
Join Date: Nov 2014
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 12-24-2014, 09:52 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 12-24-2014, 11:30 PM
HM666's Avatar
HM666 HM666 is offline
 
Join Date: Jan 2014
Location: Little Rock, AR
Posts: 1,060
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gfran5 View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:52 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.07232 seconds
  • Memory Usage 2,206KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete