Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Mambo Bridge Support => Topic started by: TheGecko on September 23, 2006, 10:46:06 PM

Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: TheGecko on September 23, 2006, 10:46:06 PM
I have an identical problem.  Same error messages.

I tried all configs, and it seems the only config that causes the issue is SEF on (in J!) and Forum Wrapped.  With SEF turned off un/wrapped is fine, and SEF on/unwrapped is ok.

I have no mods installed and the install is on a clean J! (1.0.11) and SMF install (1.1 RC3 & 1.1.6 Bridge)

Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Orstio on September 23, 2006, 11:48:41 PM
Do you have a URL?
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: TheGecko on September 24, 2006, 10:56:35 AM
PM sent with details.
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Orstio on September 24, 2006, 12:49:58 PM
In smf.php, find this:

$mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'. $settings['theme_url']. '";
var smf_images_url = "'. $settings['images_url']. '";
             var smf_scripturl = "'. un_htmlspecialchars(mambo_smf_url($scripturl)) . '";
var smf_session_id = "'. $context['session_id'] . '";
// ]]></script>' );


Change it to this:

$mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'. $settings['theme_url']. '";
var smf_images_url = "'. $settings['images_url']. '";');
if ($mosConfig_sef=='1')
$mainframe->addCustomHeadTag( ob_mambofix('var smf_scripturl ="'. $scripturl . '";'));
else
$mainframe->addCustomHeadTag( 'var smf_scripturl = "'. un_htmlspecialchars(mambo_smf_url($scripturl)) . '";');

$mainframe->addCustomHeadTag( ' var smf_session_id = "'. $context['session_id'] . '";
// ]]></script>' );
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: TheGecko on September 24, 2006, 01:01:51 PM
want to try again?  changed code now.

works a treat!   :D

Thanks alot.  Anything else to add, any reason not to leave this on a live site??
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Orstio on September 24, 2006, 01:03:04 PM
No, that's the fix.
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: TheGecko on September 24, 2006, 01:05:38 PM
Many thanks, very much appreciated.
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: ssoltz on September 25, 2006, 05:37:26 PM
I noticed that you split this topic....does this mean that this fix won't work for me? Is this a J! only fix?

Thanks,
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Orstio on September 25, 2006, 05:54:36 PM
I split this because despite the statement:

QuoteI have an identical problem.

The actual problem is nothing at all like yours.
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: ssoltz on September 26, 2006, 02:20:41 PM
Orstio,

I figured that might be it.

I responded to your PM...

Thanks,
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Chriss Cohn on December 16, 2006, 07:32:26 PM
Hello, i used this code to solving my Problem with Joomla SEF and SMF 1.1 Final.
But: Now the smileys won't work anymore and still Errors showing in Internet Explorer.
Please Help, the only thing i want is a full functionally Forum with the Joomla SEF like it was in 1.1RC3 - why after the upgrade to 1.1 Final, joomla SEF and the bridge/Forum won't work anymore?
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Chriss Cohn on December 17, 2006, 09:19:23 AM
Push....
Orstio my Master, please reply to my post....
I Just want to know, why after the upgrade to 1.1 Final this "combination" won't work correct anymore.... :'( :'( :'(
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Orstio on December 17, 2006, 09:35:19 AM
URL?
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Chriss Cohn on December 17, 2006, 10:56:30 AM
http://www.it-info.org

But i should say that i undo that changes, so my Members could use the BBC again....
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Orstio on December 17, 2006, 11:03:37 AM
QuoteBut i should say that i undo that changes, so my Members could use the BBC again....

I can't help fix what is not broken.
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Chriss Cohn on December 17, 2006, 11:11:35 AM
Quote from: Orstio on December 17, 2006, 11:03:37 AM
QuoteBut i should say that i undo that changes, so my Members could use the BBC again....

I can't help fix what is not broken.
Well, the preview function is broken....

If i apply that code showed here in that topic, the preview function works - but the bbc won't do.

Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Orstio on December 17, 2006, 11:15:09 AM
And the solution for the preview is already here.  If you apply that, then I will take a look at your other problem, and suggest the solution for your other problem.
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Chriss Cohn on December 17, 2006, 11:16:46 AM
Ok, so i re-apply the code in my smf.php
Please wait e few minutes..... i'll post when i'm finish...
Thank you!

Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Chriss Cohn on December 17, 2006, 11:19:40 AM
Ok finished......
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Orstio on December 17, 2006, 11:28:13 AM
In your default theme, this should be on line 76:

sendXMLDocument(smf_scripturl + "?action=post2" + (current_board ? ";board=" + current_board : "") + (make_poll ? ";poll" : "") + ";preview;xml", x.join("&"), onDocSent);


Change it to this:

sendXMLDocument(smf_scripturl + "?action=post2" + (current_board ? "/board," + current_board : "") + (make_poll ? "/poll,poll" : "") + "/preview,preview/xml,xml", x.join("&"), onDocSent);
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Chriss Cohn on December 17, 2006, 11:47:17 AM
Quote from: Orstio on December 17, 2006, 11:28:13 AM
In your default theme, this should be on line 76:
Which file?  ;D
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Orstio on December 17, 2006, 11:52:07 AM
Sorry, Post.template.php.

Also, when you edited smf.php, you found and changed too many lines.  You should have changed:

$mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'. $settings['theme_url']. '";
var smf_images_url = "'. $settings['images_url']. '";
             var smf_scripturl = "'. un_htmlspecialchars(mambo_smf_url($scripturl)) . '";
var smf_session_id = "'. $context['session_id'] . '";
// ]]></script>' );


Not:

$mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript" src="'. $settings['default_theme_url']. '/script.js?rc3"></script>' );
$mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'. $settings['theme_url']. '";
var smf_images_url = "'. $settings['images_url']. '";
             var smf_scripturl = "'. un_htmlspecialchars(mambo_smf_url($scripturl)) . '";
var smf_session_id = "'. $context['session_id'] . '";
// ]]></script>' );
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Chriss Cohn on December 17, 2006, 12:05:31 PM
so the line $mainframe->addCustomHeadTag( '<script language="JavaScript" type="text/javascript" src="'. $settings['default_theme_url']. '/script.js?rc3"></script>' );
is missing, right?
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Orstio on December 17, 2006, 12:09:00 PM
Correct.
Title: Re: SEF URLs again - preview post problem - AGAIN! HELP!
Post by: Chriss Cohn on December 17, 2006, 12:10:48 PM
Ok, i add the missing line, changed my Post.template.php as you say and...
EVERYTHING WORKS!!!!!!!!!!!  :D :D :D :D :D :D
THANK YOU VERY MUCH FOR YOUR TIME AND YOUR KNOWLEDGE!!!
;) ;)
8) 8) 8)