Forums

NeoJoomla - English => General discussions => Topic started by: Joem Moritz on December 07, 2006, 11:28:39 PM



Title: Joomfish Module
Post by: Joem Moritz on December 07, 2006, 11:28:39 PM
Hi,

I found your site only the other day, I like it a lot. I also like the products you offer; the neoreferences is especially nice.

I do have one question for you however, how did you set up the joomfish module to set the opacity on the inactive language and does this work for more than 2 langauges? I think this is a really nice effect and would like to use it on my own website.

Any tips would be great.

Thanks in advance.


Title: Re : Joomfish Module
Post by: Francois on December 08, 2006, 10:10:47 AM
Hi,

Thanks a lot for you comment about our products.

We modified the JoomFish module for set the opacity on the inactive language.  We will give an access to this module in few days. :)

I will inform you on this topic.

Have fun with NeoJoomla !

François


Title: Re : Joomfish Module
Post by: Joem Moritz on December 08, 2006, 05:45:43 PM
Cool, that would be great. Its a really nice effect and I'm sure a lot of people like myself would like something a bit different for their language selection.


Title: Re : Joomfish Module
Post by: Nicolas on December 13, 2006, 02:35:04 PM
Hi,

After some requests concerning the opacity effect in our site on the selection languages of the Joom!fish module (mod_jflanguageselection), here modification of the code which was brought.

The modification takes place on the level of the switch defining the type of posting (text, image, selectlist) in line 99

Code:
$href = JFModuleHTML::_createHRef ($language->iso);

if( isset($language->image) && $language->image!="" ) {
    $langImg = '/images/' .$language->image;
} else {
    $langImg = '/components/com_joomfish/images/flags/' .$language->iso .".gif";
}


Under the condition which determines whether an image east defines in the configuration of Joomfish and add this portion of code which cuts out the name of the file image in order to insert the suffix there “_active”.

Code:
$pos = strrpos( $language->image, ".");
$image = substr($language->image, 0, $pos).'_active'.substr($language->image, $pos);


Always under the condition replace the attribution of the image to the variable $langImg by this code which adds a checking between the current language of the site and the language defines in the loop.

Code:
$langImg = ($iso_client_lang == $language->iso) ? '/images/'.$image : '/images/' .$language->image;


What gives us :
Code:
$href = JFModuleHTML::_createHRef ($language->iso);

if( isset($language->image) && $language->image!="" ) {

    $pos = strrpos( $language->image, ".");
    $image = substr($language->image, 0, $pos).'_active'.substr($language->image, $pos);

    $langImg = ($iso_client_lang == $language->iso) ? '/images/'.$image : '/images/' .$language->image;
} else {
    $langImg = '/components/com_joomfish/images/flags/' .$language->iso .".gif";
}

 ;)