I'm hoping that posting this beta version in here will help me gather useful feedback on what kind of features might be useful in such a hack.
What does it do:
-Adds a watermark to the bottom right of all images uploaded to users albums.
Planned changes:
1. Allow the url of the watermark image to be changed via admincp
2. Allow location of where the watermark image is placed to be changed via admincp
Installation Instructions:
1. Create or Use the watermark.png I attached, and upload it to your forum root before anything.
2. Edit the file forum_root/includes/functions_album.php and add these functions. I added them right below the Vbulletin Copyright notice.
PHP Code:
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////// -ALBUM WATERMARK MOD - image createfrom/saveto file functions-////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
function imagecreatefromfile($path)
{
$info = @getimagesize($path);
That's where I originally posted it... and it didn't work
However, I have to say after perserverance, and popping it in different places, I managed to get it to work! The code did go further down the page tho!
Now if you could just sort out the watermark scale issue on differing sized photos
watermark is in fact a image, a png file and you can see a sample on the first post on screen shoots section.
To install this mod you will need to edit your functions_album.php that is on includes folder as described, up load this edited file to your ftp and after that install the plug in https://vborg.vbsupport.ru/attachmen...9&d=1214140995 that's in the first post.
Just a tip, this must me installed as a plug in not as a product.
I made my self a png file using photoshop, that in fact it's just my site name in a clear background. I used the same resulotion of the watermark sample here to see how it goes and it was good enough. This watermake.png must be up-loaded to your forum root.
That's just what I did, 5 minutes and work great.
Last thing. This will just work on your albums not in regular images or files you place in your forums. If you already has users with tons of pictures the watermark will be added just in photos up-load after you install this mod, there won't be any effect on old images.
i wonder if vBulletin is planing on implementing this ? i hate php edits come upgrade time , I would like all the images on my site to be water marked but only after they are downloaded
Planned changes:
1. Allow the url of the watermark image to be changed via admincp
2. Allow location of where the watermark image is placed to be changed via admincp