PDA

View Full Version : PM View Default Setting


Stu
09-08-2002, 09:10 PM
I'm running ver 2.2.7 and noticed that the default 'Show Messages From:' in PM's is set to 'Last Day'
How can I make this default to 'From Begining'

I found the template with the values in (priv_dateselect) but don't know how to set the default. Could someone please point me in the right direction to where I can change this default.

This is the code from priv_dateselect which I'm assuming is just for the dropdown box


<table cellspacing="0" cellpadding="0" border="0">
<form action="private$privpage.php" method="post">
<tr>
<td><input type="hidden" name="s" value="$session[sessionhash]"><input type="hidden" name="folderid" value="$folderid">
<smallfont><b>Show Messages From:</b>
<nobr><select name="daysprune" onchange="window.location=('private$privpage.php?s=$session[sessionhash]&folderid=$folderid&daysprune=' + this.options[this.selectedIndex].value)">
<option value="1" $daysprunesel[1]>last day</option>
<option value="2" $daysprunesel[2]>last 2 days</option>
<option value="5" $daysprunesel[5]>last 5 days</option>
<option value="10" $daysprunesel[10]>last 10 days</option>
<option value="20" $daysprunesel[20]>last 20 days</option>
<option value="30" $daysprunesel[30]>last 30 days</option>
<option value="45" $daysprunesel[45]>last 45 days</option>
<option value="60" $daysprunesel[60]>last 60 days</option>
<option value="75" $daysprunesel[75]>last 75 days</option>
<option value="100" $daysprunesel[100]>last 100 days</option>
<option value="365" $daysprunesel[365]>the last year</option>
<option value="1000" $daysprunesel[1000]>the beginning</option>
</select>$gobutton</nobr></smallfont></td>
</tr>
</form>
</table>

Logician
09-09-2002, 09:06 AM
If you want it to make static (not changing according to the code) use this code:

<option value="1">last day</option>
<option value="2">last 2 days</option>
<option value="5">last 5 days</option>
<option value="10">last 10 days</option>
<option value="20">last 20 days</option>
<option value="30">last 30 days</option>
<option value="45">last 45 days</option>
<option value="60" selected>last 60 days</option>
<option value="75">last 75 days</option>
<option value="100">last 100 days</option>
<option value="365">the last year</option>
<option value="1000">the beginning</option>

Stu
09-09-2002, 08:10 PM
Thanks,
New users are defaulting to 1000 so looks like the database is set to last day for all present users.

All I have to do now is find the field daysprune is stored in the sql db