Video Gallery

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
Sun Feb 21, 2016 9:24 am
Reply with quote
Report this post
Hello guys,
I need some help
How can i make front tittle and photo miniature go directly to the article inside NSP GK5 module?
Im doing it on the video gallery mode.
Im using it to put articles instead of videos.
Thanks,
http://www.lanser1.cyangraf.es/index.php/hub
dudas gavick11.jpg
User avatar
Senior Boarder

GK User
Mon Feb 22, 2016 9:49 pm
Reply with quote
Report this post
Hello,

In the following file: http://www.lanser1.cyangraf.es/modules/ ... ootools.js

Please replace fragment:

Code: Select all
this.smallarea.getElements('.gkItem').each(function(item) {
   item.addEvent('click', function(e) {
   if(e) e.stop();


with:

Code: Select all
this.smallarea.getElements('.gkItem').each(function(item) {
    item.addEvent('click', function(e) {
    //if(e) e.stop();
User avatar
Moderator

GK User
Tue Feb 23, 2016 11:03 am
Reply with quote
Report this post
It works with the lead text but it doesn´t with the photo miniature.
Could you help me again, please?
Thank you so much
User avatar
Senior Boarder

GK User
Tue Feb 23, 2016 1:46 pm
Reply with quote
Report this post
You're right - please add the following line:

Code: Select all
window.location.href = item.getElement('h3 a').getProperty('href');


after previously commented out fragment:

Code: Select all
//if(e) e.stop();
User avatar
Moderator

GK User
Tue Feb 23, 2016 5:22 pm
Reply with quote
Report this post
I'm not working.
It does not go to items such as lead text
Could you help me please?
Thanks
User avatar
Senior Boarder

GK User
Tue Feb 23, 2016 5:49 pm
Reply with quote
Report this post
As I see you didn't added my code so it cannot work properly.
User avatar
Moderator

GK User
Tue Feb 23, 2016 6:22 pm
Reply with quote
Report this post
Now added the code and does not work
Why?
Thanks
User avatar
Senior Boarder

GK User
Wed Feb 24, 2016 11:47 am
Reply with quote
Report this post
I still do not see my code in the mentioned file - are you sure that you are editing the proper file?
User avatar
Moderator

GK User
Wed Feb 24, 2016 4:19 pm
Reply with quote
Report this post
I put the code and malfunction.
Automatically goes to the article without clicking
Which may be going on with it?
Sorry
Thanks
User avatar
Senior Boarder

GK User
Wed Feb 24, 2016 5:30 pm
Reply with quote
Report this post
Please replace line:

Code: Select all
window.location.href = item.getElement('h3 a').getProperty('href');


with:

Code: Select all
if(e) {
    window.location.href = item.getElement('h3 a').getProperty('href');
}


then the redirect will work only on the user click.
User avatar
Moderator

GK User
Wed Feb 24, 2016 6:01 pm
Reply with quote
Report this post
Perfect.
Now it works correctly.
Thank you so much for your collaboration.
User avatar
Senior Boarder

GK User
Sat Apr 09, 2016 4:15 pm
Reply with quote
Report this post
Hello again.
After updating the module (mod_news_pro_gk5), the solution you gave me don't works anymore. Now i'm working in joomla 3.5.1
How I can fix it again?
Thanks again

http://www.lanser1.cyangraf.es/index.php/lanser/the-hub
User avatar
Senior Boarder

GK User
Wed Apr 13, 2016 11:47 am
Reply with quote
Report this post
Can you help me please?
Thanks
User avatar
Senior Boarder


cron