Syber Movi Theme Installation - User Guide

Open/engine/ajax/search.php

Search
								$db->query("SELECT id
							
Replace
								$db->query("SELECT id, xfields
							
Search
								$buffer .= "".$description."";
							
Replace
if ( array_key_exists( 'cover', $xfields ) && !empty( $xfields['cover'] ) ) {
	$buffer .= "<span class=\"movie-cover\"><img src=\"".$xfields['cover']."\" alt=\"\" /><em>".$description."</em></span></a>";
} else {
	$buffer .= "<span>".$description."</span></a>";
}
							

Open/engine/modules/search.php

Search ( line 224 - 370 )
$searchtable .= <<<HTML
<table cellpadding="0" cellspacing="0" width="100%">
....
</table>
HTML;
							
Replace
$searchtable .= <<<HTML
<div class="row form-area">
	<div class="col-md-6 col-xs-12">
		<aside>
			<header>
				<h3>{$lang['s_con']}</h3>
			</header>
			<section>
				<div>
					<h5>{$lang['s_word']}</h5>
					<div>
						<input type="text" name="story" id="searchinput" value="$findstory" onchange="document.getElementById('result_from').value = 1" />
					</div>
					<div class="form-checkbox-container">{$all_word_option}</div>
				</div>
				<div>
					<select name="titleonly" id="titleonly">
						<option {$titleonly_sel['0']} value="0">{$lang['s_ncom']}</option>
						<option {$titleonly_sel['1']} value="1">{$lang['s_ncom1']}</option>
						<option {$titleonly_sel['2']} value="2">{$lang['s_static']}</option>
						<option {$titleonly_sel['3']} value="3">{$lang['s_tnews']}</option>
					</select>
				</div>
			</section>
		</aside>
	</div>
	<div class="col-md-6 col-xs-12">
		<aside>
			<header>
				<h3>{$lang['s_mname']}</h3>
			</header>
			<section>
				<div>
					<h5>{$lang['s_fname']}</h5>
					<div>
						<input type="text" name="searchuser" id="searchuser" value="$searchuser" /><br />
						<label for="exactname"><input type="checkbox" name="exactname" value="yes" id="exactname" {$exactname_sel} />{$lang['s_fgname']}</label>
					</div>
				</div>
				<div>
					<select name="titleonly" id="titleonly">
						<option {$titleonly_sel['0']} value="0">{$lang['s_ncom']}</option>
						<option {$titleonly_sel['1']} value="1">{$lang['s_ncom1']}</option>
						<option {$titleonly_sel['2']} value="2">{$lang['s_static']}</option>
						<option {$titleonly_sel['3']} value="3">{$lang['s_tnews']}</option>
					</select>
				</div>
			</section>
		</aside>
	</div>
</div>
<div class="row form-area">
	<div class="col-md-6 col-xs-12">
		<aside>
			<header>
				<h3>{$lang['s_fart']}</h3>
			</header>
			<section>
				<div>
					<select name="replyless" id="replyless">
						<option {$replyless_sel['0']} value="0">{$lang['s_fmin']}</option>
						<option {$replyless_sel['1']} value="1">{$lang['s_fmax']}</option>
					</select>
					<span class="form-input-size"><input type="text" name="replylimit" id="replylimit" size="5" value="$replylimit" /> {$lang['s_wcomm']}</span>
				</div>
				<div>
					<h5>{$lang['s_fdaten']}</h5>
					<select name="searchdate" id="searchdate">
						<option {$searchdate_sel['0']} value="0">{$lang['s_tall']}</option>
						<option {$searchdate_sel['-1']} value="-1">{$lang['s_tlast']}</option>
						<option {$searchdate_sel['1']} value="1">{$lang['s_tday']}</option>
						<option {$searchdate_sel['7']} value="7">{$lang['s_tweek']}</option>
						<option {$searchdate_sel['14']} value="14">{$lang['s_ttweek']}</option>
						<option {$searchdate_sel['30']} value="30">{$lang['s_tmoth']}</option>
						<option {$searchdate_sel['90']} value="90">{$lang['s_tfmoth']}</option>
						<option {$searchdate_sel['180']} value="180">{$lang['s_tsmoth']}</option>
						<option {$searchdate_sel['365']} value="365">{$lang['s_tyear']}</option>
					</select>
					<select name="beforeafter" id="beforeafter">
						<option {$beforeafter_sel['after']} value="after">{$lang['s_fnew']}</option>
						<option {$beforeafter_sel['before']} value="before">{$lang['s_falt']}</option>
					</select>
				</div>
				<div>
					<h5>{$lang['s_fsoft']}</h5>
					<select name="sortby" id="sortby">
						{$full_search_option}
						<option {$sortby_sel['title']} value="title" >{$lang['s_fstitle']}</option>
						<option {$sortby_sel['comm_num']} value="comm_num" >{$lang['s_fscnum']}</option>
						<option {$sortby_sel['news_read']} value="news_read" >{$lang['s_fsnnum']}</option>
						<option {$sortby_sel['autor']} value="autor" >{$lang['s_fsaut']}</option>
						<option {$sortby_sel['category']} value="category" >{$lang['s_fscat']}</option>
						<option {$sortby_sel['rating']} value="rating" >{$lang['s_fsrate']}</option>
					</select>
					<select name="resorder" id="resorder">
						<option {$resorder_sel['desc']} value="desc">{$lang['s_fsdesc']}</option>
						<option {$resorder_sel['asc']} value="asc">{$lang['s_fsasc']}</option>
					</select>
				</div>
				<div>
					<h5>{$lang['s_vlegend']}</h5>
					<div>
						{$lang['s_vwie']}
						<label for="rb_showposts_0"><input type="radio" name="showposts" value="0" id="rb_showposts_0" {$showposts_sel['0']} />{$lang['s_vnews']}</label>
						<label for="rb_showposts_1"><input type="radio" name="showposts" value="1" id="rb_showposts_1" {$showposts_sel['1']} />{$lang['s_vtitle']}</label>
					</div>
				</div>
			</section>
		</aside>
	</div>
	<div class="col-md-6 col-xs-12">
		<aside>
			<header>
				<h3>{$lang['s_fcats']}</h3>
			</header>
			<section>
				<div>$cats</div>
			</section>
		</aside>
	</div>
</div>

<div class="row">
	<div class="col-md-12 col-xs-12">
		<input type="button" class="btn bbcodes" name="dosearch" id="dosearch" value="{$lang['s_fstart']}" onclick="javascript:list_submit(-1); return false;" />
		<input type="button" class="btn bbcodes" name="doclear" id="doclear" value="{$lang['s_fstop']}" onclick="javascript:clearform('fullsearch'); return false;" />
		<input type="reset" class="btn bbcodes" name="doreset" id="doreset" value="{$lang['s_freset']}" />
	</div>
</div>
HTML;