Re: SEF URLs again - preview post problem - AGAIN! HELP!

Started by TheGecko, September 23, 2006, 10:46:06 PM

Previous topic - Next topic

TheGecko

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)




Orstio

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>' );

TheGecko

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??


TheGecko


ssoltz

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,
Steve Soltz
SSK Creatives, Inc.

Orstio

I split this because despite the statement:

QuoteI have an identical problem.

The actual problem is nothing at all like yours.

ssoltz

Orstio,

I figured that might be it.

I responded to your PM...

Thanks,
Steve Soltz
SSK Creatives, Inc.

Chriss Cohn

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?

Chriss Cohn

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.... :'( :'( :'(


Chriss Cohn

http://www.it-info.org

But i should say that i undo that changes, so my Members could use the BBC again....

Orstio

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.

Chriss Cohn

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.


Orstio

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.

Chriss Cohn

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!


Chriss Cohn


Orstio

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

Advertisement: