Zen Follower
- Join Date:
- May 2009
- Posts:
- 433
- Plugin Contributions:
- 0
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.
Views: 3,965
Zen Follower
How can I remove 'Search by Date Added' field from the advanced search page?
Thanks.
Black Belt
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.
Zen Follower
Bravo stevesh, bravo :smile:
Zen Follower
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:
Black Belt
Strange. I'm not seeing the box in any browser on my test site. Have you tried clearing the IE cache?
Zen Follower
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:
</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:
Black Belt
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:
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>
Zen Follower
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:
Tell staff why this post should be reviewed.