The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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> //]]> </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? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|