honeysmom wrote: But I couldn't even find pruning of drafts so maybe I do have something not quite right.
Googling that error, I see that a number of people have been receiving it in a variety of contexts having nothing to do with this mod. So my questions are: Does the error always appear when you try to save as draft? Are you using aol or a proxy? Do you use a web accelerator like google web accelerator? Do you still get the error even if you disable the web accelerator and are not using aop or a proxy?Rep wrote:Running 2.0.22.
I installed this mod with Easy Mod.
As I finish a post, and hit the save as draft button....this appears in a window above the posting window.
"Invalid Session. Please resubmit the form." Any ideas?
TY
asinshesq wrote:Googling that error, I see that a number of people have been receiving it in a variety of contexts having nothing to do with this mod. So my questions are: Does the error always appear when you try to save as draft? Are you using aol or a proxy? Do you use a web accelerator like google web accelerator? Do you still get the error even if you disable the web accelerator and are not using aop or a proxy?Rep wrote:Running 2.0.22.
I installed this mod with Easy Mod.
As I finish a post, and hit the save as draft button....this appears in a window above the posting window.
"Invalid Session. Please resubmit the form." Any ideas?
TY
If no to all, I'm not sure what's going on. If you want to pm me your posting.php and functions_post.php files I can take a look.
I have on occassion seen easymod do what you describe (be unable to find a line that is actually there), but I can usually get it to go forward by copying the actual code from my file and pasting it into the mod script FIND.Rep wrote:I really like this mod, and would like to install it, but I wonder if it would be best to hand install it? Thoughts?
asinshesq wrote:I have on occassion seen easymod do what you describe (be unable to find a line that is actually there), but I can usually get it to go forward by copying the actual code from my file and pasting it into the mod script FIND.Rep wrote:I really like this mod, and would like to install it, but I wonder if it would be best to hand install it? Thoughts?
This is a pretty long mod and would take quite a while to install and troubleshoot by hand. As you can tell by looking at some of this topic, I am a very very strong believer in easymod - I think it is a huge mistake avoider and time saver (for both the person installing the mod and for the person supporting the mod ). I think if you can get through the installation with easymod you are better off. And if there is an intractable problem where for some reason easymod simply can't find the code even though it is there (which sometimes happens for example when the mod script is out of order with the actual code in the file, as happens if the mod script is wrong or if other mods on your board have changed the order of the code), it makes more sense to do delete that FIND and REPLACE WITH (or whatever) in the mod script, make that single change by hand and then continue with easymod.
But I am on one extreme (an easymod zealot) and you will find others here who don't like to rely on easymod the way I do.
I'm confused, because installing a mod with easymod on a board that has other mods in it that have changed the lines the mod tells you to FIND has nothing to do with understanding EM and, from what you said in your earlier post, is a process you already understand very well. But just in case, let me describe how I use EM to install mods on my heavily modded board (where there are usually lines the mod tells me to FIND that are no longer there).Rep wrote:Ok. I will continue with EM. I will have to think through this a bit. I have to figure out how to get EM to work around anything I hand mod. I am not that well acquainted with EM
Yeah, sure (I can't tell you how many times I thought that too, but there's always something...)Rep wrote:...and actually this is I believe one of my last major mods I feel I need...
No doubt you are correct. I will soon be seaching the mod database for more goodies.asinshesq wrote:Rep wrote:Ok. I will continue with EM. I will have to think through this a bit. I have to figure out how to get EM to work around anything I hand mod. I am not that well acquainted with EMYeah, sure (I can't tell you how many times I thought that too, but there's always something...)Rep wrote:...and actually this is I believe one of my last major mods I feel I need...
That's telling you that you made the changes to privmsgs.php wrong. For example, you may have unmatched quotes or brackets. So, check the changes you made to privmsgs.php again, and if you're stuck pm me your privmsgs.php file.Rep wrote:When I went to draft a private message, I got the following error:
Parse error: syntax error, unexpected $end in /home/.drixyl/Rep/pm.com/phpBB2/privmsg.php on line 2357
That line is the last line in the file ?>
TY in advance.
Rep, I'm gonna go way out on a limb and play the game of guessing where you may have messed up in privmsgs.php without even seeing your file. I am guessing it is in one of the following changes the mod tells you to maie to privmsgs.php:asinshesq wrote:That's telling you that you made the changes to privmsgs.php wrong. For example, you may have unmatched quotes or brackets. So, check the changes you made to privmsgs.php again, and if you're stuck pm me your privmsgs.php file.Rep wrote:When I went to draft a private message, I got the following error:
Parse error: syntax error, unexpected $end in /home/.drixyl/Rep/pm.com/phpBB2/privmsg.php on line 2357
That line is the last line in the file ?>
TY in advance.
Code: Select all
#
#-----[ FIND ]------------------------------------------------
#
$delete_sql_id = "AND privmsgs_id IN ($delete_sql_id)";
}
#
#-----[ AFTER, ADD ]------------------------------------------------
#
// start mod savae posts as drafts ... added the following block of code to specify, when a draft is being finally submitted, that the
// pm was a draft and to specify the privmsg_id
// (note: also added a reference to case 'draft' in the enxt 'switch' and changed the $delete_type reference in that switch to
// refer to $privmsgs_new_or_draft_mail rather than PRIVMSGS_NEW_MAIL)
if ( $was_a_draft )
{
$delete_sql_id = "AND privmsgs_id = $privmsgs_id ";
$folder = 'draft';
$privmsgs_new_or_draft_mail = PRIVMSGS_DRAFT_MAIL;
}
else
{
$privmsgs_new_or_draft_mail = PRIVMSGS_NEW_MAIL;
}
// end mod save posts as drafts
Code: Select all
#
#-----[ FIND ]------------------------------------------------
# note: actual line is longer
$sql_info = "INSERT INTO " . PRIVMSGS_TABLE . " (privmsgs_type,
#
#-----[ BEFORE, ADD ]------------------------------------------------
#
// start mod save posts as drafts (and end mod too)...added the close bracket that ties to the if statement added earlier by this mod
}
Code: Select all
#
#-----[ REPLACE WITH ]------------------------------------------------
#
// start mod save posts as drafts (and end mod too)...changed the next line so that the counter will not be incremented
// when you save a pm as a draft but will in fact be incremented when you submit it
if ( ( $mode != 'edit' && !$save_as_draft ) || ( $was_a_draft && !$save_as_draft ) )
{
//
// Add to the users new pm counter
#
#-----[ FIND ]------------------------------------------------
#
$emailer->send();
$emailer->reset();
}
}