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

Reply
 
Thread Tools
VB image Hosting Details »»
VB image Hosting
Version: 1.0.1, by Ranma2k Ranma2k is offline
Developer Last Online: Oct 2017 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.0 Rating:
Released: 08-08-2006 Last Update: 04-10-2007 Installs: 1108
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

VB Image Hosting Version 1.0.1

This is the port for my hack to vb 3.6.x
check it for vb 3.5.x here

A New installer replaced the old one so you should not face any problems with database

NOTE :
People who were using vbimghost in vb 3.5.x and moved to vb 3.6.0 MAKE sure that you have vbimghost 1.4.1 Since this port will only support upgrading from that ver only
People who do a fresh install use this ver.


Requirements:
  1. requires GD 2.0.1 or later (2.0.28 or later is recommended).
  2. PHP ver 4.3.x or later (newer ver is better).

Introduction:
What does it do ?
VB Image Hosting is a similar feature to imageshak and photopoket and online free image hosting, but this is for your members. it will allow them to upload and host their images on your servers, you can still manage the permissions and set the number of files for each group.
Main Features:
  • Image hosting
  • Restrict # of file upload for each group
  • Allow/disallow group from upload
  • Restrict file uploaded based on file extension, dimensions and size
  • Users can manage their uploaded files
  • Users can set the view permission for each uploaded images
  • Admin can mange all members images
  • Admin can set the number of images/users per page.
  • Admin can mange images uploaded by the members
  • Admin can set the default upload permission
  • Thumbnail system admin can turn it on/off.
  • Allow multiple uploads.
  • Admin can set upload slots for each group
  • Admin can recreate thumbnails from admin cp
  • Fully using the phrase system.
Time required to install
  • 1- 2 min max.

Update instruction :
Just replace the old files with the new ones and import the product file don't forget to select overwrite.

History:
1.0.0:
  • inital release contains everytverg in 1.4.1 ver.
1.0.1:
  • Fix security bug with delete image.
  • fix some minor mysql problems.
Download Tracking:
1.0.0 : 3886


Known Issues:
no known issues.

Screen shscreenshot.zip
screenshot.zip.


NOTE:
before you post any error here :
Set that path to your forums correctly in the vbimghost options.
if you getting the error "
"supplied argument is not a valid"
that's because you didn't set the path correctly

And for all the people asking when is the next release it will be in 2007 not this month .. due to some problems in real life ..



URGENT ISSUES:
you may contact me on msn id : waiel[at]waieleid.com
replace [at] with @ ok? -_-

Supporters / CoAuthors

Show Your Support

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

Comments
  #102  
Old 08-22-2006, 09:17 PM
upsetter upsetter is offline
 
Join Date: Aug 2006
Location: Toronto, On.
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by c0rupted
You do this with an FTP client or in a control panel or if you telnet ssh in, you can do this. (but the easiest way is with an FTP client like SmartFTP {Free Software} and you just right click on the folder and select "Change CHMOD")
Okay I did that it's 777 now, so the images upload fine and they show up now, but I am still getting an error:


