Author Topic: How to run SobiSEF with JoomFish  (Read 9732 times)

jlchavez and 1 Guest are viewing this topic.

Offline ah72

How to run SobiSEF with JoomFish
« on: 21. July 2009, 17:59:53 »
Start Update [29-Jan-2011]- by AboutUtila
I suggest those with SOBI2 v2.9.2.3 or later first read the posting in the Joom!fish Forum - Joomfish and Sobi2 - read first
End Update  [29-Jan-2011]
Hi all,

After the following code in file "/components/com_sobi2/plugins/sobisef/sobisef.class.php"

      // if we don't have Menu Itemid
      if ( strstr( $request, "component/" ) ) {
         $request = str_replace( "component/", null, $request );
      }



Add this:

      // if joomfish installed
      if(JFile::exists(JPATH_SITE .DS. 'components' .DS. 'com_joomfish' .DS. 'helpers' .DS. 'defines.php')) {
         
         // get language sefprefixes (defined in jfrouter plugin admin panel)
         $my_joomla_conf =& JFactory::getConfig();
         $my_jfish_params = $my_joomla_conf->getValue("jfrouter.params");
         $my_jfish_sefprefixes = $my_jfish_params->getValue("sefprefixes",array());
         
         foreach ($my_jfish_sefprefixes as $my_jfish_prefix) {
            list( , $my_jfish_prefix) = split("::",$my_jfish_prefix,2);
           
            // removing language sefprefix if it exists in requested url
            if ( strstr( $request, $my_jfish_prefix."/" ) ) {
               $request = str_replace( $my_jfish_prefix."/", null, $request );
               break;
            }
         }
      }



This modification concerns function revert() which parses url requests, and we need to remove any additional info in the url that is not stored in the db (sobisef table) before further processing. Same thing is done when joomla is installed in a subdirectory and for 'component/' (when no sobi2 menu exists) and for "index.php/" when mod_rewrite not in use (look few lines before this added code)

Notes:
1. You might need to do the following: "Extensions>Plugin Manager>" click on "System - Jfrouter" then hit save or apply (getValue("jfrouter.params") did not return the plugin parameters before doing so)

2. Don't translate sobi2 menu item alias, translate menu name only.


Appreciate any feedback
« Last Edit: 29. January 2011, 21:09:30 by aboututila »
Country: Algeria Algeria |  OS:  |  Browser: Firefox 3.0.11 Firefox 3.0.11 | View Profile Web Design @ z

Offline mar_tso

Re: How to run SobiSEF with JoomFish
« Reply #1 on: 25. August 2009, 12:19:52 »
Hi,
I've tried it and it works great - redirects to the proper FURL with the language prefex 
Just one thing: The Gzip compression on the page stopped working and I had to turn it off in the Global Configuration
Any suggestions?
I'll continue testing and will report back any other issues...

Great work btw. Thanks!
Country: Bulgaria Bulgaria |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.2 Firefox 3.5.2 | View Profile

Do you want continued ongoing development, new features and active support?
Please write a review or just vote for SOBI on JED.

Offline ah72

Re: How to run SobiSEF with JoomFish
« Reply #2 on: 30. August 2009, 19:47:11 »
Thanks mar_tso for testing and I'm glad it is working for you,

If I get news about Gzip compression issue I'll post,

Thanks again
Country: Algeria Algeria |  OS: Linux (Ubuntu 9.04 Jaunty) Linux (Ubuntu 9.04 Jaunty) |  Browser: Firefox 3.0.13 Firefox 3.0.13 | View Profile Web Design @ z

Offline ah72

Re: How to run SobiSEF with JoomFish
« Reply #3 on: 30. August 2009, 19:52:12 »
Just tested it on my localhost with gzip compression enabled and it is working for me!
Country: Algeria Algeria |  OS: Linux (Ubuntu 9.04 Jaunty) Linux (Ubuntu 9.04 Jaunty) |  Browser: Firefox 3.0.13 Firefox 3.0.13 | View Profile Web Design @ z

