news show pro gk4 v1.3 language routing bug

Free responsive Joomla 2.5 and 3.x module to present your content with easy and intuitive way.
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Wed Mar 23, 2011 10:48 pm
Hi there,

first of all I would like to say thank you for a fantastic extension! I tested a lot of news modules, but yours is outstanding when it comes to settings and displaying news in a small spot. Nice work!

Language Bug:
I am running Joomla 1.6.1 with active language switcher. When I assign module to language german and I follow article readmore, I can see my article (this article is assigned language "All"). I copied module and assigned it to language english. When I change language using Joomla 1.6.1 build in language switcher I see module that is assigned to english language. When I try to follow article readmore link I either get a blank site (wrong routing) or page not found with Module Links.
User avatar
Fresh Boarder

GK User
Thu Mar 24, 2011 12:41 am
Hi

Thank you for your nice words ;)

Unfortunately, NSP GK4 doesn't have multi language support.
I suppose you are using some extension for this feature on your website, like for example, Joomfish.
Maybe in future release we provide some plugin that support this 3th party component.

Cheers
User avatar
Platinum Boarder

GK User
Thu Mar 24, 2011 1:04 am
Hallo Seichinha,

mhhh...this is not a 3rd party extension...this is Joomla 1.6.x core! Please read language switcher tutorial: http://docs.joomla.org/Language_Switche ... Joomla_1.6

there is a subfix in URL "en" or "de" depending on language. Therefore your module is providing wrong linking with Joomla 1.6.x. I guess. This problem has been addressed with other developers (other applications) also and they came up with a fix that respects language subfix. Since I won't be the only one using Joomlas build in language switcher, you might won't to think about investigating this issue. I know your extension is free and therefore I am happy that I can give it a try. Your extension is very professional and I will look around your service offers more often...

have a look at code that takes care of correct ajax calls in another application. Maybe you can use this hint in order to fix your news extension so it will work with active language switcher in Joomla 1.6.x:
Code: Select all
      # if host have wwww, but mosConfig doesn't

      //if (substr($_SERVER['HTTP_HOST'], 0, 4) == "www.") {

      if((substr_count(@$_SERVER['HTTP_HOST'], "www.") != 0) && (substr_count($reqURI, "www.") == 0))

      {

         $reqURI = str_replace("://", "://www.", $reqURI);      

      } else if((substr_count(@$_SERVER['HTTP_HOST'], "www.") == 0) && (substr_count($reqURI, "www.") != 0))

      {

         // host do not have 'www' but mosConfig does

         $reqURI = str_replace("www.", "", $reqURI);

      }

   

      /* Check for HTTPS */

      if(isset($HTTP_SERVER_VARS))

      {

         if(isset($HTTP_SERVER_VARS['HTTPS']))

         {

            if($HTTP_SERVER_VARS['HTTPS'] == "ON" )

            {

               $reqURI = str_replace("http://", "https://", $reqURI);

            }

         }

      }

      $siteType   = XXXGetJoomlaVersion() == '1.6' ? '1.6' : '1.5';

      

      //fix the uri if languagefilter plugin is enabled in J1.6

      if($siteType=='1.6'){

         $reqURI = $this->_fixLangSwitcher($reqURI);

      }

      $tokenStr = JUtility::getToken();

      $html =

"<script type='text/javascript'>

/*<![CDATA[*/

   var jax_live_site = '$reqURI';

   var jax_site_type = '$siteType';

   var jax_token_var = '$tokenStr';

/*]]>*/

</script>";

      $html .= "<script type="text/javascript" src="$this->_livePath/ajax_" . XXX_SYSTEM . ".js"></script>n";

      return $this->_fixHTTPS($html);

   }


Joomfish is not ready for Joomla 1.6 and devs are thinking about a new structure which will 1. work stand alone 2. support existing language switcher in Joomla 1.6.x. I will stay with Joomlas build in language switcher because Joomla will probably never go out of "business".

Greetings from Germany
User avatar
Fresh Boarder

GK User
Fri Mar 25, 2011 2:44 am
never mind...I needed to have all my categories to be lang "All"...otherwise when browsing english site news module can't access an article that is assigned to a category that is assigned to german language...

now I need a module which offers a way to assign an article to multiple categories. Otherwise I can't assign an article to category_a_english and category_a_german...only way this would work is to duplicate all articles and assign to different languages, which I won't do...unfortunatly multi cat is not available for Joomla 1.6 yet...ok

sorry for confusion :)
User avatar
Fresh Boarder


cron