PDA

View Full Version : Problems with long posts in vBulletin


ubu
04-17-2009, 10:28 PM
My users are having a problem when posting long posts or PM's. The support staff at vBulletin seem to think it's got to be because Mod_Security is installed and in use.

Has anyone else had problems with their forums and users posting long posts? Was there a fix for you?

Thanks,
Jamie

ubu
04-18-2009, 01:04 AM
testing with some test text in the forums here.

johnfl68
04-18-2009, 05:49 AM
What kind of problem?

I had an experience lately copying and pasting from another source, and there was a particular character that for some reason made vBulletin ignore everything past that character when you submitted the post (but I think showed everything fine if you previewed the post). I think maybe it was an apostrophe variant, but I don't remember now.

John

ubu
04-18-2009, 09:50 PM
What kind of problem?

I had an experience lately copying and pasting from another source, and there was a particular character that for some reason made vBulletin ignore everything past that character when you submitted the post (but I think showed everything fine if you previewed the post). I think maybe it was an apostrophe variant, but I don't remember now.

John

That is it! I have found on a test forum that it's the Quote and the Apostrophe that is causing it. But here is the funny thing, or the catch and I don't know how to fix it..

If I type a 'normal' Quote like this ( " ) it works.. same goes for a 'normal' apostrophe ( ' )

but somehow, when it gets posted into the forum it's being submitted like it's an ALT code character like this.. ( “ ” ) or ( ’ ) and that is causing a problem.

Anything after that gets cut.

Don't know what is going on, but sure wish I could figure it out.

Jamie

Edited to say that it seems to work here ok. On my forum, which is stock and just installed it would have cut off everything after the first “

ubu
04-19-2009, 12:56 AM
Problem Solved! In case anyone has this problem, here is the email from vBulletin's support and how they fixed it for me.

Jamie

<-Begin Email ->

Its caused by your fancy quotes embedded in the text. The character encoding of your site did not support them. I switched your live site to UTF-8 and to text pastes in perfectly. If you switch back to ISO-8859-1 then you cannot use extended characters that are in multibyte fonts.

Here are the characters that were causing the problems:
Replace ’ with '
Replace ‘ with '
Replace “ with "
Replace ” with "

Its strange that this happened because your server has mbstring installed which should convert the text automatically before it hits the MySQL server.

It works in the Quick Reply because it always transmits in a UTF-8 format do to the AJAX mechanisms behind it. The standard form does not because standard HTTP forms support more than UTF-8.

<- End Email ->