Offline K-oZ

Re: How to run SobiSEF with JoomFish
« Reply #4 on: 22. October 2009, 18:12:58 »
Hi, Thanks for this fix but I'm getting an issue, and I think it might be because of this:

Quote
2. Don't translate sobi2 menu item alias, translate menu name only.

The thing is that I don't understand what you mean with that. Can you please explain a bit more?

The problem that I'm getting is that it doesn't work when I click on any category when I change to any language other than English.

Thanks.
ch...ch...
Country: Ecuador Ecuador |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.3 Firefox 3.5.3 | View Profile Dejabu Interactive Media

Offline K-oZ

Re: How to run SobiSEF with JoomFish
« Reply #5 on: 22. October 2009, 18:37:57 »
OK, never mind, I found out where it was that you meant it (In the Joomfish "Joomla menu" translation section), now its working.
ch...ch...
Country: Ecuador Ecuador |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.3 Firefox 3.5.3 | View Profile Dejabu Interactive Media

Offline mar_tso

Re: How to run SobiSEF with JoomFish
« Reply #6 on: 22. November 2009, 14:25:11 »
Hi ah72,
I encountered a new problem. When I try to access the special links of sobi2 (index.php?option=com_sobi2&sobi2Task=usersListing) I'm getting this error message:

/components/com_joomfish/helpers/joomfish.class.php on line 252

Notice: Trying to get property of non-object in /components/com_joomfish/helpers/joomfish.class.php on line 252

Notice: Undefined index: in /components/com_joomfish/helpers/joomfish.class.php on line 268

Any ideas why and how can we fix it?
Thanks in advance
Country: Bulgaria Bulgaria |  OS: Windows XP Windows XP |  Browser: Firefox 3.5.5 Firefox 3.5.5 | View Profile

Offline davidmara

Re: How to run SobiSEF with JoomFish
« Reply #7 on: 18. December 2009, 12:41:19 »
If you guys have trouble with redirecting to index page, detail view dont open - stuck in categories page, add, search links dont work after you activate sobisef  than you most probably have problem of joomfish and sobisef which dont support joomfish language prefixes ( /en /de /cs ...etc...). If you apply code from this thread problem will be fixed. Ah72 great work man .... it really works !!!
« Last Edit: 18. December 2009, 12:59:00 by davidmara »
Country: Czech Republic Czech Republic |  OS: Windows Vista/Server 2008 Windows Vista/Server 2008 |  Browser: Firefox 3.5.6 Firefox 3.5.6 | View Profile

Offline Javier

Re: How to run SobiSEF with JoomFish
« Reply #8 on: 24. December 2009, 04:38:16 »
Hello,

I added the code in file:  "/components/com_sobi2/plugins/sobisef/sobisef.class.php"

but I do not understand the below line related to the plugin jfrouter:

"1. You might need to do the following: "Extensions>Plugin Manager>" click on "System - Jfrouter" then hit save or apply (getValue("jfrouter.params") did not return the plugin parameters before doing so)." ???

////////////////////////////////////////////////////////////////////////////////

If i put...

http://todotarifa.com/en/apartamentos/Tarifa-Paradise

...I go to Home.

If i put...

http://todotarifa.com/apartamentos/Tarifa-Paradise

...I go to Details View


My problem is with: /es/  /en/  /de/


can anyone help me? What do I need to do?

Thanks in advance

Best Regards

Javier.



Country: Spain Spain |  OS: Linux Linux |  Browser: Chrome 4.0.249.43 Chrome 4.0.249.43 | View Profile JHD Sistemas

Offline Javier

Re: How to run SobiSEF with JoomFish
« Reply #9 on: 24. December 2009, 14:52:27 »
Country: Spain Spain |  OS: Linux Linux |  Browser: Chrome 4.0.249.43 Chrome 4.0.249.43 | View Profile JHD Sistemas

Tags: