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
  #432  
Old 12-05-2006, 05:29 PM
Ranma2k Ranma2k is offline
 
Join Date: Dec 2001
Location: Earth
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by encryption View Post
is there anyway to show the most recent X photos on the forum index ?
yes it can be done ..
Reply With Quote
  #433  
Old 12-06-2006, 06:21 AM
tschai's Avatar
tschai tschai is offline
 
Join Date: Nov 2006
Location: Netherlands
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Adam21 View Post
In your postbit at the place you wish
Code:
<div>
$vbphrase[vbimghost_myphotos]: (<a href="vbimghost.php?do=viewimages&id=$post[userid]">$post[vbimghost]</a>)
</div>
Hi Adam21,

Thanks for trying to help me out.

The code you've provided is already available as an extra with this Add-on and it works just fine.
However it also shows the text 'My photo: (0)' when a user doesn't got any (public) photos at all!
I know my user and they wil complain and they would be right since this does not add anything at all, if you don't publish the photo's.

So, the issue is:
I want this specific text/code only shown/executed when this variabel ($post[vbimghost]) is actually more then zero!
I'm just having troubles writing a decent <if>-statement with this variable...consider me a semi-noob

Thanks so far...

--edit--
Nevermind: <if condition="$post[vbimghost] > 0 "> did the trick....thanks...

PS: maybe this should be default in the add-on..
Reply With Quote
  #434  
Old 12-07-2006, 01:33 AM
beano33 beano33 is offline
 
Join Date: Feb 2003
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fxs158 View Post
Great Hack! How do I change the color of the box under statistics when we click upload images.


I have a black box and you cannot see the information as I imagine the font used for the info is black also.

Same problem here. I searched through the thread and couldn't find a fix.
Reply With Quote
  #435  
Old 12-07-2006, 01:39 PM
Ranma2k Ranma2k is offline
 
Join Date: Dec 2001
Location: Earth
Posts: 586
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just change it from the template..
Reply With Quote
  #436  
Old 12-08-2006, 11:56 AM
PondPikey PondPikey is offline
 
Join Date: Mar 2006
Location: England
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: getimagesize(/home/user/public_html/carpy/imagehosting/144d4e506cf85d.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /admincp/vbimghost.php on line 278

Im still unable to rebuild thumbnails, Checked and double checked installation and settings. I will probably uninstall until theres better support.

Quote:
Originally Posted by encryption View Post
is there anyway to show the most recent X photos on the forum index ?
Id be interested in this setting.
Reply With Quote
  #437  
Old 12-08-2006, 12:50 PM
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Location: Sth London
Posts: 1,042
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great addition .. clicked install .. works well on 3.6.4
Reply With Quote
  #438  
Old 12-08-2006, 05:42 PM
Phooey Phooey is offline
 
Join Date: May 2004
Location: Wisconsin, USA
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! I just installed it and it's working great so far. I really love the watermark feature.

*clicks install*
Reply With Quote
  #439  
Old 12-08-2006, 06:04 PM
FusionHosting FusionHosting is offline
 
Join Date: Jul 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just realized I posted a bug fix in the old 3.5.x thread, meant to post it here.

Seems to be a bug with this addon and particular .gif files when you have the 'thumbnail' option set to yes.

One of my users have been trying to upload their signature file but it keeps timing out in PHP. I am using the latest build in GD version 2.0.28. Latest version of VB.

The problem code seems to be:

Code:
switch ($imageExt){
                        case (".gif"):
                                        $srcImg = imagecreatefromgif("$imageDirectory/$imageName");
                                        $colortrans = imagecolortransparent($srcImg);
                                        $thumbImg = imagecreate($width, $height);
                                        imagepalettecopy($thumbImg,$srcImg);
                                        imagefill($thumbImg,0,0,$colortrans);
                                        imagecolortransparent($thumbImg,$colortrans);
                                        imagecopyresized($thumbImg,$srcImg,0,0,0,0,$width,$height,$imageWidth,$imageHeight);
                                        imagegif($thumbImg,"$thumbDirectory/$thumbName");
This doesn't happen with all .gifs, just this particular one at the time. Its a 330x120 pixels gif thats 17kb in size.

I've been able to upload smaller and larger gifs though.

The Fix:

I did a search and discovered 2 of the functions you used in the code were older ones meant for the original GD library.

I changed 2 lines to refer to the GD2 libraries and now the .gif thumbnailing is working correctly.
Here's the updated code:


Code:
switch ($imageExt){
                        case (".gif"):
                                        $srcImg = imagecreatefromgif("$imageDirectory/$imageName");
                                        $colortrans = imagecolortransparent($srcImg);
                                        $thumbImg = imagecreatetruecolor($width, $height);
                                        imagepalettecopy($thumbImg,$srcImg);
                                        imagefill($thumbImg,0,0,$colortrans);
                                        imagecolortransparent($thumbImg,$colortrans);
                                        imagecopyresampled($thumbImg,$srcImg,0,0,0,0,$width,$height,$imageWidth,$imageHeight);
                                        imagegif($thumbImg,"$thumbDirectory/$thumbName");
                                break;
imagecreatetruecolor, and imagecopyresampled were the two functions I swapped in.

Hope this helps anyone else with this issue.
Reply With Quote
  #440  
Old 12-10-2006, 06:18 PM
PondPikey PondPikey is offline
 
Join Date: Mar 2006
Location: England
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone tell me how to put the latest uploads (thumbnails) on forumhome?

PM's would be great if possible.
Reply With Quote
  #441  
Old 12-10-2006, 08:07 PM
StarBuG's Avatar
StarBuG StarBuG is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 1,033
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Thank you for this cool hack.
I have not read the full thread so I don't know if this was reported yet.

I think the add-ons should come with a permission if statement.
If a user is not allowed to upload images and clicks on "quick upload" he only gets the warning text about public images.
I think he should not see the whole quick upload thing at all.

I have tried "<if condition="$canupload">" but it does not work

Does anyone has an idea?
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:16 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.06323 seconds
  • Memory Usage 2,320KB
  • 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
  • (3)bbcode_code
  • (4)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
  • (4)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