Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Joomla Bridge Support => Topic started by: sektor on August 06, 2007, 10:06:36 PM

Title: Multilanguage & SMF bridge
Post by: sektor on August 06, 2007, 10:06:36 PM
Hello,

I also posted this on the joomla.org forums. I am not sure how to track the problem down, but its possible that this is an bridge issue so I post here too.

As soon as i started using Joom!Fish, the Quote system in SMF does not work.
When i click on the "Quote" button to quote a post, the "Loading..." AJAX message from SMF appears on the top, but then nothing happens.

The problem goes away when i unpublish the Multi lingual abstraction layer bot.

Any ideas?
Title: Re: Joom!Fish & SMF bridge
Post by: sektor on August 08, 2007, 07:46:17 PM
Anyone  ???
Title: Re: Joom!Fish & SMF bridge
Post by: sektor on August 14, 2007, 07:47:30 PM
someone? :)
Title: Re: Joom!Fish & SMF bridge
Post by: sektor on August 14, 2007, 07:56:58 PM
Completely disabling AJAX on smf would also do.

But i can't find a way to do that
Title: Re: Joom!Fish & SMF bridge
Post by: sektor on August 14, 2007, 08:22:11 PM
Ok here's the problem:


<a class="actions" href="http://www.**************.com/component/option,com_smf/Itemid,168/action,post/quote,212455/topic,13080.0/num_replies,4/sesc,d3a60f9a5460f7d045ee85a882768ded/lang,el" onclick="doQuote(212455, 'd3a60f9a5460f7d045ee85a882768ded'); return false;">


That's the link that is being generated by SMF which calls the ajax function. The /lang,el should be there.
I'm not a good coder. How could i remove that on SMF?
Title: Re: Joom!Fish & SMF bridge
Post by: sektor on August 14, 2007, 08:27:00 PM
I added this on top of the mambot code:


if($_GET['option'] != "com_smf"){

[mambot]


}

but it still gets loaded on the bridge
Title: Re: Joom!Fish & SMF bridge
Post by: Orstio on August 14, 2007, 09:30:46 PM
The lang,el is added by Joomla, not by SMF.
Title: Re: Joom!Fish & SMF bridge
Post by: sektor on August 14, 2007, 09:32:31 PM
The lang,el is added by Joomla, not by SMF.

Indeed

By Joomlfish's mambot.

So i have discovered an incompatibliity between the bridge and joomfish :D
Title: Re: Joom!Fish & SMF bridge
Post by: Orstio on August 14, 2007, 09:42:40 PM
The lang,el is added by Joomla, not by SMF.

Indeed

By Joomlfish's mambot.

So i have discovered an incompatibliity between the bridge and joomfish :D

No, it's in the Joomla core:

http://forum.joomla.org/index.php/topic,118039.0.html
Title: Re: Joom!Fish & SMF bridge
Post by: sektor on August 14, 2007, 09:49:52 PM
The lang,el is added by Joomla, not by SMF.

Indeed

By Joomlfish's mambot.

So i have discovered an incompatibliity between the bridge and joomfish :D

No, it's in the Joomla core:

http://forum.joomla.org/index.php/topic,118039.0.html

Yup. Thanx.

Though that still does not fix it. The URL generated is still:

http://www.xxxxxxxxx.com/component/option,com_smf/Itemid,168/action,post/quote,212609/topic,8174.180/num_replies,186/sesc,d3a60f9a5460f7d045ee85a882768ded/lang,el

I'm impressed that i'm the first one to mention this.
Title: Re: Multilanguage & SMF bridge
Post by: sektor on August 14, 2007, 09:53:59 PM
Orstrio,

Is this a bridge issue as well?
Doesn't the bridge convert SMF's URLs to match Joomla's?
Title: Re: Multilanguage & SMF bridge
Post by: Orstio on August 15, 2007, 05:58:57 AM
No, the bridge won't add the lang=xx on the end like that.
Title: Re: Multilanguage & SMF bridge
Post by: sektor on August 15, 2007, 01:55:38 PM
Ok i opened a thread on joomla.org about this:

http://forum.joomla.org/index.php/topic,202041.0.html
Title: Re: Multilanguage & SMF bridge
Post by: sektor on August 15, 2007, 07:36:28 PM
I can't find a solution for this, and i have no replies on the other thread.

Any help would be greatly appreciated.
Title: Re: Multilanguage & SMF bridge
Post by: sektor on August 17, 2007, 03:07:23 PM
Ok i have some more info about this.

The problem is NOT /lang,el...


Look what happens when i turn off Quick Reply...


The url that takes me when i quote a message is:

http://www.xxxxxx.com/component/option,com_smf/Itemid,168/lang,el?action=post;quote=215174;topic=7372.15;sesc=98d1a1e26f2db4204cdbe8e3d30984f7

Which is ofcourse incorrect...

Any ideas?
Title: Re: Multilanguage & SMF bridge
Post by: sektor on August 27, 2007, 09:53:57 PM
Ok i have some more info about this.

The problem is NOT /lang,el...


Look what happens when i turn off Quick Reply...


The url that takes me when i quote a message is:

Code: [Select]
http://www.xxxxxx.com/component/option,com_smf/Itemid,168/lang,el?action=post;quote=215174;topic=7372.15;sesc=98d1a1e26f2db4204cdbe8e3d30984f7
Which is ofcourse incorrect...

Any ideas?


I am increadibly close to resolve this, but i don't know how.

This is the URL generated when quoting a message:


Code: [Select]
component/option,com_smf/Itemid,168/lang,el?action=post;quote=221473;topic=13462.240;sesc=e9b017d27781da20c18c6982e78f325c
This is the URL that SHOULD be generated:


Code: [Select]
component/option,com_smf/lang,el/Itemid,168?action=post;quote=221473;topic=13462.240;sesc=e9b017d27781da20c18c6982e78f325c
Or just to completely remove the language option...

Title: Re: Multilanguage & SMF bridge
Post by: sektor on August 27, 2007, 09:58:44 PM
I guess these lines of code (includes/sef.php) need some modification?


Code: [Select]
//multilingual code url support
if( $mosConfig_sef && ($mosConfig_mbf_content || $mosConfig_multilingual_support) && $string!='index.php' && !eregi("^(([^:/?#]+):)",$string) && !strcasecmp(substr($string,0,9),'index.php') && !eregi('lang=', $string) ) {
if (strpos($string, '#')===false){
$string.= '&amp;lang=' . $iso_client_lang;
} else {
$string = substr($string,0,strpos($string, '#')) . '&amp;lang=' . $iso_client_lang . (strpos($string, '#')===false ? '' : substr($string,strpos($string, '#'),strlen($string)));
}
}
Title: Re: Multilanguage & SMF bridge
Post by: Orstio on August 27, 2007, 10:24:49 PM
Quote
The url that takes me when i quote a message is:


Code:
http://www.xxxxxx.com/component/option,com_smf/Itemid,168/lang,el?action=post;quote=215174;topic=7372.15;sesc=98d1a1e26f2db4204cdbe8e3d30984f7
Which is ofcourse incorrect...

There should be no question mark before the word "action".

If you go to your SMF admin panel, and check your Server Settings, what is the value for "Forum URL" ?
Title: Re: Multilanguage & SMF bridge
Post by: sektor on August 27, 2007, 10:33:55 PM
Quote
The url that takes me when i quote a message is:


Code:
http://www.xxxxxx.com/component/option,com_smf/Itemid,168/lang,el?action=post;quote=215174;topic=7372.15;sesc=98d1a1e26f2db4204cdbe8e3d30984f7
Which is ofcourse incorrect...

There should be no question mark before the word "action".

If you go to your SMF admin panel, and check your Server Settings, what is the value for "Forum URL" ?

That would be

http://www.xxxxxxxxxxx.com/smf
Title: Re: Multilanguage & SMF bridge
Post by: Orstio on August 27, 2007, 10:41:35 PM
OK, I see the problem.

I think this will probably help you:

http://www.simplemachines.org/community/index.php?topic=130728.msg835616#msg835616

Make a backup of the file before you modify it.
Title: Re: Multilanguage & SMF bridge
Post by: sektor on August 27, 2007, 10:59:25 PM
OK, I see the problem.

I think this will probably help you:

http://www.simplemachines.org/community/index.php?topic=130728.msg835616#msg835616

Make a backup of the file before you modify it.

I edited xml_topic.js and changed the functions as you said.

But nothing changed on my forum  :(
Title: Re: Multilanguage & SMF bridge
Post by: Orstio on August 27, 2007, 11:01:10 PM
Your local computer may have cached the js files.  It worked for me fine after you changed it.
Title: Re: Multilanguage & SMF bridge
Post by: sektor on August 27, 2007, 11:03:23 PM
Your local computer may have cached the js files.  It worked for me fine after you changed it.

Yes indeed!!!!!!!!!!
Thanx! :) :) :)

Title: Re: Multilanguage & SMF bridge
Post by: sektor on September 07, 2007, 11:11:55 AM
I noticed that inline editing of post also does not work.

Anyone fixed the code for that?