| I'm running Mambo 4.5.3, SMF 1.0.5 and bridged them with Mambo-SMF 1.3.1.3. The forum works great except for one thing, when posting a topic or previewing one, all text entered is dropped. The topic is posted with no problems, no errors and shows in the forum along with the proper topic name, but the contents of the thread are dropped and replaced with a 0. I had also installed the PHPBB component for Mambo for testing purposes and had the same issue. But found the following fix and had to replace code in the component: Quote Joomla strips HTML text unfortunately because the name of the field is the same as the msg that can be passed in the url. A dirty solution might be this: [open: common.php] Add behind: $HTTP_POST_FILES = $_FILES; the following: $HTTP_REQUEST = $_REQUEST; [open posting.php] Replace: $message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : ''; With: $message = ( !empty($HTTP_REQUEST['message']) ) ? $HTTP_REQUEST['message'] : ''; That fixed the dropping of the text when posting, this fixed the preview problem: Quote In addition though if someone is previewing the post before submitting it the code sample is stripped out in the preview and thus not included when they submit. I have fixed this by adding the following: $message = ( !empty($HTTP_REQUEST['message']) ) ? $HTTP_REQUEST['message'] : ''; Also in posting.php before the first instance of $preview_message = I'm posting this here and in the SMF forums. Any help would be greatly appreciated. |
Forum 





Author



Logged








