Search latest 24h 48h 72h?

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Anti-Spam Guide
Locked
User avatar
Jay1318
Registered User
Posts: 119
Joined: Mon Oct 03, 2005 9:12 pm
Location: Niles, IL
Name: Jason Norris
Contact:

Search latest 24h 48h 72h?

Post by Jay1318 »

There was a mod like this for version 2.0.17. Any idea if it will work on 3.0.7 PL1? Or perhaps is there a mod like this for version 3 already?
User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Re: Search latest 24h 48h 72h?

Post by Balint »

Hi,

I developed this MOD, see [BETA] Search back (x minutes, days, month)


Regards,
Bálint
User avatar
Jay1318
Registered User
Posts: 119
Joined: Mon Oct 03, 2005 9:12 pm
Location: Niles, IL
Name: Jason Norris
Contact:

Re: Search latest 24h 48h 72h?

Post by Jay1318 »

Exactly what i'm looking for. But, using subsliver2. Any chance you'll be releasing a version for that theme?
User avatar
Balint
Registered User
Posts: 952
Joined: Tue Aug 06, 2002 2:19 pm
Location: Germany
Contact:

Re: Search latest 24h 48h 72h?

Post by Balint »

Hi,

install the MOD as usual. Open your stylesheet.css in the styles/subsilver2/theme-directory and add the changes

Code: Select all

.searchback {float: left; margin-right: 2px; border: 0;}
.searchback select {font-size: 90%;}
to the end of the file.

Open styles/subsilver2/template/index_body.html and find

Code: Select all

<!-- INCLUDE overall_header.html -->
add after:

Code: Select all

<form id="searchback" class="searchback" method="post" action="{S_SEARCH_ACTION}" onsubmit="if(document.jumpbox.f.value == -1){return false;}">
				<fieldset class="searchback">
					<select name="search_time" size="1" onchange="if(this.options[this.selectedIndex].value != -1){document.forms['searchback'].submit()}">
						<option value="-1" selected="selected">{L_SEARCH_BACK}</option>
						<option value="15">{L_TIME_15_MIN}</option>
						<option value="30">{L_TIME_30_MIN}</option>
						<option value="45">{L_TIME_45_MIN}</option>
						<option value="60">{L_TIME_1_HOUR}</option>
						<option value="120">{L_TIME_2_HOUR}</option>
						<option value="360">{L_TIME_6_HOUR}</option>
						<option value="720">{L_TIME_12_HOUR}</option>
						<option value="1440">{L_TIME_1_DAY}</option>
						<option value="10080">{L_TIME_7_DAYS}</option>
						<option value="40320">{L_TIME_1_MONTH}</option>
					</select>
					<input type="hidden" name="search_id" value="searchback" />
				</fieldset>
			</form>
That should do it. (Remember to purge the cache in your ACP)


Regards,
Bálint
User avatar
Jay1318
Registered User
Posts: 119
Joined: Mon Oct 03, 2005 9:12 pm
Location: Niles, IL
Name: Jason Norris
Contact:

Re: Search latest 24h 48h 72h?

Post by Jay1318 »

Installed and working perfectly. I actually put it in the overall_header instead as that's where i've moved the search functions.

Thanks much!
Locked

Return to “[3.0.x] MOD Requests”