vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   quicksearch member in $show array (https://vborg.vbsupport.ru/showthread.php?t=224496)

helltonic 10-03-2009 09:23 PM

quicksearch member in $show array
 
Hello, could somebody please tell me the criteria for when 'quicksearch' would be a member of $show? Is it just when the user is logged in? Or is there some other criteria that has to be met?

HTML Code:

<a id="navbar_search" href="/forums/search.php$session[sessionurl_q]">Search</a>
<if condition="$show['quicksearch']">
    <script type="text/javascript">
        vbmenu_register("navbar_search", 1);
    </script>
</if>


If I try to see all the members of $show in PHP, it does not include 'quicksearch':

PHP Code:

echo('[');
print_r($show);
echo(
']'); 


Prints:

Code:

[Array ( [search_engine] => [old_explorer] => [left_column] => 1 [center_column] => 1 [right_column] => 1 [editor_css] => [xfire] => )]

Lynne 10-03-2009 09:31 PM

The $show array is just full of variables which are either true or false. In the vbcode somewhere, php is used to determine whether something should be shown. If it should, it is set to true. If not, it is set to false. In regards to quicksearch, somewhere (do a search in the files for $show['quicksearch'] ) there is some code to determine whether quick search should be shown and it is set to true or false based on that code.


All times are GMT. The time now is 11:53 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.01132 seconds
  • Memory Usage 1,711KB
  • 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_html_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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