Problem with a logo in a multilanguage website

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
Tue Aug 20, 2013 10:12 am
Reply with quote
Report this post
Hello,

Here is the website: http://www.guillenphoto.com/cms/en
If you click the logo located on the top left of the page, you are directed to the french version of the website.
I guess this is a problem with the template.

Would help to find a solution?
Thanks
Regards
User avatar
Expert Boarder

GK User
Wed Aug 21, 2013 7:43 am
Reply with quote
Report this post
I don't see the language prefix in URL for the default website, could you disable SEF URL's for tests ? Logo URL redirect to the main page, http://www.guillenphoto.com/cms/ where probably the default english is set to french.
User avatar
Platinum Boarder

GK User
Wed Aug 21, 2013 7:58 am
Reply with quote
Report this post
Hello,

Thank you very for your reply and your time.
I do not want to disable the feature in my production site. I have people viewing it. I do not want to disturb them.

I created a test website to show the problem.
URL of the test website: http://www.guillenphoto.com/cmstest/en
SH404SEF is enable with language prefix activated (you can see fr or en in the URLs).
The default language is French.

I have the same problem. If you click on the logo the french page is displayed.

Regards
User avatar
Expert Boarder

GK User
Thu Aug 22, 2013 9:16 pm
Reply with quote
Report this post
SH404SEF is enable with language prefix activated (you can see fr or en in the URLs).


I've asked to disable this extension and SEF URL's for test, could you make this changes ?
User avatar
Platinum Boarder

GK User
Fri Aug 23, 2013 5:46 am
Reply with quote
Report this post
It is done.
I disabled SH404SEF.
I enabled the plugin System Language Filter.

And...it works.
Do you think that it is a problem with SH404SEF? Do I have to report the problem to Anythingdigital?

Let me know
Regards
User avatar
Expert Boarder

GK User
Sun Aug 25, 2013 7:56 am
Reply with quote
Report this post
Hello,

If you confirm that it is problem with SH404SEF, please would you tell me how to disable the link on the logo?
Right now, waiting for a solution, I prefer not to have the link active.

Thanks for your reply
Regards
User avatar
Expert Boarder

GK User
Mon Aug 26, 2013 8:22 am
Reply with quote
Report this post
Do you think that it is a problem with SH404SEF?


Yes I think so. To remove the link your need to modify file template/layout/blocks/logo.php

Please just find this code if you use CSS logo :

<a href="<?php echo JURI::root(); ?>" id="gkLogo" class="cssLogo"><?php echo $this->API->get('logo_text', ''); ?></a>


and change href attribute for link element.
User avatar
Platinum Boarder

GK User
Tue Aug 27, 2013 8:28 pm
Reply with quote
Report this post
Thank you.
I disable the link on the logo. It works.
You can close the case. I am goint to deposit a case to anythingdigital.

regards
User avatar
Expert Boarder

GK User
Wed Aug 28, 2013 8:27 am
Reply with quote
Report this post
Please let us know when you get any help from SH404SEF developers, this is very popular extension and as we can see cause some problems with our template, hope they find some solution for this.
User avatar
Platinum Boarder

GK User
Wed Aug 28, 2013 8:30 am
Reply with quote
Report this post
Do you think that it could be a problem of both of you?
In this case, what should I do?

Regards
User avatar
Expert Boarder

GK User
Fri Aug 30, 2013 10:05 am
Reply with quote
Report this post
No, our templates work 100% fine with default Joomla! language switcher, the SH404SEF probably overwrite language redirections and that's the source of problems.
User avatar
Platinum Boarder

GK User
Tue Sep 03, 2013 8:47 am
Reply with quote
Report this post
Hello,

Finally the problem was in the template Creativity.
The team of AnythingDigital spent a lot of time to find out the problem. They gave me today a solution which works. All the modifications are inside the file logo.php.

Here is what they say:
"Sorry for delay I had to investigate this with our developer, the code gavick uses on the template is not fully compatible when using a SEF extension like sh404sef".

Here is the modified source for logo.php: (all the modifications are marked before by AGu).
Maybe you can direct the message to your development team.

<?php

// No direct access.
defined('_JEXEC') or die;
$logo_image = $this->API->get('logo_image', '');

if(($logo_image == '') || ($this->API->get('logo_type', '') == 'css')) {
$logo_image = $this->API->URLtemplate() . '/images/logo.png';
} else {
$logo_image = $this->API->URLbase() . $logo_image;
}

$logo_text = $this->API->get('logo_text', '');
$logo_slogan = $this->API->get('logo_slogan', '');

?>


<?php
// AGU: 02/09/2013
$languages = JLanguageHelper::getLanguages('lang_code');
$langCode = $languages[JFactory::getLanguage()->getTag()]->sef;
// AGU: end
?>

<?php if ($this->API->get('logo_type', 'image')!=='none'): ?>
<?php if($this->API->get('logo_type', 'image') == 'css') : ?>
<h1 class="gkLogo">
<!-- AGU: 09/02/2103 -->
<a href="<?php echo JRoute::_('index.php?Itemid=' . JFactory::getApplication()->getMenu()->getDefault(JFactory::getLanguage()->getTag())->id);?>" id="gkLogo" class="cssLogo"><?php echo $this->API->get('logo_text', ''); ?></a>
</h1>
<?php elseif($this->API->get('logo_type', 'image')=='text') : ?>
<h1 class="gkLogo">
<!-- AGU: 09/02/2103 -->
<a href="<?php echo JRoute::_('index.php?Itemid=' . JFactory::getApplication()->getMenu()->getDefault(JFactory::getLanguage()->getTag())->id);?>" id="gkLogo" class="text">
<span><?php echo $this->API->get('logo_text', ''); ?></span>
<?php if($this->API->get('logo_slogan', '') != '') : ?>
<small class="gkLogoSlogan"><?php echo $this->API->get('logo_slogan', ''); ?></small>
<?php endif; ?>
</a>
</h1>
<?php elseif($this->API->get('logo_type', 'image')=='image') : ?>
<h1 class="gkLogo">
<!-- AGU: 09/02/2103 -->
<a href="<?php echo JRoute::_('index.php?Itemid=' . JFactory::getApplication()->getMenu()->getDefault(JFactory::getLanguage()->getTag())->id);?>" id="gkLogo">
<img src="<?php echo $logo_image; ?>" alt="<?php echo $this->API->getPageName(); ?>" />
</a>
</h1>
<?php endif; ?>
<?php endif; ?>
User avatar
Expert Boarder

GK User
Thu Sep 05, 2013 9:09 am
Reply with quote
Report this post
Sorry but this is solution dedicated to their extension by default our code is working in 100% properly with default Joomla! language switcher.
User avatar
Platinum Boarder

GK User
Thu Sep 05, 2013 9:41 am
Reply with quote
Report this post
Maybe you are right but it works for us.

Maybe Gavick templates are not compatible with SH404SEF in Joomla 2.5. It could be a way for Gavick to look for a solution for the future. This a problem for multilanguage websites running with Gavick and SH404SEF.
Maybe you can submit the solution to your developpment team.

regards
User avatar
Expert Boarder

GK User
Fri Sep 06, 2013 9:17 am
Reply with quote
Report this post
Ok thanks for sharing this solution we will look at this issue closer.
User avatar
Platinum Boarder


cron