PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old March 21st, 2005, 06:20 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Sep 2004
Posts: 35
Arrow Watermark only on other domains

Hello Com

Is there a way, to add a hack who show the Watermark on the pictures only outside the Domain? Not on the same Domain, where vBG running?
mr.gamesbay is offline   Reply With Quote
Old March 21st, 2005, 05:57 PM   #2 (permalink)
Member
Verified Customer
 
Join Date: Oct 2003
Posts: 31
Re: Watermark only on other domains

I asked the same question a couple of days ago:
http://www.vbadvanced.com/forum/showthread.php?t=6539

Short of it is...No. It's either all or none since the watermark is added at the time of upload.
Reefland is offline   Reply With Quote
Old March 21st, 2005, 06:23 PM   #3 (permalink)
Brian
Guest
 
Posts: n/a
Re: Watermark only on other domains

Actually, this shouldn't be too hard to do. Set 'Permanently Watermark Images' option to 'No', then look in your displayimage.php file for this code:

Code:
Content visible to verified customers only.
And change it to this:
Code:
Content visible to verified customers only.
(Change yourdomain.com to your domian name)

Haven't tested that, but it should work.
  Reply With Quote
Old March 21st, 2005, 09:48 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Sep 2004
Posts: 35
Re: Watermark only on other domains

Thanks for the help, but the hack dont work.
mr.gamesbay is offline   Reply With Quote
Old March 21st, 2005, 10:45 PM   #5 (permalink)
Brian
Guest
 
Posts: n/a
Re: Watermark only on other domains

Is it not watermarking them at all, or what? Did you change the setting so that images are not permanently watermarked?
  Reply With Quote
Old September 2nd, 2005, 10:44 PM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2005
Posts: 20
Re: Watermark only on other domains

This would be a very nice feature if i could get it to work. I tried doing what you said Brian and it didnt work, it just kept on watermarking the images when the option was turned on, and not when its turned off.
Hoof is offline   Reply With Quote
Old September 6th, 2005, 06:58 AM   #7 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
Re: Watermark only on other domains

Well i'm not sure it works.. because you are checking the server.. which is allways the same.. I think it should be the referrer..

I came up with a little more complicated solution.. (actually i dont use the watermark but only load a different picture saying its stolen...)

I havent tested it with watermark... but it should work unless there is a typo

In this version I replaced the loading of my image with the watermark..
What it should do:
if you set $vba_options['check_referer'] = 1; then a hotlinked picture is watermarked... the picture can still be viewed in the browser (as a popup for example without watermark.

If you set the second parameter to 1 ($vba_options['force_referer'] = 1; ) then the picture in the browser is watermarked also.. (attention... some browsers do not send referers corectly, so some of your users using some flavors of beta mozillas could also see the watermark).. just make sure you dont set the original pic to open in a new window..

the third parameter to set are the good referers.. just replace yourhost.com by your sites host called in the url... (without the www. is better)

ok.. lets test it:

like in brians version find:
Code:
Content visible to verified customers only.
end replace it with:
Code:
Content visible to verified customers only.

What would be more elegant.. would be to cache the watermarked images...
i.e. create a subdirectory watermark in the users directory and write the watermarked image there... if the file exists.. you would not waste ressources watermarking the picture but could simply change the imagelocation to point to the watermarked image. (but that goes only for high traffic sites)

Luc
Luciano is offline   Reply With Quote
Old September 9th, 2005, 07:11 AM   #8 (permalink)
Junior Member
Verified Customer
 
Join Date: Jun 2005
Posts: 20
Re: Watermark only on other domains

Luciano i tried that and it didnt work either, thanks for trying though
Hoof is offline   Reply With Quote
Old September 9th, 2005, 10:52 AM   #9 (permalink)
Moderator
Verified Customer
 
Join Date: Aug 2005
Posts: 1,231
Re: Watermark only on other domains

Quote:
Originally Posted by Hoof
This would be a very nice feature if i could get it to work. I tried doing what you said Brian and it didnt work, it just kept on watermarking the images when the option was turned on, and not when its turned off.
well are you sure you are pulling the file on another domain???

to test it.. just let it water mark.. and then put a

// in front of watermark_image('normal');

it should... i mean it cannot water mark the file then...

once that works (switching it on and off with the // ) then start pulling the file on another domain.. which means inserting it in a html page.. hosted on another domain with <img src="http://www.yourdomain.com/vbull/gallery/displayimage.php?imageid=xx" />

if you still can switch on and of by inserting the //

do the replacement i mentioned..

Luc
Luciano is offline   Reply With Quote
Old November 22nd, 2005, 02:58 AM   #10 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2004
Posts: 21
i'm interested in implementing this. has this proven to work?
vprp is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VB3 Integration with 2 domains BobHarbison Photopost Pro How Do I...? 1 November 7th, 2005 05:37 AM
Multiple Domains, Cookies , Vb3 , PP menoutdoors Photopost Pro Installation & Upgrades 4 August 10th, 2005 02:51 PM
cookie domains HappyPike Installs and Upgrade - vBulletin 3.0.X 3 July 9th, 2005 10:40 AM
Photopost and Vb on different domains Nicke71 Photopost Pro Installation & Upgrades 6 July 21st, 2004 10:39 AM


All times are GMT -5. The time now is 07:24 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0