Welcome to Geeklog, Anonymous Friday, November 29 2024 @ 01:34 pm EST
Geeklog Forums
Comments and Backups Question
Status: offline
chief123
Forum User
Chatty
Registered: 05/02/03
Posts: 58
I know that you can set the default for comments to plain text or default but is there a way to disable HTML completely for comments but not articles (which will only be entered by me)?
Also, is there a way to do more than one backup a day?
Thanks.
10
10
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
If you remove the option to select the postmode from the comment form (YourTheme/layout/comment/commentform.thtml) and replace it with
<input type="hidden" name="postmode" value="plaintext">
all comments would be in plain text.
For being able to do more than one backup per day, you could add the hour to the name of the backup files. In admin/database.php, find this line:
$curdatetime = date("Y_m_d"
and replace it with
$curdatetime = date("Y_m_d_H"
The 'H' represents the hour in 24 hour format, with leading zeros. See the PHP manual for more details on the PHP "date" function.
bye, Dirk
12
14
Quote
All times are EST. The time is now 01:34 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content