vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   PM View Default Setting (https://vborg.vbsupport.ru/showthread.php?t=43336)

Stu 09-08-2002 09:10 PM

PM View Default Setting
 
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


All times are GMT. The time now is 09:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01035 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete