Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PB Watermark Album Images Details »»
PB Watermark Album Images
Version: 1.00, by RLShare RLShare is offline
Developer Last Online: Aug 2011 Show Printable Version Email this Page

Category: Social Group and Album Enhancements - Version: 3.8.2 Rating:
Released: 05-28-2009 Last Update: Never Installs: 136
Uses Plugins
 
No support by the author.

yeah, so I forgot that I updated this until I just came across it. So here she is updated and confirmed working on 3.7.x- 3.8.x

What does it do:
-Adds a watermark to all images uploaded to user albums and optionally profile pictures.

Features:
-Option to watermark album images
-Option to watermark profile pictures
-Can set whether to watermark thumbnails or just full size images.
-Can position watermark in 1 of 4 corners.
-watermark image gets resized when it is larger then the image to be watermarked
-Completely changed functionality so that it now adds the watermark at runtime and makes no more permanent changes to images.

Notes:
- If after you first install you do not notice a difference then clear your browser cache.
- It works with all 3 storage types for album images, but will not watermark thumbnails if you have the storage type set to 'Keep pictures in file system, but allow direct access to thumbnails'
- It only works for profile pictures that are stored in the database. I will attempt to see if I can create a workaround for this when I get a chance.
- If you want to watermark attachments there already exists 2 modifications that I have tested first hand and know work on the latest version of VB.
- This has been tested and confirmed working in VB 3.7.x as well.
- Again please clear your browser cache and test before you report problems to me.

Installation Instructions:
1. Create or Use the watermark.png I attached, and upload it to your forum root before anything. You will receive 'file does not exist' or no images will display(depending on the browser) if you do not first upload an image named 'watermark.png' to your forum root( The folder you have vbulletin installed in).
2. Import the 'product-pb_watermarkalbumimages.xml' file through the product manager.
3. Go to AdminCP->Vbulletin Options->Vbulletin Options->PB Watermark Settings and configure the settings.

Screenshots have been attached.

Download Now

File Type: xml product-pb_watermarkalbumimages.xml (11.1 KB, 761 views)

Screenshots

File Type: png watermark.png (5.1 KB, 0 views)
File Type: jpg screenshot1.jpg (120.0 KB, 0 views)
File Type: jpg screenshot2.jpg (132.9 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 06-03-2009, 05:47 AM
RLShare RLShare is offline
 
Join Date: Jun 2008
Posts: 499
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by smooth-c View Post
Great idea What do you think RLShare? Did you receive my donation okay?
I probably did but I have not checked as of yet.


As for the suggestions made I will take them all into account when I get a chance to work on this again. I have been a tied up the last couple days in a project that I hoped would be finished by now. As soon as I finish this project up I will attempt to make some of the suggested changes.
Reply With Quote
  #23  
Old 06-04-2009, 04:21 PM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please
would it be possible to exclude from watermark pictures attached in user profile as their background ?
Reply With Quote
  #24  
Old 06-04-2009, 07:38 PM
hymoo hymoo is offline
 
Join Date: Nov 2008
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to edit both the plugins u use for this to move the image slightly 10px from the corners (so its not directly on the edge. looks better I think).

But it kinda breaks the entire thing if I try that

Could you explain to me which values I have to edit? I tried editing the following:
From
Code:
$destx=    imagesx($theimage)-imagesx($newwater);
To
Code:
$destx=    imagesx($theimage)-imagesx($newwater)-10;
(on both x and y. so it should be 10 PX from the lower right corner (which we choose as our location).

Thanks in forward.
Reply With Quote
  #25  
Old 06-11-2009, 02:37 AM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found a bug as well. On profile images/Profile Albums images for the custom profile when you have a small image on there like a gradient for the bars etc. the image don't show.

I was thinking if there is a way to not do private or profile albums that would be great.
Reply With Quote
  #26  
Old 06-13-2009, 04:25 PM
BBR-APBT's Avatar
BBR-APBT BBR-APBT is offline
 
Join Date: Feb 2009
Location: Maryland
Posts: 946
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any idea if the exclude for private albums would be implemented.
Reply With Quote
  #27  
Old 06-15-2009, 03:50 PM
danyz81's Avatar
danyz81 danyz81 is offline
 
Join Date: Apr 2009
Location: Rome
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
Nice hack!
I would like to know if is possible that a user can chose or not to put the watermark on tje own images, because (in my case) not all users want to use the watermark feature

Thanks!
Reply With Quote
  #28  
Old 06-20-2009, 03:15 PM
SirHappy SirHappy is offline
 
Join Date: Jul 2007
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Hack. Thx
Reply With Quote
  #29  
Old 06-23-2009, 12:59 AM
7lanet's Avatar
7lanet 7lanet is offline
 
Join Date: Aug 2007
Location: YeMeN
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dear the gif not good

can u use this

PHP Code:
function is_ani($filename)
{
        
$filecontents=file_get_contents($filename);
        
$str_loc=0;
        
$count=0;
        while (
$count 2# There is no point in continuing after we find a 2nd frame
        
{
                
$where1=strpos($filecontents,"\x00\x21\xF9\x04",$str_loc);
                if (
$where1 === FALSE)
                {
                        break;
                }
                else
                {
                        
$str_loc=$where1+1;
                        
$where2=strpos($filecontents,"\x00\x2C",$str_loc);
                        if (
$where2 === FALSE)
                        {
                                break;
                        }
                        else
                        {
                                if (
$where1+== $where2)
                                {
                                        
$count++;
                                }
                                
$str_loc=$where2+1;
                        }
                }
        }
        if (
$count 1)
        {
                return(
true);
        }
        else
        {
                return(
false);
        }
}
exec("ls *gif" ,$allfiles);
foreach (
$allfiles as $thisfile)
{
        if (
is_ani($thisfile))
        {
                echo 
"$thisfile gif mobile <BR>\n";
        }
        else
        {
                echo 
"$thisfile Fixed <BR>\n";
        }

plese look Attach
Reply With Quote
  #30  
Old 06-23-2009, 03:39 AM
7lanet's Avatar
7lanet 7lanet is offline
 
Join Date: Aug 2007
Location: YeMeN
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dear ,


Proposal
Zoom in or zoom out watermark depending on the size of image
For example,
When the image size 600 * 400 is the size of watermark 60 * 40
When the image size is 1200 * 800 is the size of watermark 120 * 80
When the image size 200 * 180 is the size of watermark 20 * 18

or
make 3 or 4 watermark.png(watermark1.png -watermark2.png-watermark3.png ....atc )


Options
Image size and the size of watermark
Placed in the Options Forum
admin can modify
Reply With Quote
  #31  
Old 06-23-2009, 07:17 AM
enoobz enoobz is offline
 
Join Date: Apr 2009
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to disable watermark for profile background images?

It will be nice to have an option to disable this features in certain folder(s).
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:47 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06292 seconds
  • Memory Usage 2,359KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete