Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vBgarage

Reply
 
Thread Tools
Watermarking full size images in vBGarage 4.0.0 Details »»
Watermarking full size images in vBGarage 4.0.0
Version: , by noppid noppid is offline
Developer Last Online: Sep 2015 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 01-22-2005 Last Update: Never Installs: 0
 
No support by the author.

This option is available and can be turned on in vbgconfig.php. You will need to set the path to your watermark image and the name of your watermark image. The watermark image must be a .png file. If anything goes wrong with watermarking after enabling it, the affect will be the image does not get watermarked. This will mostly be caused by not configuring something correctly.

By configured correctly we mean, the watermark image is a valid .png and the watermark option is enabled in vbgconfig.php and the path to the file is set correctly in vbgconfig.php and nothing went wrong in the file system. If any of the above does occur, then the image will not be watermarked. Rather then throwing errors when something went wrong we thought it best to just skip the step if a sanity check failed.

To enable watermarking you set "$vbg_use_wm = 1;" in the vbgconfig file and set the name of the watermark image file with "$vbg_wm = "watermark.png";". You also have to set the path to your image with "$vbg_path = "/home/ACCOUNT_NAME/vbg_images_folder/";" All of this is done in the vbgconfig.php.

There is one more setting in vbgconfig.php for positioning the watermark. Setting "$vbg_position = 0;" (default) will display the watermark top and center of the full size image. Setting "$vbg_position = 1;" will display the watermark on the bottom center of the full size image.

After setting the vbgconfig.php file and having uploaded your watermark image to the configured folder, upload the vbgconfig.php file to your forums ROOT folder. When an image is uploaded, if all is configured correctly, the full size image will be watermarked and show as so when viewed as a full size popup.

If you use file system mode, the folder should/will be the same folder that you choose to store your images in.

Images for watermarking should be .png. They should not be transparent and should have a background. Be judicious about sizing, you have to consider small images being watermarked. We are using 75x15 and 100x15 in our trial runs.

If you need help with enabling watermarking or configuring watermarking, please post in this thread.

Show Your Support

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

Comments
  #2  
Old 01-24-2005, 10:06 PM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think that my watermark.png is to big, I have a file of 800 x 600.
I try to make a small file like in description.
But now I'm going to sleep :squareeyed:
Reply With Quote
  #3  
Old 01-24-2005, 10:42 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by drl2005
I think that my watermark.png is to big, I have a file of 800 x 600.
I try to make a small file like in description.
But now I'm going to sleep :squareeyed:
I would make it ALOT smaller.
Reply With Quote
  #4  
Old 01-25-2005, 06:56 AM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Noppid,

I have tried with another water mark, but without results.
I post here my watermark, can you verify of the image is oke.
Here my vbgconfig file, I think it's good, but the image I am not certainly of that.

PHP Code:
<?php
// vBGarage 4.0.0 By Magnus 
// Ugrades/congif file by noppid @ www.lakecs.com 1-23-2005

// set this to 1 to store vbgarage images in the filesystem.
// set this to 0 to store vbgarage images in the DataBase.
$vbg_use_fs 0;

// path to files folder, include the trailing slash. Folder must be set 777 for FS mode.
// this must be set to use a watermark too. If using DB mode a read only folder is ok. 
$vbg_path "/var/www/homedir/forum/data/garage/";

// set this to 1 to enable watermarking of full size images
$vbg_use_wm 1;

// set the name of the watermark file. It must be uploaded to the folder you set $vbg_path to point to.
// you must use a .png file.
$vbg_wm "watermark.png";

// water mark position
// set this to 0 for top center of image OR set this to 1 for bottom center of image
$vbg_position 0;

?>
I have put my watermark.png in the garage folder.

Here is my watermark image :
Attached Files
File Type: (21.3 KB, 41 views)
Reply With Quote
  #5  
Old 01-25-2005, 10:57 AM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have to assume your path is correct. As for the watermark, what you want to do will not work, you can not use a transparent background PNG. So what would happen with your big watermark image is it would just overwrite the photo.

I'll look into transparent backgrounds. I'm no GD or graphics expert though.

In the mean time, try a watermark.png with a solid background of about 100x15.
Reply With Quote
  #6  
Old 01-25-2005, 06:14 PM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oke, I have make a new watermark and tested, but I see nothing.
I think the watermark is oke now.
Attached Files
File Type: (21.3 KB, 155 views)
Reply With Quote
  #7  
Old 01-25-2005, 06:26 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by drl2005
Oke, I have make a new watermark and tested, but I see nothing.
I think the watermark is oke now.
I tried your watermark and it works fine. I used a png and a jpeg.

I would have to say there is and error is your path. That's my best guess.
Attached Files
File Type: (21.3 KB, 21 views)
File Type: (21.3 KB, 38 views)
Reply With Quote
  #8  
Old 01-25-2005, 06:37 PM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

pffff, strange.
I see that you are using opera, I have IE, maby that can be the problem.
Reply With Quote
  #9  
Old 01-25-2005, 06:44 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by drl2005
pffff, strange.
I see that you are using opera, I have IE, maby that can be the problem.
No, I'm using FireFox and IE, that is just a png pic I pulled off the net to upload and test with. This is not a browser issue, the opertion is done on the server side in PHP.

What OS is running on your server? Maybe it's a string formatting issue if you are 100% certain you have the path correct.

Did the create thumbs process in the upgrader run ok on your site?
Reply With Quote
  #10  
Old 01-25-2005, 07:04 PM
Rhoads Rhoads is offline
 
Join Date: Dec 2004
Location: Holland
Posts: 211
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The server is redhat-linux and I run not the updater because I have a clean install of vbgarage. But my test forum with vbgarage 4.0 is on a subdomein, but I think that can not the problem, the path is right to my subdomein.
Reply With Quote
Reply

Thread Tools

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 11:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05925 seconds
  • Memory Usage 2,324KB
  • Queries Executed 24 (?)
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
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete