Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Watermark images (on the fly) Details »»
Watermark images (on the fly)
Version: 1.00, by Robbban Robbban is offline
Developer Last Online: Oct 2005 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-07-2004 Last Update: Never Installs: 42
 
No support by the author.

This is something i made because I couldn't find any hack working for 3.0.7. Just took a couple of minutes.


Works with 3.0.7!

Show Your Support

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

Comments
  #62  
Old 02-21-2005, 07:18 PM
triste triste is offline
 
Join Date: Jan 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
    $imx = imagesx($im);
    $imy = imagesy($im);
    $w = imagesx($watermark);
    $h = imagesy($watermark);
    $y = $imy - $h;
    $x = $imx - $w;

    imagecopy($im, $watermark, $x, $y, 0, 0, $w, $h);

from here, i think you get the concept. you use the the size of the watermark, and then subtract/add accordingly from the min/max size of the image being watermarked. (from left, x is 0, from right, x is imagesx())

Made correction on $h=...
Reply With Quote
  #63  
Old 02-21-2005, 07:57 PM
noppid noppid is offline
 
Join Date: Mar 2003
Location: Florida
Posts: 1,875
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by triste
Code:
    $imx = imagesx($im);
    $imy = imagesy($im);
    $w = imagesx($watermark);
    $y = imagesy($watermark);
    $y = $imy - $h;
    $x = $imx - $w;

    imagecopy($im, $watermark, $x, $y, 0, 0, $w, $h);

from here, i think you get the concept. you use the the size of the watermark, and then subtract/add accordingly from the min/max size of the image being watermarked. (from left, x is 0, from right, x is imagesx())

Check your work. $y is being stepped on or set once uselessly.
Reply With Quote
  #64  
Old 03-03-2005, 06:41 PM
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Location: Lancashire, UK
Posts: 379
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you get the watermark on the right? I read the above, but can't make head nor tail of it! Sorry to sound stupid, just confused....

Thanks, the revised code works like a charm!

<edit>
Sorry for my stupidity, I used the above code and it works perfectly!
</edit>
Reply With Quote
  #65  
Old 03-06-2005, 05:37 AM
v8news v8news is offline
 
Join Date: Oct 2004
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have sent Robbban a PM can you please get back to me ASAP.
Reply With Quote
  #66  
Old 04-12-2005, 10:59 AM
Robbban Robbban is offline
 
Join Date: Jul 2004
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Checked and works for 3.0.7!
Reply With Quote
  #67  
Old 05-29-2005, 09:00 PM
Osiris2k Osiris2k is offline
 
Join Date: Oct 2004
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Robbban
Checked and works for 3.0.7!
isnt working for me 3.0.7

I did exactly what it said but it didnt do anything...and I have the right path to the watermark

nvm its working for attachements but not for vbgarage?
Reply With Quote
  #68  
Old 06-14-2005, 07:45 PM
mustang_lex mustang_lex is offline
 
Join Date: May 2005
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have this hack working successfully for 3.0.7? I like to implement on my site
Reply With Quote
  #69  
Old 08-02-2005, 12:05 AM
aalspach aalspach is offline
 
Join Date: Jun 2003
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After you have installed the hack, add an image attachment.... and submit new thread.... then click on thumbnail in thread for the first time.... does it take a while to upload images on your site? it does on my site.
Reply With Quote
  #70  
Old 08-04-2005, 10:06 AM
Denno Denno is offline
 
Join Date: Jul 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works just fine here 3.0.7.

Not sure if it loads harder or not.
Reply With Quote
  #71  
Old 08-04-2005, 10:27 AM
Denno Denno is offline
 
Join Date: Jul 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm take that back..it dont watermark the pictures all the time...
Just cut them.
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 07:38 AM.


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.04660 seconds
  • Memory Usage 2,299KB
  • Queries Executed 25 (?)
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
  • (2)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
  • (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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete