How can I remove 'Search by Date Added' field from the advanced search page?
Thanks.
How can I remove 'Search by Date Added' field from the advanced search page?
Thanks.
Looks like if you remove (or comment out) lines 58-69 in tpl_advanced_search_default.php and save it back to your override folder it will disappear.
Bravo stevesh, bravo
Strange. I'm not seeing the box in any browser on my test site. Have you tried clearing the IE cache?
Yes I completely cleared everything in IE before viewing. Here's the last few lines on my new tpl_advanced_search_default.php override file, maybe you could just have a quick check to see If I have done anything wrong:
I would post a link but the sites only local ATM.PHP Code:
</fieldset>
<fieldset class="floatLeft">
<legend><?php echo ENTRY_PRICE_TO; ?></legend>
<?php echo zen_draw_input_field('pto', $sData['pto']); ?>
</fieldset>
</fieldset>
<?php
/**
<fieldset class="floatingBox forward">
<legend><?php echo ENTRY_DATE_RANGE; ?></legend>
<fieldset class="floatLeft">
<legend><?php echo ENTRY_DATE_FROM; ?></legend>
<?php echo zen_draw_input_field('dfrom', $sData['dfrom'], 'onfocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"'); ?>
</fieldset>
<fieldset class="floatLeft">
<legend><?php echo ENTRY_DATE_TO; ?></legend>
<?php echo zen_draw_input_field('dto', $sData['dto'], 'onfocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"'); ?>
</fieldset>
</fieldset>
*/
?>
<br class="clearBoth" />
<div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEARCH, BUTTON_SEARCH_ALT); ?></div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
</form>
</div>
It's probably something simple.
Thanks
Only difference I can see is that I also removed that <br class="clearBoth" /> at the bottom. With the override system, I usually remove rather than comment out.
Here's mine:
Code:fieldset class="floatingBox back"> <legend><?php echo ENTRY_PRICE_RANGE; ?></legend> <fieldset class="floatLeft"> <legend><?php echo ENTRY_PRICE_FROM; ?></legend> <?php echo zen_draw_input_field('pfrom', $sData['pfrom']); ?> </fieldset> <fieldset class="floatLeft"> <legend><?php echo ENTRY_PRICE_TO; ?></legend> <?php echo zen_draw_input_field('pto', $sData['pto']); ?> </fieldset> </fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEARCH, BUTTON_SEARCH_ALT); ?></div> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> </form> </div>
By the way I just realised I uploaded the wrong screenshot image in my first post, ignore it. Yes completely removing it from the override file worked, thanks for the tip
Bookmarks