Remove 'Search by Date Added' field from advanced search page?
How can I remove 'Search by Date Added' field from the advanced search page?
Thanks.
Re: Remove 'Search by Date Added' field from advanced search page?
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.
Re: Remove 'Search by Date Added' field from advanced search page?
Bravo stevesh, bravo :smile:
1 Attachment(s)
Re: Remove 'Search by Date Added' field from advanced search page?
Quote:
Originally Posted by
stevesh
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.
Just found a little problem with your suggestion stevesh, for some reason IE8 still shows an empty box outline with no title (@ very bottom of attatched image) Every other browser is fine. Any ideas?
Thanks :smile:
Re: Remove 'Search by Date Added' field from advanced search page?
Strange. I'm not seeing the box in any browser on my test site. Have you tried clearing the IE cache?
Re: Remove 'Search by Date Added' field from advanced search page?
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:
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>
I would post a link but the sites only local ATM.
It's probably something simple.
Thanks :smile:
Re: Remove 'Search by Date Added' field from advanced search page?
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>
Re: Remove 'Search by Date Added' field from advanced search page?
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 :smile: