Hi,
Is it possible to make an Image Link Hover Module go to an external link instead of an article?
I am using Pianoforte template).
Many thanks for any advice
- judemac
-
- Free Templates / Extensions
- Saturday, 02 November 2013
- Subscribe via email
Hi Jude
In your modules modules mod_j51imagelinkhover.xml (../modules/mod_j51imagelinkhover/mod_j51imagelinkhover.xml) try replacing the following...
With..
This will add a URL field to your modules parameters in which you can set a URL to link to rather than selecting a menu item from a dropdown menu.
Ciarán
In your modules modules mod_j51imagelinkhover.xml (../modules/mod_j51imagelinkhover/mod_j51imagelinkhover.xml) try replacing the following...
<field name="hover_link" type="menuitem" default="45" label="Select a menu item" description="Select a menu item to link to." published="1"/>
With..
<field name="hover_link" type="text" default="" label="Set URL" description="Set the URL to link to." published="1"/>
This will add a URL field to your modules parameters in which you can set a URL to link to rather than selecting a menu item from a dropdown menu.
Ciarán
- more than a month ago
- Free Templates / Extensions
- # 1
Hi Ciarán,
I tried that and the field showed up, but still goes to a 404. I need a quick link out to Google, so no complicated URL just Google homepage.
Thanks
I tried that and the field showed up, but still goes to a 404. I need a quick link out to Google, so no complicated URL just Google homepage.
Thanks
- more than a month ago
- Free Templates / Extensions
- # 2
As well as the above edit to the XML also edit the following in your modules mod_j51imagelinkhover.php (../modules/mod_j51imagelinkhover/mod_j51imagelinkhover.php)
Replace every instance of...
With...
Ciarán
Replace every instance of...
<?php echo JRoute::_("index.php?Itemid={$hover_link}") ?>
With...
<?php echo $hover_link; ?>
Ciarán
- more than a month ago
- Free Templates / Extensions
- # 5
For info, I did as Ciaran said: change mod_j51imagelinkhover1.xml
then I had the 404 error.
So I opened mod_j51imagelinkhover.php
I changed line 75 into:
<a href="<?php echo JRoute::_("index.php{$hover_link}" ?>" class="info" >Image Link</a>
And I changed line 105 into:
<div class="j51button"><a href="<?php echo JRoute::_("index.php{$hover_link}" ?>" class="info" ><?php echo $j51_buttontext; ?></a></div>
Now, in my linkhover module administration, i just put the piece of address that is after "index.php", like this:
If my adress is "http://mydomain.com/index.php/newsite, I just put "/newsite" on the "set url" line.
Now it works.
Ciaran, am I right?
Forgive my english, I hope I was clear.
then I had the 404 error.
So I opened mod_j51imagelinkhover.php
I changed line 75 into:
<a href="<?php echo JRoute::_("index.php{$hover_link}" ?>" class="info" >Image Link</a>
And I changed line 105 into:
<div class="j51button"><a href="<?php echo JRoute::_("index.php{$hover_link}" ?>" class="info" ><?php echo $j51_buttontext; ?></a></div>
Now, in my linkhover module administration, i just put the piece of address that is after "index.php", like this:
If my adress is "http://mydomain.com/index.php/newsite, I just put "/newsite" on the "set url" line.
Now it works.
Ciaran, am I right?
Forgive my english, I hope I was clear.
- more than a month ago
- Free Templates / Extensions
- # 6
Hi Maud
Yes that sounds perfect. Thank you for sharing your solution on the forum.
Ciarán
Yes that sounds perfect. Thank you for sharing your solution on the forum.
Ciarán
- more than a month ago
- Free Templates / Extensions
- # 7
Hi,
In fact, I checked today and there is still a strange problem: when I first click on the image, it works: it goes to my anchor.
But when I click a second time exactly on the same link, it rewrites the url to my main page. If I click a third time, it works. etc.
Where do you think it comes from?
What would be the php code to put on line 75 and 105, to say "go to an external url" instead of "go to this page"? Just to try in case it works like that... (I know nothing about php... I guess I have to replace echo JRoute::_("index.php{$hover_link}" by something else?)
Thank you!!
In fact, I checked today and there is still a strange problem: when I first click on the image, it works: it goes to my anchor.
But when I click a second time exactly on the same link, it rewrites the url to my main page. If I click a third time, it works. etc.
Where do you think it comes from?
What would be the php code to put on line 75 and 105, to say "go to an external url" instead of "go to this page"? Just to try in case it works like that... (I know nothing about php... I guess I have to replace echo JRoute::_("index.php{$hover_link}" by something else?)
Thank you!!
- more than a month ago
- Free Templates / Extensions
- # 8
Hi Maud
May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.
If you could also include FTP access to your modules folder that would be great
Ciarán
May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.
If you could also include FTP access to your modules folder that would be great
Ciarán
- more than a month ago
- Free Templates / Extensions
- # 9
Thank you Maud
We have edited your ImageLinkHover module to accept URL paths. A working example of a URL path for your site would be /nouveausite/http://index.php/maitrise-d-oeuvre
Ciarán
We have edited your ImageLinkHover module to accept URL paths. A working example of a URL path for your site would be /nouveausite/http://index.php/maitrise-d-oeuvre
Ciarán
- more than a month ago
- Free Templates / Extensions
- # 10
Hello,
I would like to use a j51imagelinkhover to change to another website but it doesn´t work. I tried the changing like described but after the first changes Error 404 - and now cannot find line 78/105 in my xml there are only 75 lines...? may be cause I´m working with Mac ?
Could somebody help me ?
Thanks
I would like to use a j51imagelinkhover to change to another website but it doesn´t work. I tried the changing like described but after the first changes Error 404 - and now cannot find line 78/105 in my xml there are only 75 lines...? may be cause I´m working with Mac ?
Could somebody help me ?
Thanks
- more than a month ago
- Free Templates / Extensions
- # 12
Hello
May I suggest sending temporary FTP access to the modules folder of your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.
Ciarán
May I suggest sending temporary FTP access to the modules folder of your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.
Ciarán
- more than a month ago
- Free Templates / Extensions
- # 13
If i were you . i would transfer phone photos to computer in first ,as long as these photos have stored on the computer , you are able to edit by using computer , if you not know how to transfer , the process is very simple , just need a workable USB cable and the computer need to install a transfer tools , which can help you safely transfer photos to the computer without any lost or deleted data from phone , in this way ,i have completed transfer SMS to computer last week,
- more than a month ago
- Free Templates / Extensions
- # 15
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »