Quote:
Originally Posted by AndrewD
If you set the mimetype information (VB/admin/attachments) for text files to "Content-type: text/plain", then a simple left click on an entry which is a text file opens automatically in the browser window. This works correctly, as far as I can tell, with IE, Firefox and Opera.
However, the user can still force a "save as" using right click with the mouse, or by doing a "view source" and then save. You can disable the 'right click' menu by adding a bit of javascript to the page.
For example, if you edit clientscript/ldm_global.js and add these lines to the end:
Code:
document.oncontextmenu = function(){return false}
if(document.layers) {
window.captureEvents(Event.MOUSEDOWN);
window.onmousedown = function(e){
if(e.target==document)return false;
}
}
else {
document.onmousedown = function(){return false}
}
then I think you'll disable the right click menu throughout LDM.
|
Andrew,
Thank you for that code, it works a treat
One more thing - could you please tell me where to set the thumbnail size for pictures? I *thought* I'd done it but it doesn't appear to work.
In my AdminCP I clicked Categories > Edit > Control Settings >
Template Linkbit is set to Photo Album
link_imagesize is set at 0
link_imagemagsize is set at 600
Could you please tell me what I need to change?
Thanks very much and have a wonderful holiday
Regards,
Renada