Jump to the post that solved this thread.
Solved: 6 Years, 10 Months ago Send PM/Email for awaiting approval
#38
Solved: 6 Years, 10 Months ago
So, I found the error in the PM's. It was quite annoying, you know you are dealing with digital stuff which is binary and only knows 1 or 0, and no perhaps or maybe. Now I had something that sometimes went well and somtimes went wrong. The cause appeared to be the length of the subject of a PM. In the database this is fixed to 120 characters, but MyBB has a hard-coded maximum of 85 characters.

The PM's that I generated had sometimes a length within the limit of 85 characters and sometimes they were longer. And in the way I used it the PM's were then simply not sent without an error message. I had copied this code from other parts of the MyBB software.

I have now changed this, such that the subjects will always be shorter than 85 characters.

The new version is attached. Try it, and post any problems.


Attached Files
.zip   newMemScr.zip (Size: 17.18 KB / Downloads: 388)
Regards, Ad Bakker (NL)
Reply
Jump to the post that solved this thread.


Messages In This Thread
RE: Send PM/Email for awaiting approval - by Ad Bakker - 2015-07-26, 03:30 PM
RE: Send PM/Email for awaiting approval - by .m. - 2017-03-29, 06:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)