Jump to content

MyBB | Form Value Dateline


c.widow
 Share

Recommended Posts

Currently using a search customization by Shinka (or Shin) and trying to add in a dateline option for date cut off. Unsure of where to go now as I've tried everything I can think of and still get no where.

<form method="post" action="search.php?action=do_search">
	<input type="hidden" name="threadprefix[]" value="1" />
	<input type="hidden" name="findthreadst" value="2" />
	<input type="hidden" name="numreplies" value="3" />
	<input type="hidden" name="showresults" value="threads" />
	<input type="hidden" name="sortby" value="lastpost" />
	<input type="submit" class="button" name="submit" value="Open Threads" />
</form>

I am trying to add in

<input type="hidden" name="postdate" value="30" />

In reference to this in the search template

<select name="postdate">
<option value="0">{$lang->find_anydate}</option>
<option value="1">{$lang->find_yesterday}</option>
<option value="7">{$lang->find_lastweek}</option>
<option value="14">{$lang->find_2weeks}</option>
<option value="30">{$lang->find_month}</option>
<option value="90">{$lang->find_3months}</option>
<option value="180">{$lang->find_6months}</option>
<option value="365">{$lang->find_year}</option>
</select>

Value = 30 being a month back or newer (not older).

 

I'm just... struggling. Help would be lovely. ❤️

wcc_aff_one.png.ee644d7c84e4471ab7231d79aa59872c.png freerphostaffbutton.png.2c941043f4d1bcb22ada2b22d3e60dfc.png myrpg-affiliate.png.5453a73021a9354b5b772ac4e15f7ef9.png

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Admin

Are these two fields in the same form?

0_mainsignature.jpg

image.png

Profile set made by myself and original Artwork by Fae Merriman, my daughter.

 

 

Link to comment
Share on other sites

What do you mean?

wcc_aff_one.png.ee644d7c84e4471ab7231d79aa59872c.png freerphostaffbutton.png.2c941043f4d1bcb22ada2b22d3e60dfc.png myrpg-affiliate.png.5453a73021a9354b5b772ac4e15f7ef9.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.