Deactivate link in contact fields
4 posters
Page 1 of 1
Deactivate link in contact fields
Hello,
I've posted a question before that was solved: https://help.forumotion.com/t141861-is-it-possible-for-the-user-to-put-an-image-in-the-contact-field
However, there have been some complains about something regards this option: if one clicks on the image that is put in it will link them to a page where only the image is shown (the URL of the image I guess).
I was wondering if this could be somehow disabled or if it's even possible to let it link to the user in question profile's?
Greetings,
Hert
(I will tagg @Ange Tuteur, since you helped me in the previous topic so maybe you already know the answer ^^)
I've posted a question before that was solved: https://help.forumotion.com/t141861-is-it-possible-for-the-user-to-put-an-image-in-the-contact-field
However, there have been some complains about something regards this option: if one clicks on the image that is put in it will link them to a page where only the image is shown (the URL of the image I guess).
I was wondering if this could be somehow disabled or if it's even possible to let it link to the user in question profile's?
Greetings,
Hert
(I will tagg @Ange Tuteur, since you helped me in the previous topic so maybe you already know the answer ^^)
Last edited by Hert on September 5th 2015, 6:46 pm; edited 1 time in total
Re: Deactivate link in contact fields
Hello,
I do not think there is a way to do this via the default options in the ACP.
Have you removed the image itself from that profile field yet?
-Brandon
I do not think there is a way to do this via the default options in the ACP.
Have you removed the image itself from that profile field yet?
-Brandon
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Re: Deactivate link in contact fields
Hi @Hert,
Replace your script with this :
It'll remove the link URL, and should prevent any clicking events that normally occur.
Replace your script with this :
- Code:
$(function() {
for (var a = document.getElementsByTagName('A'), i = 0, j = a.length, c; i < j; i++) {
c = a[i].firstChild;
if (c && c.tagName == 'IMG' && a[i].href == c.alt) {
c.src = c.alt;
c.className += ' contactImage';
a[i].href = '';
a[i].onclick = function(e) { e.preventDefault() };
}
}
});
It'll remove the link URL, and should prevent any clicking events that normally occur.
Re: Deactivate link in contact fields
Topic solved and archived
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum