PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   How Do I? - vBulletin 3.5.X (http://www.photopost.com/forum/how-do-i-vbulletin-3-5-x/)
-   -   Add a watermark if its linked offsite? (http://www.photopost.com/forum/how-do-i-vbulletin-3-5-x/121582-add-watermark-if-its-linked-offsite.html)

PhoenixDown21 December 16th, 2005 02:34 AM

Add a watermark if its linked offsite?
 
As the title asks, I am looking to add a watermark but only if the picture is being remotely linked from another site. Any suggestions on how to do this?

I'd also like the watermark to be added to the bottom of the post, essentially underneath so that if hte pic was 80 px high - it would add a 20px watermark making the picture now 100px high. (if that makes sense)

Thanks!

Chuck S December 16th, 2005 04:54 AM

I don't honestly know if thats possible. I know you can redirect people to another image with mod rewrite

Basically you would need to look up all the options for mod rewrite on the new to see what you can and can't do. Given everything I have seen those far I would say it is not doable

Damian December 21st, 2005 01:02 AM

Quote:

I'd also like the watermark to be added to the bottom of the post, essentially underneath so that if hte pic was 80 px high - it would add a 20px watermark making the picture now 100px high. (if that makes sense)
I have no idea how to do this.

Quote:

Originally Posted by PhoenixDown21
As the title asks, I am looking to add a watermark but only if the picture is being remotely linked from another site. Any suggestions on how to do this?

You can do this with a script and .htaccess.



Create a file called watermark.php with this as contents:
Code:

Content visible to verified customers only.
Add this to your gallery .htaccess file or make one (change "yoursite" and the path to watermark.php)

Code:

Content visible to verified customers only.
Optional to .htaccess if you want want to let blank referrers see the image without the watermark, add this:
Code:

Content visible to verified customers only.
Create your watermark image (watermark.png).

Upload watermark.php, your .htacess file, and watermark.png to your gallery root.


All times are GMT -5. The time now is 03:00 PM.

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97