Disable Microsoft Image Toolbar or Right Click in image popup window Disable Microsoft Image Toolbar or Right Click in image popup window
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Disable Microsoft Image Toolbar or Right Click in image popup window

Started by wayfarer, March 01, 2005, 07:52:23 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

wayfarer

I have read that you can add a tag 'galleryimg=no' to an image tag to disable the Microsoft image toolbar on individual images. I wish to either disable right click in this large image popup window or at the very least, get rid of the image toolbar.

Given that I can't use the Meta tag on the Javascript popup window that displays the large image (when you click on the intermediate image), how would I include the galleryimg tag in displayimage.php to specify not displaying the toolbar on top of the image displaying in the large image popup window or disable the rightclick only in this popup? I am not sure of how to include the proper code to achieve this...

Any pointers would be much apprecaited.

Joachim Müller

add<meta http-equiv="imagetoolbar" content="no">to themes/yourtheme/template.html (into the header section, right below{META}in a new line. A search for "imagetoolbar" should have shown you several other posts that already dealt with this; please search before posting in the future.

Joachim

wayfarer

I do appreciate the rules of this board... I did search before I posted (this is always the first thing I do, since I prefer to try to figure it out for myself before asking for help) and found no posts that deal with my specific question, which is related to the Javascript popup window  that displays the large image. Since the code is linking to the image and displaying it in a popup and not to an actual page, I cannot seem to add any code that affects this popup window. I have also searched the web extensively for a solution to this.

I am already using the Meta tag for the imagetoolbar content="no" in the header of my template page as well as a javascript which specifically disables right click on images only (not on the right clickable context menu). These are working fine on all my main pages... But the tag and script has no effect on the popup window.

My original question was wondering if there was a way of adding something to the displayimage.php page which calls the popup and specifies its size, whether it is resizeble and has toolbars etc, to also direct it not to display the toolbar or to disable right click on the large image.


:-X

wayfarer

I have solved this now!  ;D  Found that the displayimage.php page has head and body tags in it, where I can place my code. This is now working how I want it. Thanks for taking the time to read and respond anyway GauGau.