Bug with opening popup?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Sep 17, 2013 8:10 pm
Reply with quote
Report this post
Hi,

I found this problem on my testing website www.climbe.cal.pl and also on you demo site. On blog if you click any article with ilustrations and the site will move you to this article, the ilustration is not working properly. I mean, the popup windows sometimes is opening in popup and sometimes just like link to picture.

If you click the same ilustration many times you will see what is going on. Once it is popup window and another time it is simply link opening the picture.

Check this:

If you click you will get popup

http://demo.gavick.com/joomla25/storebo ... ise-future

and another time it is a link like this:

http://demo.gavick.com/joomla25/storebo ... c10_XL.jpg


How to repair this problem? I wish to have only popup windows.

Thanks
User avatar
Expert Boarder

GK User
Thu Sep 19, 2013 4:00 pm
Reply with quote
Report this post
Hi,

Do you have enabled the scripts compression in the template settings? If yes - after disabling it the problem still appears?
User avatar
Administrator

GK User
Thu Sep 19, 2013 6:34 pm
Reply with quote
Report this post
Yes, I have disabled scripts compression and the problem is still here. The same problem is in your demo site. Secon click on picture switching of popup.
User avatar
Expert Boarder

GK User
Thu Sep 19, 2013 6:52 pm
Reply with quote
Report this post
It is interesting, because I've a local installation of quickstart without compression and the modal popup is working fine in the same article - could you provide me an URL to your website? Most probably you have some JS conflict.
User avatar
Administrator

GK User
Fri Sep 20, 2013 10:20 am
Reply with quote
Report this post
My testing website: www.climbe.cal.pl
User avatar
Expert Boarder

GK User
Fri Sep 20, 2013 1:38 pm
Reply with quote
Report this post
Please try to comment out this fragment in the gk.scripts.js file:

Code: Select all
window.addEvent('touchstart', function(e) {
   if(e.target.hasClass('modal') || e.target.hasClass('ask-a-question')) {
      window.location.href = e.target.getProperty('href');
   }
});
User avatar
Administrator

GK User
Sat Sep 21, 2013 2:07 pm
Reply with quote
Report this post
Sorry Dziurek, but I dont know what to do with this code? I have to put it somewhere?
User avatar
Expert Boarder

GK User
Sat Sep 21, 2013 2:39 pm
Reply with quote
Report this post
No, You have to comment it out in the gk.scripts.js file - please change:

Code: Select all
window.addEvent('touchstart', function(e) {
   if(e.target.hasClass('modal') || e.target.hasClass('ask-a-question')) {
      window.location.href = e.target.getProperty('href');
   }
});


to:

Code: Select all
//window.addEvent('touchstart', function(e) {
//   if(e.target.hasClass('modal') || e.target.hasClass('ask-a-question')) {
//      window.location.href = e.target.getProperty('href');
//   }
//});
User avatar
Administrator

GK User
Sat Sep 21, 2013 4:00 pm
Reply with quote
Report this post
Do You remember where I will find this file? Actually, I am looking for this file on server.
User avatar
Expert Boarder

GK User
Sun Sep 22, 2013 12:22 pm
Reply with quote
Report this post
In the template directory there is path: js/gk.scripts.js
User avatar
Administrator

GK User
Mon Sep 23, 2013 3:48 pm
Reply with quote
Report this post
I replace this code and the problem is still there :( Popup is working only once.

Any ideas?

thanks
User avatar
Expert Boarder

GK User
Tue Sep 24, 2013 6:52 am
Reply with quote
Report this post
In this case please provide me an FTP access to your website, and please reenable the popups, because as I see now the links to popups are probably disabled (or I cannot find again a page with it).
User avatar
Administrator

GK User
Tue Sep 24, 2013 7:49 am
Reply with quote
Report this post
I sent You private message.
User avatar
Expert Boarder

GK User
Wed Nov 13, 2013 12:12 pm
Reply with quote
Report this post
Hi

I am having the same issue and tried to remark the code already.

Can you please indicate how or if the issue has been resolved?

Thanks a lot.

Stephen
User avatar
Fresh Boarder

GK User
Wed Nov 13, 2013 5:48 pm
Reply with quote
Report this post
Please try to replace your js/gk.scripts.js file with this one: http://www.climbe.cal.pl/templates/gk_e ... scripts.js
User avatar
Administrator

GK User
Thu Nov 14, 2013 9:28 am
Reply with quote
Report this post
Hi M8

Thanks for the response but it is still happening from my end.....

www.dartalprovidenza.org


dziudek wrote:Please try to replace your js/gk.scripts.js file with this one: http://www.climbe.cal.pl/templates/gk_e ... scripts.js
User avatar
Fresh Boarder

GK User
Thu Nov 14, 2013 12:38 pm
Reply with quote
Report this post
It is not working, because you didn't edited the file properly.

Please remove this fragment from the gk.script.js file:

Code: Select all
window.addEvent('load', function() {
   setTimeout(function() {
      document.getElements('.modal').removeEvents();
      document.getElements('.ask-a-question').removeEvents();
   }, 2000);
});
User avatar
Administrator

GK User
Thu Nov 14, 2013 1:02 pm
Reply with quote
Report this post
Hi

I was working offline at that point not to risk website.

But in the mean time replaced the file with the one you sent me and the problem got worse as now it is not poping up any more.
User avatar
Fresh Boarder

GK User
Thu Nov 14, 2013 2:11 pm
Reply with quote
Report this post
So please revert the file and remove the mentioned fragment.
User avatar
Administrator

GK User
Thu Nov 14, 2013 2:52 pm
Reply with quote
Report this post
Wow it worked.... I already did it before but honesty didn't work...... just happy now it is working..

Can I trouble you for another issue I have with the news Blog.....When I click news from the newshowpro plugin in the front page the news appear with this breadcrumb

HOME/BLOG/CATEGORIES/NEW COLLECTIONS/

When in fact both categories and menus point to just

HOME/NEWS

In fact from menu they appear correctly....... Do you have an explanation for this mistery.

Thanks a lot for your help
User avatar
Fresh Boarder

GK User
Thu Nov 14, 2013 4:00 pm
Reply with quote
Report this post
For this case please open a separate topic.
User avatar
Administrator


cron