Thread: Miscellaneous Hacks - Tab and Link Manager Lite
View Single Post
  #26  
Old 03-17-2011, 08:52 AM
Old-Git Old-Git is offline
 
Join Date: Dec 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh I know it's doable. This simple piece of code below will permit me to do it if I load it as a plugin.

Quote:
$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'archives')
{
$vbulletin->options['selectednavtab']='archives';
$tabselected = ' class="selected"';

}
$template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="archives.php?f=14">Archives</a>'.$tablinks.'</li>' ;

The only problem with this bit of code is that whilst it gives me the Archive tab and also highlights it, it does not inlude any code to provide the submenu. I think I've isolated the code for the submenu but I haven't yet figured out how to marry the two together...but I'm working on it.

re the commercial version;

1.) IMO, the inability of the lite code to handle parameters passed to the PHP file in the tab url is a bug that needs fixing

2.) Given that opinion, I'm not likely to consider the commercial version until I see bugs in the lite version ironed out. If I want the commercial version it'll be for the additional features not for a bug fix that won't be fixed in the lite version. Not fixing bugs in the lite version does not send me the right message.

3.) I can't be sure that the commercial version will behave any better than the lite version, or that it won't throw up other issues that need to be dealt with. So again where's my incentive here.

Sorry Mosh but I'm just not getting enough incentive here to trust to the commercial version. As it stands your product is now lumped with all the other 'Add-A-Tab' products that either don't highlight or don't provide a properly, functioning sub-menu. Just one more thing I tried but hasn't delivered what I need. Look over all the threads and you'll see lots of guys like me just trying to do something simple and move on (none of us are coders, or want to be coders), we just need quick solutions to allow us to get it done. And maybe it's not the fault of the coders that these things are so problematic, most likely the fault lays firmly and squarely with the VB product, after all something like this should come as standard in the product.

All that said though, you are close to getting it right with this lite product Mosh and if it didn't have this issue I'd be using it. I'd even be looking at the commercial product because I do like the look of the extra features and I would want the copyright removed from my pages. However....!
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01039 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete