VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

FirstVisitOfDay check fails if lang is not en-GB
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: FirstVisitOfDay check fails if lang is not en-GB

FirstVisitOfDay check fails if lang is not en-GB 12 May 2015 09:24 #6689

First of all I want to thank the developers for this awesome template.

My problem is that when I change the default language of the site, every link points to the starting page, where you see the website logo, which you are supposed to see once per session. I either have to switch back to en-GB or disable the starting page to revert to normal behavior. I feel the translation interferes with this part of index.php but I am too noob a programmer to figure out a solution:

 
$revisit = false;
if(isset($_COOKIE['FirstVisitOfDay'])) {
$revisit = true;
} else {
setcookie("FirstVisitOfDay","1",time() + 3600);
$revisit = false;
}
 


Any suggestions please?
Kind regards,
Uygar
Last Edit: 12 May 2015 09:27 by nikolaos.

  • Posts:2
  • nikolaos
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: FirstVisitOfDay check fails if lang is not en-GB 15 May 2015 03:57 #6715

I've checked this template with multilang site, but the starting page only display for the first page I visit not every link as you told.

Thank you!

joomfreak

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: FirstVisitOfDay check fails if lang is not en-GB 15 May 2015 10:31 #6716

Hi Nikolaos.
Do you mean that if default language is different than English, clicking on the starting page logo does nothing?
If so, the same problem happens to my bilingual site.

  • Posts:8
  • nick2011
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: FirstVisitOfDay check fails if lang is not en-GB 17 May 2015 02:41 #6718

Actually what happens in my case is, when I change the site language to Turkish, every menu item I click brings me to the intro page (the logo) before going back to the actual target of the menu item. No matter which link you click, the first thing you see is the intro page, again and again. I suppose the script that determines whether it is the first visit malfunctions due to a translation issue, or it may be a cookie related problem.

  • Posts:2
  • nikolaos
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: FirstVisitOfDay check fails if lang is not en-GB 18 May 2015 03:12 #6724

Can you please send me your website url and the super admin access via private message?

joomfrak

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.91 seconds
Thursday 28 March 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.