Hi All,
I've done a search on this and I did find one explanation, but it wasn't terribly clear, so forgive me for asking again.
On the Photo page, I want to remove the "View Original Image" button.
My site is for photographers, so I know they won't like the fact you can just hit a button on the site and then see the original file - it will be too easy for someone to steal that image.
Can anyone advise how to get rid of this button altogether?
In a perfect world, I'd prefer that Dolphin didn't store the original files - as often they are huge - when they are not needed by the site. Has anyone achieved that?
|
This is the sql that inserts it in the database -
INSERT INTO `sys_objects_actions` (`Type`, `Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`) VALUES ('[db_prefix]', '_[db_prefix]_action_view_original', 'action_download.png', '{moduleUrl}get_image/original/{fileKey}.{fileExt}', '', '', 0);
So go to 'sys_objects_actions' , search the entry for 'bx_photos_action_view_original' and delete that entry.
Note: This is not tested, so kindly back up your database before any modification
Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP |
Hi mods4dolphin,
Thanks for the suggestion. Unfortunately, it hasn't appeared to do anything for me?
I deleted the entry via phpMyAdmin and it doesn't appear to have had any effect? I cleared cache etc. but it doesn't appear to have done anything.
Not entirely sure why! It makes perfect sense to me that it should have worked....
|
Hi mods4dolphin,
Thanks for the suggestion. Unfortunately, it hasn't appeared to do anything for me?
I deleted the entry via phpMyAdmin and it doesn't appear to have had any effect? I cleared cache etc. but it doesn't appear to have done anything.
Not entirely sure why! It makes perfect sense to me that it should have worked....
Interesting, not sure why it did not worked ! You cleared the cache for sure right? And see if there are any other original entries in that table.
Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP |
Ah - it has worked! I guess the cache clearing functions from within the admin panel don't do anything..
I manually cleared out the cache via FTP and it's solved the problem! Thank you!
|
Ah - it has worked! I guess the cache clearing functions from within the admin panel don't do anything..
I manually cleared out the cache via FTP and it's solved the problem! Thank you!
Glad it worked :)
Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP |
IS there really a way to stop peeps from stealing photo's that are online? I think I have come across 1 site in 14 years that paid whatever it took to avoid ALL possible ways to steal a picture. The true way is not to worry about your site as the viewer does the same thing as view original and once again your in the same spot. In my mind it is about watermarks and always will be. I can screen capture just about anything and again some of the pictures today look better than the original no really as my sister is a photographer and was always concerned about the same thing. Short of spending a small fortune to protect the 5 different ways to capture a picture, I suggest you talk to them about watermarking the photo or provide that service which would be a draw. If someone else has figured this out plz share it with all of us as it is asked for all the time but I am afraid what you are tracking down is kind of an exersize in futility imho........... The sites that watermark photo's make it very difficult if not impossible to get those photo's FLASH makes it one more step difficult to get but screen capture is just unavoidable in most cases and I think you need to go in that direction to be able to avoid that as well as watermark................I have not even mentioned data miners.........HTH Csampson |
Hi csampson1,
I fully get your points - I have tackled all these issues in the past, and I fully understand there is no sure fire way of protecting images online. Many of my colleagues (including myself) watermark our images etc - we all appreciate it is completely impossible to protect against the inevitable "stealing" of images.
I don't for a minute think that this move would stop the determined etc.
However, it will mean I won't get the first wave of complaints about having the button there in the first place - I know for a fact that my inbox would be flooded with complaints about it! Therefore in my mind, the small mod just made is a worthwhile excercise - not at all futile! :-)
Thanks!
|
@Mods4Dolphin - Just a thought here. Another thing I wanted to get rid of was the field in the Main Photo Info with the URL.
Would a similar technique of finding and removing the entry for that in the database work or will this require a code edit of that block?
|
@Mods4Dolphin - Just a thought here. Another thing I wanted to get rid of was the field in the Main Photo Info with the URL.
Would a similar technique of finding and removing the entry for that in the database work or will this require a code edit of that block?
Please explain with a screenshot...
Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP |

I want to get rid of that bottom field if possible.
|

I want to get rid of that bottom field if possible.
Where's the image?
Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP |
Damn! Sorry, it should be OK now. I had forgotten that my site is currently blocked using .htaccess to all external IP's except my own. I could see the image I posted but never occurred to me that you wouldnt, since I could see it in my post!
|

I want to get rid of that bottom field if possible.
Do-able but not that easy :)
Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP |
Really?
That is disappointing. I wouldn't have thought it would be hard just to hide that field. :(
|
Really?
That is disappointing. I wouldn't have thought it would be hard just to hide that field. :(
Basically you just need to hide that field from getting displayed in the template. I did a quick search in the photos module and it looks like the whole block is getting displayed at one shot. For boonex developer, it should be a quick thing to tell which code of line is adding that line, just need to comment that out... for me i will have to dig through the whole code.
Facebook, Twitter & Instagram Combo - http://bit.ly/1h5CarP |
See below to get rid of the Url link. Please note that this will get rid of it also for other media modules (video etc). If you definitely want to isolate it to photos only then let me know.
In inc/classes/BxDolFilesTemplate.php
In function getBasicFileInfoForm (&$aInfo, $sUrlPref = '') {
Find and remove this block:
'url' => array( 'type' => 'text', 'value' => $sUrlPref . 'view/' . $aInfo['medUri'], 'attrs' => array( 'onclick' => 'this.focus(); this.select();', 'readonly' => 'readonly', ), 'caption'=> _t('_URL') ),
Or comment out the block as shown below :
/* 'url' => array( 'type' => 'text', 'value' => $sUrlPref . 'view/' . $aInfo['medUri'], 'attrs' => array( 'onclick' => 'this.focus(); this.select();', 'readonly' => 'readonly', ), 'caption'=> _t('_URL') ), */
Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz |
@modzzz
That did it! Thank you!!
I know it seems like a small thing to many, but I know just removing the "View Original Image" button and the "URL" will actually save me a lot of time responding to complaints/concerns from site members.
Thanks a lot to modzz and mods4dolphin for helping to fix these issues for me.
Cheers!
Greig
|
Thank you, this worked for me.
This is the sql that inserts it in the database -
INSERT INTO `sys_objects_actions` (`Type`, `Caption`, `Icon`, `Url`, `Script`, `Eval`, `Order`) VALUES ('[db_prefix]', '_[db_prefix]_action_view_original', 'action_download.png', '{moduleUrl}get_image/original/{fileKey}.{fileExt}', '', '', 0);
So go to 'sys_objects_actions' , search the entry for 'bx_photos_action_view_original' and delete that entry.
Note: This is not tested, so kindly back up your database before any modification
|