Code: Select all
#
#-----[ OPEN ]------------------------------------------------
#
search.php
#
#-----[ FIND ]------------------------------------------------
#
WHERE post_time >= " . $userdata['user_lastvisit'];
#
#-----[ REPLACE WITH ]------------------------------------------------
#
WHERE post_time >= " . $userdata['user_lastvisit'] . " AND post_draft = 0";
Code: Select all
#
#-----[ OPEN ]------------------------------------------------
#
includes/functions_admin.php
#
#-----[ FIND ]------------------------------------------------
#
FROM " . TOPICS_TABLE;
#
#-----[ REPLACE WITH ]----------------------------------------
#
FROM " . TOPICS_TABLE . "
WHERE topic_last_post_id > 0";
// start mod save posts as drafts (and end too)...added constraint that topic_last_post_id be greater than 0 so that this function doesn't try to erroneously sync a topic that is only a draft
#
#-----[ FIND ]------------------------------------------------
#
FROM " . POSTS_TABLE . "
WHERE forum_id = $id";
#
#-----[ REPLACE WITH ]----------------------------------------
#
FROM " . POSTS_TABLE . "
WHERE forum_id = $id
AND post_draft = 0";
// start mod save posts as drafts (and end too)...added constraint that post_draft be 0 so that this function doesn't count drafts as posts in a topic or forum
#
#-----[ FIND ]------------------------------------------------
#
FROM " . TOPICS_TABLE . "
WHERE forum_id = $id";
#
#-----[ REPLACE WITH ]----------------------------------------
#
FROM " . TOPICS_TABLE . "
WHERE forum_id = $id
AND topic_last_post_id > 0";
// start mod save posts as drafts (and end too)...added constraint that topic_last_post_id be greater than 0 so that this function doesn't count draft topics as real topics in a forum
Thallium wrote: Well I hate to be the first to point out problems but I'm having some major ones with this mod, I must have done something wrong when installing it, maybe. The 'Save as Draft' button just posts the reply, it doesn't save it. The 'View posts and Drafts' link on the index doesn't show said "drafts" or replies. I'm not sure what went wrong, the mod seemed very straightforward to install....
Code: Select all
<td class="catBottom" colspan="3" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="4" name="save_as_draft" class="mainoption" value="{L_SAVE_AS_DRAFT}" /> <input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>
MasterHelp wrote: Does this run on other templates other than subsilver?