View Single Post
  #34  
Old 05-14-2006, 03:19 PM
ShiningArcanine ShiningArcanine is offline
 
Join Date: May 2003
Posts: 105
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am looking through your modification's XHTML code and I can see that it is not XHTML compliant. Is there any possibility of fixing this in version 1.0.2?

Edit: I tried cleaning up the XHTML as much as I could but I could not make it XHTML compliant without breaking the plugin. If it helps, here is what I managed to do:

HTML Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle] - $vbphrase[search_forums]</title>
</head>
<body>

$header
$navbar

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">BoardTracker $vbphrase[thread] $vbphrase[search]</td>
</tr>
<tr>
<td class="alt1">

		<table width="100%" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]">
		<tr>
		<td align="left">
			<form style="margin: 0px;" action="" method="get">
				<table cellpadding="0" cellspacing="4">
				<tr>
					<td>$vbphrase[key_words]</td><td><input name="search" id="BT_SEARCH_INPUT" value="" /><input type="submit" value="$vbphrase[search_now]" /></td>
				</tr>
				<tr>
					<td>$vbphrase[find_posts_from] </td>
					<td><select name="scope" id="BT_SEARCH_SCOPE">
						<option value="0">$vbphrase[yesterday]</option>
						<option value="1">$vbphrase[a_week_ago]</option>
						<option value="2">$vbphrase[a_month_ago]</option>
						<option value="3">$vbphrase[a_year_ago]</option>
						<option value="4">$vbphrase[any_date]</option>
					</select></td>
				</tr>
				<tr>
					<td>$vbphrase[sort_results_by]</td>
					<td><select name="order" id="BT_SEARCH_ORDER">
						<option value="0">$vbphrase[thread_start_date]</option>
						<option value="1">$vbphrase[relevancy]</option>
					</select></td>
				</tr>
				</table>
			</form>
		</td>
		<td align="right">		
			<span><span id="BT_SEARCH_POWEREDBY" name="BT_SEARCH_POWEREDBY" /></span><br />
			<br />
			<span id="BT_SEARCH_NAVBAR" name="BT_SEARCH_NAVBAR" style="display:none">
			<table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
			<tr valign="bottom">
				<td align="right"><div class="pagenav" align="right">
					<table class="tborder" cellpadding="3" cellspacing="1" border="0">
					<tr>
						<td class="vbmenu_control" style="font-weight:normal"><phrase 1="<SPAN ID=BT_SEARCH_RESULTS_PAGES_CURRENT NAME=BT_SEARCH_RESULTS_PAGES_CURRENT></SPAN>" 2="<SPAN ID=BT_SEARCH_RESULTS_PAGES_COUNT NAME=BT_SEARCH_RESULTS_PAGES_COUNT></SPAN>">$vbphrase[page_x_of_y]</phrase></td>
						<td class="alt2 smallfont"><span id="BT_SEARCH_RESULTS_PAGENAV" name="BT_SEARCH_RESULTS_PAGENAV"></SPAN></td>
					</tr>
					</table>
			</div></td>
			</tr>
			</table>
			</span>
		</td>
		</tr>
		</table>

		<span id="BT_SEARCH_RESULTS" name="BT_SEARCH_RESULTS" style="display:none;">
			
			<table name="BT_SEARCH_RESULTS_TABLE" id="BT_SEARCH_RESULTS_TABLE" class="tborder" cellpadding="6" cellspacing="1" border="0" width="100%" align="center" id="threadslist">
				<tr>
					<td class="tcat" colspan="5" style="font-weight:normal">
						<span class="smallfont" style="float:right">
							<span class="smallfont"><phrase 1="<SPAN ID=BT_SEARCH_RESULTS_THREADS_START NAME=BT_SEARCH_RESULTS_THREADS_START></SPAN>" 2="<SPAN ID=BT_SEARCH_RESULTS_THREADS_END NAME=BT_SEARCH_RESULTS_THREADS_END></SPAN>" 3="<SPAN ID=BT_SEARCH_RESULTS_THREADS_COUNT NAME=BT_SEARCH_RESULTS_THREADS_COUNT></SPAN>">$vbphrase[showing_results_x_to_y_of_z]</phrase>
						</span>
					</td>
				</tr>

				<tr>
					<td class="thead" width="75%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
					<td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[bt_thread_created_on]</td>
					<td class="thead" align="center" nowrap="nowrap">$vbphrase[replies]</td>
					<td class="thead" align="center" nowrap="nowrap">$vbphrase[views]</td>
				</tr>
				
				<!--[BT_SEARCH_RESULTS_TABLE_FILL]-->
			</table>
			
			<table id="BT_SEARCH_RESULTS_TEMPLATE" style="display:none">

				<tr>
					<td class="alt1">
						<div>
							<a href="[HREF]&amp;highlight=[SEARCH]">[TITLE]</a>
						</div>
						<div class="smallfont">
								<span style="cursor:pointer" onclick="window.open('[AUTHOR_URL]')">[AUTHOR_NAME]</span>			
						</div>
					</td>
					
					<td class="alt2" title="Replies: [REPLIES], Views: [VIEWS]">
						<div class="smallfont" style="text-align:right; white-space:nowrap">
							<span class="time">[CREATED]</span>
						</div>
					</td>
				
					<td class="alt1" align="center">[REPLIES]</td>
					<td class="alt2" align="center">[VIEWS]</td>
				</tr>
				
				<tr>
					<td class="alt1 smallfont" colspan=4>[SNIPPET]</td>
				</tr>
				<tr>
					<td class="alt2" colspan=4 style="font-size:6px; height:10px"></td>
				</tr>
			 </table>

			<table width="100%" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]">
			<tr>
			<td align="right">
				<span id="BT_SEARCH_POWEREDBY" name="BT_SEARCH_POWEREDBY" />
			</td>
			</tr>
			</table>
		</span>
		

		<span id="BT_SEARCH_NORESULTS" name="BT_SEARCH_NORESULTS" style="display:none;">
			<br />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="70%" align="center">
<tr>
	<td class="tcat">vBulletin Message</td>
</tr>
<tr>
	<td class="panelsurround" align="center">
	<div class="panel">
		<div align="left">
			<blockquote><p>Sorry - no matches. Please try some different terms.</p></blockquote>
		</div>
	</div>
	</td>
</tr>
</table>
			<br />
			<br />
		</span>


		<span id="BT_SEARCH_INPROGRESS" name="BT_SEARCH_INPROGRESS" style="display:none;">
			<center>
				<br />
				<font size="1">
				$vbphrase[bt_search_loading_results]<br /><img src="http://www.boardtracker.com/images/dog_hourglass_small.gif" alt ="" />

				</font>
				<br />
				<br />
			</center>
		</span>
</td>
</tr>
</table>

$footer

<script type="text/javascript">

	var Search_SafeFilter = {$vbulletin->options['boardtracker_search_safe_filter']};	//Default
	var Search_Category = {$vbulletin->options['boardtracker_search_categoryid']};		//Default
	var Search_Order = {$vbulletin->options['boardtracker_search_order']};			//Default
	var Search_Scope = {$vbulletin->options['boardtracker_search_scope']};			//Default
	var Search_BoardLimit = "{$vbulletin->options['boardtracker_search_boardid']}";     	//Default (empty) = All boards. Can chain board IDs using comma (i.e. 25,26,45)
        var Search_SearchTerm_Default = "{$vbulletin->options['boardtracker_search_default']}"	// Can be set to force default search
</script>
<script type="text/javascript" src="http://www.boardtracker.com/search.js"></script>

</body>
</html>
By the way, it seems that the default BoardTracker Search plugin does not work in Internet Explorer 7.0 Beta 2 and Opera 9.0 Beta 2. Also, I noticed that the default page navigation does not match the style used by vBulletin.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01620 seconds
  • Memory Usage 1,852KB
  • 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_html
  • (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