Thread: Miscellaneous Hacks - Tab and Link Manager Lite
View Single Post
  #25  
Old 03-16-2011, 11:21 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Old-Git View Post
I have 'archive' forums which are set as not active so they don't show up on the main forum page. I am attempting to use forum.php?f=xx to display those forums on their own page. xx is the forum ID of the top category forum under which all my archive sub-forums reside.

Obviously if I do this with forum.php I get to see my archive forums but the highlight remains on the forums tab because that is what forum.php is coded to do. So I have 'cloned' forum.php and renamed it archives.php and then called it from the new Archive tab, as I would forum.php, (only difference is I edited the THIS_SCRIPT setting in my cloned file so that it says 'archives' rather than 'index'). All this is correct and if I call archives.php without passing any parameters to it it works fine and highlights the Archives tab I created (but it does not show my archive forums only the main forum page...I need to hand it the forumid of my 'archives' in order to see them). However, if I call archives.php and hand it ?f=xx (where xx is the forumid) then it refuses to highlight the Archives tab. Calling archives.php and the highlight stays on the Archives tab. Calling archives.php?f=xx and it does not highlight the archive tab but reverts to the forum tab. Doesn't matter which tab I was on before clicking the Archives tab it always reverts to the forum tab. Any ideas?
I can see what you are trying to do, and it is not doable with the Lite version of this hack. However, it is with the full version..... you can see a demo of it in action on my site (link in the first post) by clicking on the Forum Tab Demo tab (the type will work with both visible and invisible forums) and no need to replicate and rename files etc,.

If you have more questions regarding the full version, register on my site and ask them there please.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01233 seconds
  • Memory Usage 1,766KB
  • 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