Not Solved Board Message issue
#1
Not Solved
When I use the board message it works great unless I end up using 's. Any time there is an apostrophe it gets preceded by a slash /. From what I know about php this appears to be an escape character, but is there anyway to remove it from being shown? As far as I know, the plugin worked great before (as I would have definitely seen the /'s), but I cannot be sure that I just simply didn't use 's.

I've opened up the php file just to have a look, but where I obviously had nothing to do with writing it, I didn't want to change anything. Any insight would be great.

EDIT: I also just wanted to mention that I tried searching, but kept getting seeing a mysql syntax error. So, after some page turning led to finding nothing I figured I would post it (so if its already been discussed I apologize).
Reply
#2
Not Solved
What version are you using?
Seems to be fixed in 1.03 at least. Look for the line
$lang->error_boardclosed .= "<blockquote>".stripslashes($mybb->settings['boardclosed_reason'])."</blockquote>";
in global.php
Try changing it to
$lang->error_boardclosed .= "<blockquote>".stripslashes(stripslashes($mybb->settings['boardclosed_reason']))."</blockquote>";
Just added an extra stripslashes.
Reply
#3
Not Solved
I have tried the fix you mentioned and then upgraded when that didn't work for me. Unfortnately upgrading didn't seem to fix the issue either??? I am now using the newest forum software, and as far as I know, I am using the latest plugin as well. If there is something I can do or something I may have done incorrectly, please feel free to suggest it.

Thanks again.


EDIT: I opened up the boardmsg.php and saw:

$boardmessage = $mybb->settings['boardmsg'];
and changed it to:
$boardmessage = stripslashes($mybb->settings['boardmsg']);

and everything seems to work now! Thanks a lot!
Reply
#4
Not Solved
Smile Glad to be of some assistance
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)