Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Locked Topic
[Solved] Code issue
Topic Started: Mar 30 2014, 04:16 AM (134 Views)
sugarpuff
Member Avatar
Member
[ *  *  * ]
My members can't right click on an image and save it. The reason I've been told is due to some code I have installed that is disabling that function. Question is, what code is disabling it? I have NO idea. Needle in haystack? ???
Offline Profile Goto Top
 
Cory
Member Avatar
Member
[ *  *  *  *  *  *  *  *  * ]
I believe it's this code:
Code:
 
<script type="text/javascript">
$(function(){
$("body").append('<div id="contextMenu" style="display:none; position:absolute; top:auto; right:auto; bottom:auto; left:auto; z-index:1000;"><table><tr><td></td></tr></table></div>');

$("html").live("click",function(){
if($("#contextMenu").is(":visible"))
$("#contextMenu").hide();
});

$("a[href*=" + main_url + "profile/]").live("contextmenu",function(e){
var name = $(this).text();
var member = $(this).attr("href").split("/").reverse();
$("#contextMenu td").html('<a href="' + main_url + 'profile/' + member[1] + '/"><div>View Profile</div></a><a href="' + main_url + 'msg/?c=2&mid=' + member[1] + '"><div>PM ' + name + '</div></a><a href="' + main_url + 'comm/?c=1&mid=' + member[1] + '"><div>Email ' + name + '</div></a><a href="' + main_url + 'msg/?c=16&mid=' + member[1] + '"><div>Add to Contacts</div></a><a href="' + main_url + 'home/?c=30&mid=' + member[1] + '"><div>Ignore ' + name + '</div></a>');
$("#contextMenu").css({
top:e.pageY + "px",
left:e.pageX + "px"
}).fadeIn("fast");
return false;
});
});
</script>
Although, I'm able to right click on images in Google Chrome when that code is added to my test board, I can understand why some browsers may not have the same effect because that code reacts with the default right click context menu.
Offline Profile Goto Top
 
sugarpuff
Member Avatar
Member
[ *  *  * ]
Thanks Cory. It's been sorted out now. The very gifted young lady who sorts all my codes out, (God bless her) has taken out the offending bit of code, and now right click works. Thanks for replying though. :) :up:
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards Support · Next Topic »
Locked Topic