Author |
Topic  |
|
gglosser
Starting Member
16 Posts |
Posted - 24 June 2001 : 21:01:04
|
I have 6 forums, one of which has as many as 200 posts a day (my Homework Help Message Board). I would like to be able to set the default number of days for each forum through the admin center. So for one forum, the default might be show topics from last 5 days, and for another forum, it might be show topics from last 60 days. I have searched and could not find a MOD for this. PLEASE HELP.
TIA, Gisele
Edited by - gglosser on 24 June 2001 21:03:26
Edited by - gglosser on 24 June 2001 21:03:50 |
|
Space_Cowboy
Starting Member
34 Posts |
Posted - 26 June 2001 : 22:54:33
|
Huh? I don't follow...could you please explain?
|
 |
|
gglosser
Starting Member
16 Posts |
Posted - 27 June 2001 : 11:09:38
|
quote:
Huh? I don't follow...could you please explain?
When you go to the main page of a forum, you will see a pull down menu in the upper right corner. It has different choices. The forum program sets this menu to a default of show topics from last 30 days. Accordingly, all topics posted to that forum from the last 30 days will be listed. If a visitor changes this option, it will be stored in a cookie for the next visit. (The forum will remember that number for subsequent visits.)
If I have a forum that get 200 topics a day, multiply that by 30 days and you get 6,000 topics that have to be listed. Of course the 6,000 topics will be listed across several hundred pages, since there is a maximum number of topics listed per page. But a first time visitor is bound to be overwhelmed by this.
I would like to be able to change the default of 30 to a much smaller number so that a first time visitor does not get overwhelmed. So for my very active forum, I could make it show topics from last 2 days, and for a low activity forum, I can make it show topics from last 60 days.
Is this clearer now?
Gisele
|
 |
|
Ribkick
Junior Member
 
USA
296 Posts |
Posted - 27 June 2001 : 15:37:54
|
In forum.asp find this code near the top of the file:
end if
if nDays = "" then nDays = 30 end if
Edit the 30 to 1, 2, 5, 7, or 14 to change the default to that many days of posts. The other options will still be available.
Unfortunatly this will only work across the board. You can not have a different setting forum by forum.
|
 |
|
|
Topic  |
|
|
|