I have just noticed that when you select the various size options in the gallery it gives you a link to the Original File without the Watermarking.
Offline
I didn't a simplier way than use a personal plugin (create it with LocalFilesEditor and activate it)
<?php /* Plugin Name: Remove Original Link Version: 1.0 */ add_event_handler('loc_end_picture', 'remove_original_link'); function remove_original_link() { global $template; $template->set_prefilter('picture', 'remove_original_link_prefilter'); } function remove_original_link_prefilter($content, &$smarty) { return str_replace('{if isset($U_ORIGINAL)}', '{if false}', $content); } ?>
Offline
also you can disable originals per user basis from the admin / user management (there is a user property historically called High definition ...)
Offline
1) this parameter sould be renamed
2) we should add a global parameter on the multisize config screen
Offline
Do I need to post this as a feature request to the bug tracker?
I thought I had set the option to not allow access to the hi-res but the upgrade might of changed a few things. Would be nice for the option to not use multisize. As I don't need it for my site as I show images at 600px to prevent others from just thieving the images. I run a event photography website so the lower the res the more chance they will buy.
Offline
Hi,
I tried to add the above code:
-------------------------------------------
<?php
/*
Plugin Name: Remove Original Link
Version: 1.0
*/
add_event_handler('loc_end_picture', 'remove_original_link');
function remove_original_link()
{
global $template;
$template->set_prefilter('picture', 'remove_original_link_prefilter');
}
function remove_original_link_prefilter($content, &$smarty)
{
return str_replace('{if isset($U_ORIGINAL)}', '{if false}', $content);
}
?>
-------------------------------------------
through the LocalFilesEditor after that i just got a blanck page and I cant load anything. Where is the code saved and how do I remove it again when i just have a blanck page?
I have treid to search for the above in my MySQL (phpMyAdmin) database for the gallery but cant find the code anywhere.
Please help.
Offline
Found it here: /local/config/
Anyway why does it not work when I add the above code?
Offline
hum could you send me by email your file please ? thx
Offline
sure, what email address to use?
Offline
GertK wrote:
sure, what email address to use?
the one on my profile ? ^^
Offline
okay you misunderstood how use the plugins : there are different tabs, and use the Personal plugin one to add this code
Don't forget to enable the plugin
Offline
Thanks - working now.
What effect will it have on Piwig if I remove the original photos from the server. The original photos are about 10mb each and if I got like 500 photos then im using 5GB only on the original photos?
Offline
other question=other thread ;)
Offline