MyBB Community Forums
Board Message issue - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: Board Message issue (/thread-22922.html)



Board Message issue - blickety - 2006-02-09

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).


RE: Board Message issue - decswxaqz - 2006-02-09

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.


RE: Board Message issue - blickety - 2006-02-10

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!


RE: Board Message issue - decswxaqz - 2006-02-10

Smile Glad to be of some assistance