Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-21-2015, 10:58 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03348 seconds
  • Memory Usage 2,283KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)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)showthread_list
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadedmode.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids_threaded
  • showthread_threaded_construct_link
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete