Home arrow Forum Topic Text dropped when posted/previewed
  Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 06:01:30 AM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Mambo-SMF 1.3.x
| | | |-+  Topic Text dropped when posted/previewed
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Topic Text dropped when posted/previewed  (Read 1706 times)
Steve
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Topic Text dropped when posted/previewed
« on: January 05, 2006, 01:37:51 PM »

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.
Logged
-Wolverine
Developer
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: Topic Text dropped when posted/previewed
« Reply #1 on: January 05, 2006, 01:48:37 PM »

So, if I have this correctly, the fixes you posted are the fixes for phpBB.  You need similar fixes for SMF?  This problem seems to be core SMF related. 
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Steve
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


View Profile
Re: Topic Text dropped when posted/previewed
« Reply #2 on: January 05, 2006, 02:02:24 PM »

Correct. The quoted fixes are for the PHPBB component and I'm looking for a like fix for SMF.

I've made the same post on the SMF forums also. Just trying to get as much help as possible. Thx
Logged
draconid
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


View Profile
Re: Topic Text dropped when posted/previewed
« Reply #3 on: January 11, 2006, 07:55:42 AM »

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'm having a very similar problem.  I have all the same versions installed.

If I post something (comment or new topic) with it wrapped, the contents are replaced by 0 when posting/previewing.

However, I can post fine through the unwrapped version.

The site is at http://dysg.perfectinsanity.me.uk/mambo/ (and linked under as efora).  You can see if you go to the forum (linked under efora) the items with a "0".
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login