Errrr....either you have viewforum.php or you do not have a working phpbb forum (or maybe you are using CH??). Any chance you are trying to install this in phpbb-nuke (which is not the same thing as phpbb)? If you are trying to install this in phpbb with CH or nuke the mod would have to be changed to accomodate the differences. I actually did a version that worked for an older version of CH but I have no idea if that still works in the latest version.Nap BlownApart wrote:I tried to install this mod (using EasyMod 0.3.0) but I got a CRITICAL error saying that "viewforum.php" could not be opened for reading.
I checked the files in my phpBB2 install, and there is no such file...
Yup, the mod needs to be revised substantially to work with CH (since CH is more of a total re-write of phpbb than it is a mod).Nap BlownApart wrote:I just edited my earlier post because I realised that CH might have something to do with it
probably. pm me those files and I'll see what I can see.bbowen wrote:If I sent you a copy of my posting.php or functions_post.php could you help me figure out what went wrong?
Is it possible that you have switched templates and forgot to make the changes on the new template that correspond to the changes this mod makes to posting_body.tpl? If so, that's the problem. If not, we'll need to investigate further.Rep wrote:I added this mod to my phpBB 2.0.22 board. Wonderful mod BTW, and TY.
I used it a number of times and it was working fine. But now, all of a sudden, the, "save post as draft" buttons no longer show up when drafting a post.
The, "View your drafts and topics you have posted to" link appears on the index page, I can call up previously saved drafts but the Save as draft button is no longer there. Nor is there when I am drafting a new topic, or, a post.
Any ideas?
(I did change the values in included/functions_post.php to allow an increase in the number of smilies the board displays. Other than that, no other mod added changed any files save drafts uses.)
Code: Select all
// start mod save posts as drafts...if a new topic or a reply or a quote or was_a_draft, allow to save as draft or to delete
if ( $userdata['session_logged_in'] && ( $mode == 'newtopic' || $mode == 'reply' || $mode == 'quote' || $was_a_draft ) )
{
$template->assign_block_vars('switch_save_as_draft_button', array());
}
// end mod save posts as drafts
Code: Select all
'L_SAVE_AS_DRAFT' => $lang['Save_as_draft'],
Code: Select all
<!-- start mod save posts as drafts -->
<!-- added begin and end switch_delete_button and switch_save_as_draft and stuff between them -->
<td class="catBottom" colspan="3" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}
<!-- BEGIN switch_delete_button -->
<input type="submit" tabindex="3" name="delete" class="mainoption" value="{L_DELETE}" />
<!-- END switch_delete_button -->
<!-- BEGIN switch_save_as_draft_button -->
<input type="submit" tabindex="4" name="save_as_draft" class="mainoption" value="{L_SAVE_AS_DRAFT}" />
<!-- END switch_save_as_draft_button -->
<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>
<!-- end mod save posts as drafts -->
Thanks asinshesq for your help. You PM'd me that missing set of code, and while that didn't work at first, I noticed going through the mod file that I seemingly had some duplicated line code code setting the $sql, so I commented out that line and all is well.asinshesq wrote:probably. pm me those files and I'll see what I can see.bbowen wrote:If I sent you a copy of my posting.php or functions_post.php could you help me figure out what went wrong?
asinshesqasinshesq wrote:Is it possible that you have switched templates and forgot to make the changes on the new template that correspond to the changes this mod makes to posting_body.tpl? If so, that's the problem. If not, we'll need to investigate further.Rep wrote:I added this mod to my phpBB 2.0.22 board. Wonderful mod BTW, and TY.
I used it a number of times and it was working fine. But now, all of a sudden, the, "save post as draft" buttons no longer show up when drafting a post.
The, "View your drafts and topics you have posted to" link appears on the index page, I can call up previously saved drafts but the Save as draft button is no longer there. Nor is there when I am drafting a new topic, or, a post.
Any ideas?
(I did change the values in included/functions_post.php to allow an increase in the number of smilies the board displays. Other than that, no other mod added changed any files save drafts uses.)
Next question: do you see the save as draft button when you start a new pm? If not, then it is clear the problem is not in posting.php (since privmsg.php has its own code for this) so the problem must be in posting_body.tpl.
FInally, note that the code lines that give you the buttons when you are writing a new post are:
1. From posting.php:
andCode: Select all
// start mod save posts as drafts...if a new topic or a reply or a quote or was_a_draft, allow to save as draft or to delete if ( $userdata['session_logged_in'] && ( $mode == 'newtopic' || $mode == 'reply' || $mode == 'quote' || $was_a_draft ) ) { $template->assign_block_vars('switch_save_as_draft_button', array()); } // end mod save posts as drafts
2. From the tempaltes/subSilver/posting_body.tpl file:Code: Select all
'L_SAVE_AS_DRAFT' => $lang['Save_as_draft'],
If you can't figure this out, tell me what you have tried and then pm me your posting.php and posting_body.tpl files and I'll take a look.Code: Select all
<!-- start mod save posts as drafts --> <!-- added begin and end switch_delete_button and switch_save_as_draft and stuff between them --> <td class="catBottom" colspan="3" align="center" height="28"> {S_HIDDEN_FORM_FIELDS} <!-- BEGIN switch_delete_button --> <input type="submit" tabindex="3" name="delete" class="mainoption" value="{L_DELETE}" /> <!-- END switch_delete_button --> <!-- BEGIN switch_save_as_draft_button --> <input type="submit" tabindex="4" name="save_as_draft" class="mainoption" value="{L_SAVE_AS_DRAFT}" /> <!-- END switch_save_as_draft_button --> <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> <!-- end mod save posts as drafts -->
I use m2f on one of my boards too...I hate hate hate it but I got muscled into it the same way as youtaxlady wrote:On our Board we use m2f (mail to forum) so posts from the Board are also posted on our old yahoo group (some don't like a Board format I know, I don't understand why either).
Ok, give this a try:taxlady wrote:On our Board we use m2f (mail to forum) so posts from the Board are also posted on our old yahoo group (some don't like a Board format I know, I don't understand why either). Our problem is that since a draft is treated as being submitted, they post to the yahoo list.
Code: Select all
OPEN
includes/functions_post.php
FIND
if ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost')
REPLACE WITH
// mod for marrying m2f and save posts as drafts: added && !save as draft at end of next line so that posts being saved as drafts to not get emailed
if ( ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost') && !$save_as_draft )
FIND
$m2f_forum_post->mode = $mode;
REPLACE WITH
// mod for marrying m2f and save posts as drafts: added test in next line to see if this was a draft now getting submitted
// (in which case we need to fool m2f into thinking this is a regular reply rather than a draft
$m2f_forum_post->mode = ($was_a_draft) ? 'reply' : $mode;