View Single Post
  #699  
Old 07-20-2010, 01:39 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nikola Bosnjak View Post
Well, I might go OT now, but I think this is still a bit related to this mod.

So, I disabled Tabs VB Soporte mod, and I had to learn how to manualy remove and add new tabs. That went good, I removed all tabs exept CMS Homepage. Now, when I enable tab "Forms", I have only this two, "Homepage" and "Forms". When I click to "Forms", a miracle happens, this tab dissapears and I have again my "Forum" tab.

Then I suspected that "Forms" tab had some If-Then-Else clause that pops up this "Forum"tab, since I might be the only one who don't use forum at all. I disabled your tab, and manualy add new tab that links to my 1st form. Again, when clicked this tab dissapears and on it's place I get "Forum" tab.

Then I suspected that this has nothing to do with this mod, but with misc.php script. To test it, I disabled your mod and also deleted my tab. Now I have only Homepage. I enter url .../misc.php, and again, my "Forum" tab is back, it is active and below I have some list of smilies. So, as I suspected, I have a problem even without your mod, only I would never discover it becouse I have no reason to link to this misc.php.

Now, since your mod uses this script, you might be the right person to ask, is it normal that this script activates Forum? Is Forum mandatory for misc.php and for my future forms? Can this be somehow cracked, I browsed misc.php script and also Navbar template, but I see no instruction that would make Forum tab active.

Actualy, I suspect that I did't disable my Forum tab properly, I can't find instructions to do that. I just removed this line from my Navbar template:

Code:
		<vb:else />
			<li><a class="navtab" href="{vb:raw vboptions.forumhome}.php{vb:raw session.sessionurl_q}">{vb:rawphrase forum}</a></li>
		</vb:if>
Is there some other lines that needs to be deleted from Navbar to permanently remove Forum? I would't need it for some time and I just dont want to see this tab untill my forum is ready for use.

Sorry for OT, but it started with this mod and it still might be related, somehow
In order for a Tab to work for the Forms properly, you have to use the THIS_SCRIPT tag. Since Forms uses misc.php the THIS_SCRIPT = misc. If you are not using THIS_SCRIPT properly, the tab will disappear when clicked on.
The problem here, is any page which uses the misc.php will cause this tab to highlight.

As for removing the Forum tab, you only removed the Highlighted version of the tab. So when you view a page which does not highlight Forums the Tab will reappear. Look in your NAVBAR Template you should be able to find 2 or 3 Forum Tabs in there.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01439 seconds
  • Memory Usage 1,774KB
  • 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_code
  • (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