Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Two newbie questions  (Read 3290 times)

0 Members and 1 Guest are viewing this topic.

lostandfound

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Two newbie questions
« on: April 15, 2005, 12:43:49 pm »

How do I add ZIP download of images .
I've checked the button "Allow ZIP-download of favorites" but there's no button. (i have cp132)

Permission question
I don't want my visitors to be able to right click on the images
I did a search and found this topic
http://forum.coppermine-gallery.net/index.php?topic=8142.0

I did what the tutorial said but it doesn't work.
after the red color I inserted the Java code

Code: [Select]
[color=Red]<meta http-equiv="content-type" content="text/html; charset=<?php echo $CONFIG['charset'] == 'language file' $lang_charset $CONFIG['charset'?>" />
<link rel="stylesheet" href="<?php echo $THEME_DIR ?>style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<body scroll="auto" marginwidth="0" marginheight="0">
<script language="JavaScript" type="text/JavaScript">
adjust_popup();
</script>[/color]

<SCRIPT LANGUAGE="JavaScript">
<!--
//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com
var message="Sorry, right-click has been disabled If you want to save this image click on the download button";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</SCRIPT>
Logged

Nibbler

  • Guest
Re: Two newbie questions
« Reply #1 on: April 15, 2005, 12:45:35 pm »

link ?

and why title a thread 'two newbie questions' on a support board with a strict '1 question per thread' policy ?
Logged

lostandfound

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Two newbie questions
« Reply #2 on: April 15, 2005, 12:52:17 pm »

that's why it's a newbie question
Logged

krkeegan

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 53
  • ahh the life...
    • Kevin's Photos
Re: Prevent Right Click
« Reply #3 on: April 15, 2005, 06:13:09 pm »

Hmm it looks like to me you are inserting the script in the correct location. Have you checked the source of a page to make sure that the script is printing? If it is you have a problem with the script itself. If you do not see the script printing then we may need to revisit where you should be inserting this code. But I think the problem is with the JavaScript.

Second, the download as zip function.

Make sure it is enabled in the config. Then from a picture page within the photo information(you may need to click on the "i" button to make the photo information available). Click Add to Favorites. Then from your favorites page there is a link in the top right of the banner.

Kevin
Logged
There are no stupid questions, only stupid people. -Mr. Mackey, South Park
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 15 queries.