Changeset 1423 in ExiteCMS


Ignore:
Timestamp:
05/30/08 22:22:53 (4 years ago)
Author:
hverton
Message:

Added a config value to define a forum post edit timeout

Location:
trunk
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/settings_forum.php

    r1222 r1423  
    3838    $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".(isNum($_POST['thread_notify']) ? $_POST['thread_notify'] : "0")."' WHERE cfg_name = 'thread_notify'"); 
    3939    $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".(isNum($_POST['unread_threshold']) ? $_POST['unread_threshold'] : "0")."' WHERE cfg_name = 'unread_threshold'"); 
     40    $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".(isNum($_POST['forum_edit_timeout']) ? $_POST['forum_edit_timeout'] : "0")."' WHERE cfg_name = 'forum_edit_timeout'"); 
    4041} 
    4142 
  • trunk/includes/templates/admin.settings_forum.tpl

    r1195 r1423  
    101101        <tr> 
    102102            <td width='60%' class='tbl'> 
     103                {$locale.534} 
     104            </td> 
     105            <td width='40%' class='tbl'> 
     106                <select name='forum_edit_timeout' class='textbox'> 
     107                <option value='0' {if $settings2.forum_edit_timeout}selected='selected'{/if}>{$locale.714}</option> 
     108                {section name=hours start=1 loop=25} 
     109                <option value='{$smarty.section.hours.index}' {if $settings2.forum_edit_timeout == $smarty.section.hours.index}selected='selected'{/if}>{$smarty.section.hours.index} {if $smarty.section.hours.index == 1}{$locale.535}{else}{$locale.536}{/if}</option> 
     110                {/section} 
     111                </select> 
     112            </td> 
     113        </tr> 
     114        <tr> 
     115            <td width='60%' class='tbl'> 
    103116                {$locale.514} 
    104117                <br /> 
Note: See TracChangeset for help on using the changeset viewer.