Two newbie questions Two newbie questions
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Two newbie questions

Started by lostandfound, April 15, 2005, 12:43:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lostandfound

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

[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>

Nibbler

link ?

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

lostandfound

that's why it's a newbie question

krkeegan

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
There are no stupid questions, only stupid people. -Mr. Mackey, South Park