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

Reply
 
Thread Tools
Vbimghost ver 2.0.0 Details »»
Vbimghost ver 2.0.0
Version: 2.0.0, by Ranma2k Ranma2k is offline
Developer Last Online: Oct 2017 Show Printable Version Email this Page

Category: Major Additions - Version: 4.0.2 Rating:
Released: 02-28-2010 Last Update: 02-28-2010 Installs: 102
DB Changes Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

VB Image Hosting Version 2.0.0

This is the port for my hack to vb 4.0.x You can see the old ver of vbimghost 1.0.1

Note: I don't not recommend using it as a new hack, since Albums in the vbulletin does the same thing even better. this is mainly to people who used vbimghost on previous version and want to use it on vb 4.0.x

The port is just modification to the the template ( Not fully CSS ) and supporting the new plug ins .

A converter for vbimghost to vbulletin albums is under development. and will be included here when it's done.
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 min max.

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

Update vbimghost options Note: [best thumb size width * hight = 100 * 200]


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

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

Download Now

File Type: zip Vbimghost_2.0.0.zip (24.2 KB, 860 views)

Show Your Support

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

Comments
  #82  
Old 06-14-2012, 10:22 PM
indy1979 indy1979 is offline
 
Join Date: Jan 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I'm getting sick of waiting for a "Conversion Tool". Here is what I've come up with so far...

First, I went in the DB and exported the vb_vbimghost table as a CSV. I then edited the CSV to have the following columns (userid, imageName, imageURL)

With the new CSV in hand, I wrote the following script to download all of the users' images in to a separate directory matching their userid.

Code:
#!/bin/bash
INPUT=./inputfile2.csv
OLDIFS=$IFS
IFS=,
testCol=222
[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
while read col1 col2 col3
do
	curl --create-dirs $col3 -o ./$col1/$col2
done < $INPUT
IFS=$OLDIFS
Now I have a directory structure of $userid/$imagename

This is as far as I've gotten. If someone knows how to force an upload in to the Albums portion of VB4 as a specific userid, please feel free to update.

*EDIT*

At this point, I'm not at all worried about breaking existing links on other websites. I'd rather take the heat for that than not being able to upgrade my board because of a heavily used mod.
Reply With Quote
  #83  
Old 07-25-2012, 09:43 AM
Alex@Mk3OC Alex@Mk3OC is offline
 
Join Date: Dec 2007
Location: Northants, UK
Posts: 144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone got this working on 4.2? Only think I can't sort is the navbar
Reply With Quote
  #84  
Old 09-05-2012, 01:41 AM
Mauro79 Mauro79 is offline
 
Join Date: Apr 2011
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could make it functional for 4.2?
fails, and no panel to gain many pictures.
Please
Reply With Quote
  #85  
Old 10-04-2012, 07:48 PM
alzaabi alzaabi is offline
 
Join Date: Mar 2012
Location: Sweden
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how to make this work on vb 4.20
Reply With Quote
  #86  
Old 11-26-2012, 01:37 AM
XGC Paravain's Avatar
XGC Paravain XGC Paravain is offline
 
Join Date: Oct 2012
Location: Millbury,Mass
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where can I go to view the path to my forums so I can just copy and paste the path in the settings? Yes I got the 404 error
Reply With Quote
  #87  
Old 11-26-2012, 09:30 PM
XGC Paravain's Avatar
XGC Paravain XGC Paravain is offline
 
Join Date: Oct 2012
Location: Millbury,Mass
Posts: 184
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I found my path and still getting the message 404 not found is this thread active?
Reply With Quote
  #88  
Old 12-27-2012, 01:45 AM
indy1979 indy1979 is offline
 
Join Date: Jan 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, since its pretty evident that no one is working on this mod anymore and it breaks with the install of 4.2, I am providing how I am transitioning my users away from this mod so that I can upgrade my board.

Follow the instructions I posted above to get a directory structure of all of your users images inside the image hosting mod.

Next, I ran the following script and input the parent directory holding all of the userid directories as an input to script.

Code:
#!/bin/bash

  IFS=$'\n'

  for f in $(find "$1" -mindepth 1 -maxdepth 1 -type d ); do
    zip -r "$f" "$f"
  done
Here is my command to run the script:
Code:
./zipSEDSM.sh SEDSMConversion
After the script runs, you will have a zip file of each of the userid directories. Now move all of these zip files into a directory on your server that is preferably inside your forum directory. In my case I put all of the zip files in to a folder called IHBackup so that my url to access it would be http://www.domain.com/IHBackup/xxx.zip.

Now that we have the backup done, it's time to give the users access to their zip files.

Go to AdminCP -> Styles & Templates -> Style Manager

Select Edit Template for each style you are offering your users.

Expand Member Info Templates and double click MEMBERINFO

Search for:
Code:
<vb:if condition="$show['contactlinks'] AND $show['pmlink']">
and add above it:

Code:
<li>
<a href="IHBackup/{vb:raw prepared.userid}.zip"><img src="{vb:stylevar imgdir_siteicons}/homepage.png" class="inlineimg" />Download Image Hosting Archive</a>
</li>
While we are in the template editor, scroll down to vbimghost_navbits and edit it.

Change:

Code:
<li><a href="vbimghost.php?do=upload">{vb:phrase vbimghost_menuupimg}</a></li>
to

Code:
<!--<li><a href="vbimghost.php?do=upload">{vb:phrase vbimghost_menuupimg}</a></li>-->
This will prevent users from uploading new images in to the mod and force them to use the Gallery/Album feature.

Now go to AdminCP -> Plugins & Products -> Plugin Manager

Scroll down to the VB Image Hosting section and uncheck all of the checkboxes except for vbimghost_navbits and click Save Active Status.

VB Image Host should now be somewhat disabled/restricted so that users will only be able to look at the contents of it. They will also now have a link to download the archive of their hosting information.

I basically told my users that they can download their images and reupload them into their albums if they want to reuse them. Albums also provides the external link for them.
Reply With Quote
  #89  
Old 03-31-2013, 07:14 AM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Note: I don't not recommend using it as a new hack, since Albums in the vbulletin does the same thing even better. this is mainly to people who used vbimghost on previous version and want to use it on vb 4.0.x
Hmmm.. so may be there is album uploader can be done to be able to upload images via quick reply/reply/new thread form and insert them into message?
Reply With Quote
  #90  
Old 02-10-2014, 01:41 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by indy1979 View Post
Ok, I'm getting sick of waiting for a "Conversion Tool". Here is what I've come up with so far...

First, I went in the DB and exported the vb_vbimghost table as a CSV. I then edited the CSV to have the following columns (userid, imageName, imageURL)

With the new CSV in hand, I wrote the following script to download all of the users' images in to a separate directory matching their userid.

Code:
#!/bin/bash
INPUT=./inputfile2.csv
OLDIFS=$IFS
IFS=,
testCol=222
[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
while read col1 col2 col3
do
    curl --create-dirs $col3 -o ./$col1/$col2
done < $INPUT
IFS=$OLDIFS
Now I have a directory structure of $userid/$imagename

This is as far as I've gotten. If someone knows how to force an upload in to the Albums portion of VB4 as a specific userid, please feel free to update.

*EDIT*

At this point, I'm not at all worried about breaking existing links on other websites. I'd rather take the heat for that than not being able to upgrade my board because of a heavily used mod.
What did you end up doing? I am looking into a similar issue. I have a client who has the database table and files only and would like to move those into the albums system.
Reply With Quote
  #91  
Old 03-06-2016, 01:47 AM
twistsol's Avatar
twistsol twistsol is offline
 
Join Date: Apr 2015
Location: Cottage Grove, MN
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there still any interest in a converter?

I'm in the middle of writing one for my board because it is necessary. It's probably still a couple of weeks away depending on how much time I get to work on it, and it will be ugly. I'm at a point that I need to decide if I write for one time use for my site only or if it is going to be released into the wild.
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 05:16 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.04769 seconds
  • Memory Usage 2,347KB
  • 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
  • (8)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)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
  • (1)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete