vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   VB image Hosting (https://vborg.vbsupport.ru/showthread.php?t=106127)

Ranma2k 01-22-2006 10:00 PM

VB image Hosting
 
VB Image Hosting Version 1.4.2

Please note that next ver will not support older ver update.

Frensh ver is avilable to download Thanks to
tandy
Port to Vbulletin 3.6.0 can be found here

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 extention, 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.
  • Image thump is set to 320 * 240 if the image dimension is bigger.
  • 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.
Updates:
1.0.1:Fixed an error when listing the users also removed a line that causes the script to generate a java script error, fixed viewing members files redirect error to profile
1.2.0:
  1. Added thumbs option to generate thumbs
  2. Fixed viewing other members pics result in error
  3. Fixed cached template to reduce quary
  4. Fix for sites that uses content management systems ( variabls doen't get pass correctly )
  5. hack is now fully using the phrase system. ( easy to translate )
1.2.1:
  1. Fixed minor bug when viewing the images ( just replace vimghost.php with the one in the attached file no need to import the xml )
1.3.0:
  1. Fixed the thumbnail working 100% ok with GD1 & GD2.
  2. Added the ability to upload multiple files.
  3. Admin can control max upload slots for each group.
  4. Admin can view member images.
  5. Admin can set the default permission for viewing.
  6. Admin can rebuild thumbnail for all images.
  7. Fixed some bugs regarding uploading images.
1.3.1:
  1. Fixed the getimagesize error.
  2. Fixed Guest upload / view.
  3. Added abillity to turn on/off the imagehosting ( the group who can admin still can access it though ).
  4. Added Watermark function. (thx to TomasDR ).
  5. Added Resize Function.
  6. Added Admin can view all images from admincp.
  7. Added Display image in forum page.
1.3.1a:
  1. Remodified the information showed in the image
  2. Fixed resize issue with small images
1.4.0:
  1. Remodified the way images are shown.
  2. Fixed some security issues with the script
    1. Prevent showing the images when it's priviate ( members uses to browse private images with imgids )
    2. Prevent uploading any files that not an image ( prevent uploading scripts to the site).
  3. added text watermarking.
  4. added filmstrip.
  5. added 3 adons (show last 5 imgaes in member info, show number of images in postbit and Quck upload / gallary insert in the thread / reply post).
1.4.1
  1. Added old view image style ( now you can chose either row or column view )
  2. Fixed filmstrip not showing ( template was not included )
  3. Fixed filmstrip condition ( to chose either to show or not)
  4. Fixed gallery view in new thread/post ( thumbs were not showing )
  5. Fixed last 5 images in member info ( was working in the old way ).
  6. added font size for text water marking.
1.4.2:
  1. fixed security issue with image deletion
  2. fixed minor mysql problem
To update to the latest ver (1.4.2) just replace the files and import the product make sure you select overwrite when you import it.

Download track:
ver 1 - 1.4.0 : no tracks :) ver 1.4.1: 673 downloads

Known Issues:
no known issues
Special thanks to :
  1. loneranger since it's his main idea.
  2. Psionic Vision: for his tutorials
Screen shots :
Check screenshot.zip file / New screen shot in screenshot2.zip

evenmonkeys 01-23-2006 07:42 PM

I like this. Thanks.

Ziki 01-23-2006 07:46 PM

But my members can delete the images freely...

Ranma2k 01-23-2006 07:49 PM

Quote:

Originally Posted by ZIKI-SET
But my members can delete the images freely...

The user can only delete thier own images.
or if they are a member of a group that can admin the images ( they can only admin public images set by the image uploader)

gael11 01-23-2006 08:38 PM

I love.
It seems to be easy and nice to use :)

EDIT: where is the pack to download ?

The Chief 01-23-2006 08:49 PM

Can this be used as a member's gallery and then put something like this member's recent images hosted or?

it would be so awesome... :D

Snake 01-23-2006 08:51 PM

Wow this could be useful for my forums. Thanks bro! :D

Ranma2k 01-23-2006 09:00 PM

Quote:

Originally Posted by gael11
I love.
It seems to be easy and nice to use :)

EDIT: where is the pack to download ?

had to edit something in it :) it's up again

Ranma2k 01-23-2006 09:01 PM

Quote:

Originally Posted by gamebgs
Can this be used as a member's gallery and then put something like this member's recent images hosted or?

it would be so awesome... :D

you can do that also

The Chief 01-23-2006 09:04 PM

Quote:

Originally Posted by Ranma2k
you can do that also

could you give us some heads up on how this could be used that way..?

like is their some preview functions (thumbnails) then something that we could use to get those latest previews...

Thanks for your time Ranma...

Ranma2k 01-23-2006 09:09 PM

Quote:

Originally Posted by gamebgs
could you give us some heads up on how this could be used that way..?

like is their some preview functions (thumbnails) then something that we could use to get those latest previews...

Thanks for your time Ranma...

well I'm planning to add a thumbnails in the next release.
Currently it can't be 100% gallery it's somewhat a gallery if you view the list of users who uploaded
The main function of it was to host images not to view them as gallery ..

but I'll keep that in mind in the next release

The Chief 01-23-2006 09:20 PM

Quote:

Originally Posted by Ranma2k
well I'm planning to add a thumbnails in the next release.
Currently it can't be 100% gallery it's somewhat a gallery if you view the list of users who uploaded
The main function of it was to host images not to view them as gallery ..

but I'll keep that in mind in the next release

Well there isn't a free version of a member's gallery yet and I am sure this would be VERY popular if it could do ABOUT the same thing, thanks for keeping that in mind Ranma :D

nice work!

tell me when you try it and I will test it for you..

Ranma2k 01-23-2006 09:29 PM

Quote:

Originally Posted by gamebgs
Well there isn't a free version of a member's gallery yet and I am sure this would be VERY popular if it could do ABOUT the same thing, thanks for keeping that in mind Ranma :D

nice work!

tell me when you try it and I will test it for you..

well if you looking for a free gallery try this :)
https://vborg.vbsupport.ru/showthrea...hlight=gallery

The Chief 01-23-2006 09:41 PM

Quote:

Originally Posted by Ranma2k
well if you looking for a free gallery try this :)
https://vborg.vbsupport.ru/showthrea...hlight=gallery

that's no where close to what I was saying, I meant something like a member's own photos, a member's OWN gallery, that mod is just a template edit... :(

Ranma2k 01-23-2006 09:47 PM

Quote:

Originally Posted by gamebgs
that's no where close to what I was saying, I meant something like a member's own photos, a member's OWN gallery, that mod is just a template edit... :(

oh ok :)
will be working on it :)

theFAILURE 01-23-2006 10:11 PM

This looks very nice.

One Question:

Will this hack upload images to a different server other than the one the forum is on?

I have a "media" server that I use for audio and pics that has a differnt ip.

TY in advance!

Ranma2k 01-23-2006 10:16 PM

Quote:

Originally Posted by theFAILURE
This looks very nice.

One Question:

Will this hack upload images to a different server other than the one the forum is on?

I have a "media" server that I use for audio and pics that has a differnt ip.

TY in advance!

No curently it's set to be used the same server the site is on
but that is an intresting idea .. will add it in the to do list :)

rb290 01-23-2006 11:27 PM

is this bandwidth needed or something

dirtycrow 01-24-2006 01:57 AM

any reason why my members can not view other members uploads?

when they click on "view all members images" they don't see other members images.

007 01-24-2006 02:05 AM

Very cool! Would be great to let people specify X number of photos to display in their profile, with a link to the rest of them.

Would also be cool if admins can specify a .png image to be used as a watermark on the lower right side of each uploaded image. :)

Will be watching this one and will probably install soon! :)

dirtycrow 01-24-2006 02:11 AM

also is there any way to make all images public?

Reef 01-24-2006 03:59 AM

I had to comment this line out in vbimghost.php to get my navbar dropdowns working. Was getting javascript errors before.

Code:

$headinclude = str_replace('clientscript', $vbulletin->options['bburl'] . '/clientscript', $headinclude);

Ranma2k 01-24-2006 05:33 AM

Quote:

Originally Posted by dirtycrow
any reason why my members can not view other members uploads?

when they click on "view all members images" they don't see other members images.

if the uploader want the members to see his images he have to set the image to Public
other wise it won't show to anyone else

Ranma2k 01-24-2006 05:34 AM

Quote:

Originally Posted by 007
Very cool! Would be great to let people specify X number of photos to display in their profile, with a link to the rest of them.

Would also be cool if admins can specify a .png image to be used as a watermark on the lower right side of each uploaded image. :)

Will be watching this one and will probably install soon! :)

That i'll be working on it for the next release

Ranma2k 01-24-2006 05:40 AM

Quote:

Originally Posted by dirtycrow
also is there any way to make all images public?

owner can set it public only ..

When a user upload an image it will be by defualt private .

If you want it all images uploaded to be public by defult
open the file vbimghost.php
and find the line 402

PHP Code:


            $sql
="INSERT INTO ".TABLE_PREFIX."vbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` ) 
            VALUES ('', '"
.$userid."', '".$imguname."', '".$upfilename."', '".$upfilesize."', '".$dime[0]."', '".$dime[1]."', '".TIMENOW."', '1')"

and replace it with

PHP Code:

            $sql="INSERT INTO ".TABLE_PREFIX."vbimghost ( `imgid` , `userid` , `imgfile` , `imgname` , `imgfilesize` , `imgwidth` , `imgheight` , `imgdate` , `imgprivate` ) 
            VALUES ('', '"
.$userid."', '".$imguname."', '".$upfilename."', '".$upfilesize."', '".$dime[0]."', '".$dime[1]."', '".TIMENOW."', '0')"

but the main idea is to give your user the freedom to set what ever they want to public view

Ranma2k 01-24-2006 05:45 AM

Quote:

Originally Posted by Reef
I had to comment this line out in vbimghost.php to get my navbar dropdowns working. Was getting javascript errors before.

Code:

$headinclude = str_replace('clientscript', $vbulletin->options['bburl'] . '/clientscript', $headinclude);


yeb i have removed it also from the file

Thanks for reporting it

Ranma2k 01-24-2006 06:01 AM

Quote:

Originally Posted by rb290
is this bandwidth needed or something

well viewing the images going to use the bandwidth from your site ..

dirtycrow 01-24-2006 01:03 PM

hmmm. . for some reason only one user at a time has thier images display in the "listing users "page. i've uploaed a couple of images with test accounts and set all the images to public and the accounts do not show up in the "listing users" page

Ranma2k 01-24-2006 02:49 PM

Quote:

Originally Posted by dirtycrow
hmmm. . for some reason only one user at a time has thier images display in the "listing users "page. i've uploaed a couple of images with test accounts and set all the images to public and the accounts do not show up in the "listing users" page

Can you give me a link to your forums and i'll see what's wrong

it should show you the users who set the uploaded images to public view

dirtycrow 01-24-2006 02:53 PM

Quote:

Originally Posted by Ranma2k
Can you give me a link to your forums and i'll see what's wrong

it should show you the users who set the uploaded images to public view

what info do you need?

a user name and log in?

i have my forum set up so that only registared users can log in.

Ranma2k 01-24-2006 02:57 PM

just a link to see the problem ..
if you can give me a demo user to test with it
it's fine

dirtycrow 01-24-2006 02:59 PM

Quote:

Originally Posted by Ranma2k
just a link to see the problem ..
if you can give me a demo user to test with it
it's fine

thank you! sent info via PM

Ranma2k 01-24-2006 03:30 PM

Quote:

Originally Posted by dirtycrow
thank you! sent info via PM

Ok found it ..

to fix your problem just replace the vbimghost.php file that you have with the one in the zip file ..

thanks for pointing the error out

dirtycrow 01-24-2006 03:41 PM

Quote:

Originally Posted by Ranma2k
Ok found it ..

to fix your problem just replace the vbimghost.php file that you have with the one in the zip file ..

thanks for pointing the error out

WOW! thank you sir!@

Dreamchaser 01-24-2006 03:50 PM

Couple Of Issues and Suggestions :

I have a different skin, not the default one that comes with vBulletin, in my skin the navbar links are'nt in text, they are in image, I did create and implement image for the image hosting and introduced it there and seems to working fine, how do I get rid of the arrow icon that you have integrated in the id=vbimghost, where can I edit to remove that small arrow, as I have designed a arrow withing the image.

Next, after everything was completed, and working fine, when I click to upload image, view image or perform any operation, i just get same error as that there are no images and something same of the sort.

Once you clear my doubts and this suggestion, I will try re-installing again!

Thanks a lot for this hack, I have been looking for some long time and finally its here, just provide a support for people using images in navbar !

Regards,
DC

Ranma2k 01-24-2006 03:51 PM

Quote:

Originally Posted by dirtycrow
WOW! thank you sir!@

if you can help me out here :)
and check your admin/permissions also if it works fine or not ..

i'll be around for another 2 hours :)

dirtycrow 01-24-2006 03:53 PM

Quote:

Originally Posted by Ranma2k
if you can help me out here :)
and check your admin/permissions also if it works fine or not ..

i'll be around for another 2 hours :)

all work now. thank you again!

Ranma2k 01-24-2006 04:01 PM

Quote:

Originally Posted by Dreamchaser
Couple Of Issues and Suggestions :

I have a different skin, not the default one that comes with vBulletin, in my skin the navbar links are'nt in text, they are in image, I did create and implement image for the image hosting and introduced it there and seems to working fine, how do I get rid of the arrow icon that you have integrated in the id=vbimghost, where can I edit to remove that small arrow, as I have designed a arrow withing the image.

Next, after everything was completed, and working fine, when I click to upload image, view image or perform any operation, i just get same error as that there are no images and something same of the sort.

Once you clear my doubts and this suggestion, I will try re-installing again!

Thanks a lot for this hack, I have been looking for some long time and finally its here, just provide a support for people using images in navbar !

Regards,
DC

I didn't creat the arrow it's generated by the vbulletin it self
and what is the url that your getting .. when you want to upload ?!

Dreamchaser 01-24-2006 11:50 PM

I get the url as vbmghost.php?do=upload if I am not wrong, and is there anyway for me to ignore the arrow mark ? Can you look into this issue ? I am using iSkin from eXtremepixels!

Ranma2k 01-25-2006 04:12 AM

Quote:

Originally Posted by Dreamchaser
I get the url as vbmghost.php?do=upload if I am not wrong, and is there anyway for me to ignore the arrow mark ? Can you look into this issue ? I am using iSkin from eXtremepixels!

yes you can ignore it

i saw a site that uses the same script and the menu worked fine with him. in order to help you with your problem can you send me your website url & a user/pass to see what went wrong with you


All times are GMT. The time now is 06:26 AM.

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.02098 seconds
  • Memory Usage 1,862KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete