vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Template (search_common_select_type) (https://vborg.vbsupport.ru/showthread.php?t=319965)

Stratis 08-21-2015 10:58 AM

Template (search_common_select_type)
 
Some times I get errors in forum when searching, this is not the problem, because its supposed to get it.
Problem is that at the end of the text I get this ]]>

Here is the text and than ]]>

in searching templates I found the same symbols in "search_common_select_type"
HTML Code:

{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml"<vb:if condition="$vboptions['enablefacebookconnect']"> xmlns:fb="http://www.facebook.com/2008/fbml"</vb:if> dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}">
<head>
        {vb:raw headinclude}

        {vb:cssfile search.css,tagcloud.css}

        <script type="text/javascript">
        <!--
                document.write('<script type="text/javascript" src="' + yuipath + '/history/history-min.js"></script>');
        //-->

        </script>       
  <script type="text/javascript" src="clientscript/vbulletin_ajax_suggest.js?v={vb:raw vboptions.simpleversion}"></script>
  <script type="text/javascript" src="clientscript/vbulletin_ajax_search.js?v={vb:raw vboptions.simpleversion}"></script>

        <title><vb:if condition="$show['searchthread']">{vb:rawphrase search_thread}<vb:else />{vb:rawphrase search_forums}</vb:if> - {vb:raw vboptions.bbtitle}</title>
  <script src="clientscript/vbulletin_ajax_htmlloader.js?v={vb:raw vboptions.simpleversion}" type="text/javascript"></script>
        <script type="text/javascript">
                var snc = null;
                var tag_add_comp = null;
                function setAjax()
                {
                        initAjax();
                        init_collapsers();
                }
                function initAjax()
                {
                        if (document.getElementById('userfield'))
                        {
                                snc = new vB_AJAX_NameSuggest('snc', 'userfield_txt', 'userfield');
                        }

                        if (document.getElementById('tag_add'))
                        {
                                tag_add_comp = new vB_AJAX_TagSuggest('tag_add_comp', 'tag_add_input', 'tag_add');
                        }
                        <vb:if condition="$show['init_recaptcha']">
                        if (document.getElementById('recaptcha_block') && typeof reloadRecaptcha == 'function')
                        {
                                reloadRecaptcha();
                        }
                        </vb:if>
                        vB_AJAX_SearchPrefs_Init('save_searchprefs');
                }
        </script>
  {vb:raw headinclude_bottom}
</head>

<body onload="initAjax()">
        <vb:comment>This must be given a local value or the history manager fails in IE</vb:comment>
        <iframe id="yui-history-iframe" src="clientscript/yui/history/assets/blank.html"
          style="position:absolute;top:0; left:0;width:1px; height:1px;visibility:hidden;">
</iframe>
  <input id="yui-history-field" type="hidden" />

  {vb:raw header}
  {vb:raw navbar}

        <div class="block">
                <ul id="searchtypeswitcher" class="floatcontainer">
                        <li class="selected"><a href="search.php?{vb:raw session.sessionurl}search_type=1">{vb:rawphrase search_single_type}</a></li>
                        <li><a href="search.php{vb:raw session.sessionurl_q}">{vb:rawphrase search_multiple_types}</a></li>
                </ul>
                  <div class="blockbody formcontrols">
                        {vb:raw input_search_types}

                        <vb:if condition="$show['errors']">
                        <h2 class="blocksubhead">{vb:rawphrase errors_occured_with_search}:</h2>
                        <div class="section">
                                <div class="blockrow"><ol>{vb:raw errorlist}</ol></div>
                        </div>
                        </vb:if>

                        <div id="vb_search_params">
                                {vb:raw search_ui}
                        </div>

                </div>
        </div>
 
        <vb:if condition="$tag_cloud">
        <div id="searchform_tagcloud">{vb:raw tag_cloud}</div>
        </vb:if>
       
        {vb:raw footer}

        <script type="text/javascript">
        //<![CDATA[
                var initialState = YAHOO.util.History.getBookmarkedState("ads");
                if (!initialState)
                {//
                        initialState = get_loaded_type();
                }

                YAHOO.util.History.register("ads", initialState,
                        function (state)
                        {
                                // This is called after calling YAHOO.util.History.navigate, or after the user
                                // has trigerred the back/forward button. We cannot discrminate between
                                // these two situations.
                                if (state != get_loaded_type())
                                {
                                        load_state(state);
                                }
                        }
                );

                YAHOO.util.History.onReady(
                        function ()
                        {//
                                var state = YAHOO.util.History.getCurrentState("ads");
                                if (state != get_loaded_type())
                                {
                                        load_state(state);
                                }
                        }
                );

                // Initialize the browser history management library.
                try
                {//
                        YAHOO.util.History.initialize("yui-history-field", "yui-history-iframe");
                }
                catch (e)
                {//
                }

                function change_type()
                {//
                        var type = get_selected_type();
                        YAHOO.util.History.navigate("ads", type);
                }

                function load_state(state)
                {
                        load_html('vb_search_params', 'ajax.php', 'do=list&search_type=' + state, null, setAjax);
                        set_selected_type(state);
                }

                function get_selected_type()
                {//
                        var typeselect = document.getElementById('search_type');
                        return typeselect.options[typeselect.selectedIndex].value;
                }

                function get_loaded_type()
                {//
                        return document.getElementById('searchform').contenttypeid.value;
                }

                function set_selected_type(value)
                {//
                        var typeselect = document.getElementById('search_type');
                        for (var i = 0; i < typeselect.length; i++)
                        {
                                if(typeselect.options[i].value == value)
                                {
                                        typeselect.selectedIndex = i;
                                        break;
                                }
                        }
                }
        //]]>

        </script>
</body>
</html>

As you see at the end of code
//]]>
</script>
</body>
</html>

is this ok? maybe this is the issue that comes up and I see this at the end of text...
Thanks for any clue?


All times are GMT. The time now is 07:44 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.02733 seconds
  • Memory Usage 1,745KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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