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

Reply
 
Thread Tools
Server-side Thumbnailed Attachments Details »»
Server-side Thumbnailed Attachments
Version: 1.00, by CVMagic CVMagic is offline
Developer Last Online: May 2009 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 12-27-2003 Last Update: Never Installs: 10
Is in Beta Stage  
No support by the author.

Thumbnailed Attachments Version 1.0

Description: Its kind of Self explanitory, but in anycase if you dont know what it does, it checks if an attached image is larger than your specified size and if it is it will use ImageMagick, Netpbm, or the GD Image functions to resize it accourdingly using a rather simple formula to make sure the thumbnails are kept in scale.

Usual Mod Warning: This moddification unlike most other thumbnailed attachment mods isn't only a template hack so mind you, you'd have to make sure you backup your files before using this hack.

Screenshots/Test Threads: I have one included below and this link contains a vB that has already been modded: http://www.cheatandwin.com/forums/sh...=&threadid=216. But i should let you know that both are kind of outdated already since i did update the instructions from an oversight i had made earlier..

Requirements: Umm, as vB goes i'd say you'd need 2.2.x or higher but i designed it under 2.3.3 so there might be slight differences namely in the templates but not much to worry about that..
PHP 4.0.6 <- For the moment that is the minimum requirement for the modifications i have made aside to the ones required for vB
Any of the following 3: ImageMagick, Netpbm, or GD 2.01 or higher

Thats about it, any comments, suggestions, or questions feel free to post here or even email me personally at cvmagic at cheatandwin dot com.

[edit]
New Updated Version Download Today!

Show Your Support

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

Comments
  #32  
Old 01-29-2004, 10:58 AM
tcs's Avatar
tcs tcs is offline
 
Join Date: Jun 2002
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the reply. I have tried many different settings to no avail. I am of the opinion there is a server issue with imagemagik and GD. Don't know what it is yet.

Thanks for the reply...
Reply With Quote
  #33  
Old 01-30-2004, 05:59 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this be ported to vB3? I will be your dearest friend. Well, not quite that dear!

Regards,

Matt
Reply With Quote
  #34  
Old 01-30-2004, 04:46 PM
FeKuLa FeKuLa is offline
 
Join Date: Aug 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you CVMagic, my problem is solved
Reply With Quote
  #35  
Old 01-31-2004, 03:28 AM
CVMagic's Avatar
CVMagic CVMagic is offline
 
Join Date: Dec 2002
Location: USA/Connecticut
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@tcs:
Can you try out one of the attachments and add &dl=1 to the url address and tell me what error it says, it might be a simple error that i could fix for you...
@memobug:
I believe vB3 has it built in but ill take a look at it and make it so, just as long as there is a demand for it
Reply With Quote
  #36  
Old 01-31-2004, 06:44 AM
memobug memobug is offline
 
Join Date: Jun 2002
Posts: 418
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi CVMagic,

The resizing of image attachments to conform to max pixel sizes is not built in to vB3. What is integrated is a thumbnailing feature that will take your attachment (whatever size it is) and produce a thumbnail image that can be used for inline display (default is 100pix) - linked to the original, unresized image.

vB3 does not manipulate images to conform to max size standards. If size checking is enabled, it will simply say the image is too large.

For those others who have asked about having an auto-size feature, it was recommended at Vbulletin.com that a hack be requested at Vbulletin.org. I have seen a few requests already for avatar and profile picture resizing on this forum, too, so I am sure there is a demand for autosizing.

Best,

Matt
Reply With Quote
  #37  
Old 02-01-2004, 03:47 PM
pigsy pigsy is offline
 
Join Date: Nov 2001
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi CVMagic,

Many thanks for your feedback. Regarding safemode, I don't actually have this turned on and I don't have a particularly short timeout for scripts because some of the ones I run last 60 secs. Can you point me in the direction of any apache/php/linux settings that might give rise to problems when processing multiple images - and end up with broken images.

I feel there's still hope for me, if I could just figure what's wrong. Nice work all the same.
Reply With Quote
  #38  
Old 02-06-2004, 08:17 PM
mskgr mskgr is offline
 
Join Date: Jun 2003
Location: Piraeus, Greece
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /var/www/html/myphone/forum/attachment.php on line 199


Well, I have to say that $ImageMagick_enabled=1; and my path for imagekick is OK ('/usr/X11R6/bin/'), as I already use it for photopost.

So, what's wrong
Reply With Quote
  #39  
Old 02-06-2004, 08:42 PM
mskgr mskgr is offline
 
Join Date: Jun 2003
Location: Piraeus, Greece
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now I get strange errors... Somethign changed but I don't know what

Code:
<br>
<b>Warning</b>:  stat failed for ./thumbs/'claudia.jpg'.tmp.155 (errno=2 - No such file or directory) in <b>/var/www/html/myphone/forum/attachment.php</b> on line <b>174</b><br>
<br>
<b>Warning</b>:  Cannot add header information - headers already sent by (output started at /var/www/html/myphone/forum/attachment.php:174) in <b>/var/www/html/myphone/forum/attachment.php</b> on line <b>174</b><br>
<br>
<b>Warning</b>:  fopen("./thumbs/'claudia.jpg'.tmp.155", "rb") - No such file or directory in <b>/var/www/html/myphone/forum/attachment.php</b> on line <b>175</b><br>
<br>
<b>Warning</b>:  Supplied argument is not a valid File-Handle resource in <b>/var/www/html/myphone/forum/attachment.php</b> on line <b>176</b><br>
<br>
<b>Warning</b>:  Supplied argument is not a valid File-Handle resource in <b>/var/www/html/myphone/forum/attachment.php</b> on line <b>177</b><br>
And yes, there is a thumbs directory on my forum path. And it's changed to 777, and guess what I see .tmp files in there
Reply With Quote
  #40  
Old 02-07-2004, 01:49 AM
CVMagic's Avatar
CVMagic CVMagic is offline
 
Join Date: Dec 2002
Location: USA/Connecticut
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mskgr
Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in /var/www/html/myphone/forum/attachment.php on line 199


Well, I have to say that $ImageMagick_enabled=1; and my path for imagekick is OK ('/usr/X11R6/bin/'), as I already use it for photopost.

So, what's wrong
That might just mean that ImageMagick was not setup correctly so i skips over to the next thing which is GD, and seeing that your the rare few with GD 2.0 it passed the function checks but still you get that error.
Reply With Quote
  #41  
Old 02-07-2004, 01:51 AM
CVMagic's Avatar
CVMagic CVMagic is offline
 
Join Date: Dec 2002
Location: USA/Connecticut
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mskgr
Now I get strange errors... Somethign changed but I don't know what

Code:
<br>
<b>Warning</b>:  stat failed for ./thumbs/'claudia.jpg'.tmp.155 (errno=2 - No such file or directory) in <b>/var/www/html/myphone/forum/attachment.php</b> on line <b>174</b><br>
<br>
<b>Warning</b>:  Cannot add header information - headers already sent by (output started at /var/www/html/myphone/forum/attachment.php:174) in <b>/var/www/html/myphone/forum/attachment.php</b> on line <b>174</b><br>
<br>
<b>Warning</b>:  fopen("./thumbs/'claudia.jpg'.tmp.155", "rb") - No such file or directory in <b>/var/www/html/myphone/forum/attachment.php</b> on line <b>175</b><br>
<br>
<b>Warning</b>:  Supplied argument is not a valid File-Handle resource in <b>/var/www/html/myphone/forum/attachment.php</b> on line <b>176</b><br>
<br>
<b>Warning</b>:  Supplied argument is not a valid File-Handle resource in <b>/var/www/html/myphone/forum/attachment.php</b> on line <b>177</b><br>
And yes, there is a thumbs directory on my forum path. And it's changed to 777, and guess what I see .tmp files in there

You have the safemode problem, but give me a link ill look into it directly for you.
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 02:53 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.06484 seconds
  • Memory Usage 2,318KB
  • 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
  • (3)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