Warning: getimagesize(/home/alex/public_html/forum/imagehosting/http://boostconcept.com/forum/images/watermark.png) [function.getimagesize]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 221


what could this be now?
Reply With Quote
  #103  
Old 08-23-2006, 11:38 AM
ForYou ForYou is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Ranma ,

What about Last 5 images uploaded that appear in member profile , I don't want 5 images and i need just 2 image show in members profile , from where can i edit this ,

Regards
Reply With Quote
  #104  
Old 08-23-2006, 03:13 PM
Ranma2k Ranma2k is offline
 
Join Date: Dec 2001
Location: Earth
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by upsetter
Okay I did that it's 777 now, so the images upload fine and they show up now, but I am still getting an error:


Warning: getimagesize(/home/alex/public_html/forum/imagehosting/http://boostconcept.com/forum/images/watermark.png) [function.getimagesize]: failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 221


what could this be now?
you set the path incorrectly

/home/alex/public_html/forum/imagehosting/http://boostconcept.com/forum/images/watermark.png) <-- that is wrong

for watermark just put hte name of the watermark file in the filed

and in the path set the just the path NOT the url
Reply With Quote
  #105  
Old 08-23-2006, 03:15 PM
Ranma2k Ranma2k is offline
 
Join Date: Dec 2001
Location: Earth
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ForYou
Hello Ranma ,

What about Last 5 images uploaded that appear in member profile , I don't want 5 images and i need just 2 image show in members profile , from where can i edit this ,

Regards
You have to modify the plugin
and set the limit to 2 in the SQL there
Reply With Quote
  #106  
Old 08-24-2006, 01:29 PM
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Location: Houston, Texas
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Error found when uploading an image. Looks like it is referring to the watermarking feature. The image is uploaded fine, despite the error, so maybe it's just not able to apply the watermark?

Quote:
Warning: imagecreatefromjpeg(/home/ijgrpcym/public_html/goclubbing/imagehosting/244edb60044eb5.jpg): failed to open stream: No such file or directory in /includes/vbimghost_include.php on line 175

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 176

Warning: imagecreatetruecolor(): Invalid image dimensions in /includes/vbimghost_include.php on line 176

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecopy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 177

Warning: imagecolorallocate(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 189

Warning: imagesx(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 195

Warning: imagesy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 196

Warning: imagestring(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 201

Warning: imagejpeg(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 209

Warning: imagedestroy(): supplied argument is not a valid Image resource in /includes/vbimghost_include.php on line 210




Redirecting...


image uploaded

Click here if your browser does not automatically redirect you.
Lines 175-177:

Code:
				$img2 = imagecreatefromjpeg($img);
				$tempimage = imagecreatetruecolor(imagesx($img2), imagesy($img2));
				imagecopy($tempimage, $img2, 0, 0, 0, 0, imagesx($img2), imagesy($img2));
Line 189:

Code:
  		$text_color = imagecolorallocate($img2, $red, $green, $blue);
Line 195-196:

Code:
  			 $pos_x=(int)(imagesx($img2) / 2) - ($text_width / 2);
  			 $pos_y= (int)(imagesy($img2) / 2) - ($text_height / 2);
Line 201:

Code:
  		 imagestring($img2, $wmtexts, $pos_x, $pos_y, $wmtext, $text_color);
Line 209-210:

Code:
					imagejpeg($img2,$img,100);
					imagedestroy($tempimage);
Reply With Quote
  #107  
Old 08-24-2006, 01:37 PM
Ranma2k Ranma2k is offline
 
Join Date: Dec 2001
Location: Earth
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by y2krazy
Error found when uploading an image. Looks like it is referring to the watermarking feature. The image is uploaded fine, despite the error, so maybe it's just not able to apply the watermark?



Lines 175-177:

Code:
				$img2 = imagecreatefromjpeg($img);
				$tempimage = imagecreatetruecolor(imagesx($img2), imagesy($img2));
				imagecopy($tempimage, $img2, 0, 0, 0, 0, imagesx($img2), imagesy($img2));
Line 189:

Code:
  		$text_color = imagecolorallocate($img2, $red, $green, $blue);
Line 195-196:

Code:
  			 $pos_x=(int)(imagesx($img2) / 2) - ($text_width / 2);
  			 $pos_y= (int)(imagesy($img2) / 2) - ($text_height / 2);
Line 201:

Code:
  		 imagestring($img2, $wmtexts, $pos_x, $pos_y, $wmtext, $text_color);
Line 209-210:

Code:
					imagejpeg($img2,$img,100);
					imagedestroy($tempimage);
that's because your PATH are wrong ...

MAKE SSURE YOU SET THE PATH CORRECTLY !!
Reply With Quote
  #108  
Old 08-24-2006, 02:23 PM
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Location: Houston, Texas
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

EDIT: Nevermind. I have one of the letters backwards. Thanks for the help.

Also, I'm making a tons of changes to make it more "pleasing" to the eye, so if you don't mind, I'll be posting some changes that I would like to see in the next release (template and phrase fixes).

One more thing, is there a method to deleting the images from the "imagehosting" directory when it is deleted from the database (like when you click Delete Image from the forums)?
Reply With Quote
  #109  
Old 08-24-2006, 02:58 PM
Ranma2k Ranma2k is offline
 
Join Date: Dec 2001
Location: Earth
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by y2krazy
EDIT: Nevermind. I have one of the letters backwards. Thanks for the help.

Also, I'm making a tons of changes to make it more "pleasing" to the eye, so if you don't mind, I'll be posting some changes that I would like to see in the next release (template and phrase fixes).

One more thing, is there a method to deleting the images from the "imagehosting" directory when it is deleted from the database (like when you click Delete Image from the forums)?
when you delete it
it will delete the file from the folder and the database
but if you removed it from the database you'll have to delete it manually
as for the modification i don't mind i'm already working on some of the request i received
Reply With Quote
  #110  
Old 08-24-2006, 03:14 PM
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Location: Houston, Texas
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, I got the templates and phrases all worked out. I have attached my fixes and modifications to make them look as close to the default look vB gives as possible. I would really love to see these changes in the next update as they make it look more professional and more like it was integrated into the existing vB styles.

Only problem that remains is the $pages command in the templates.

Template: vbimghost_main

Find:

Code:
$pages
Question:

Is there a way to make this not show unless pages actually exist? When viewing the VB Image Host pages, it shows this as a break and gives it a weird look. View the attached screenshot (vbimghost_main_pages.jpg).
Reply With Quote
  #111  
Old 08-24-2006, 03:30 PM
y2krazy y2krazy is offline
 
Join Date: Jun 2003
Location: Houston, Texas
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here are screenshots of the changes to the phrases and templates. Please let me know if you will make these changes for the next version as I think they look like they fit more with the rest of vBulletin.
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:24 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.07100 seconds
  • Memory Usage 2,333KB
  • 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
  • (11)bbcode_code
  • (6)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
  • (3)pagenav_pagelinkrel
  • (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