View Full Version : Major Additions - Vbimghost ver 2.0.0
Ranma2k
02-28-2010, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=123481)
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:
requires GD 2.0.1 or later (2.0.28 or later is recommended).
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:
[B]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? -_-
does it allow bulk uploading?
screenshots?
tafreeh
03-01-2010, 05:45 AM
wat about watermarking ?
sodagod
03-01-2010, 08:46 AM
Demo: Removed by Staff*
roadrunna
03-01-2010, 10:44 AM
Thanks for porting this one over :D
Si
Big-Pete
03-01-2010, 11:06 AM
wat about watermarking ?
Watermarking is still there..
Thanks for porting this over... :)
sodagod
03-01-2010, 01:46 PM
this is brilliant! :D my sites own photobucket :p Thanks
Mohamed Ashraf
03-01-2010, 01:49 PM
i edited vbimghost_displayimg template to this
<script type="text/javascript">
function SelectAll(id)
{
document.getElementById(id).focus();
document.getElementById(id).select();
}
</script>
<br />
<br />
<div id="picturecontainer">
<div id="picturelink"><img alt="{vb:raw vbimghost.imgname}" src="{vb:raw vbimghost.path}" title="{vb:raw vbimghost.imgname}"></div>
<br /><br />
<dl id="picturestats" class="stats">
<table border="2" width="70%" bordercolor="#008000" cellpadding="2">
<tr>
<td width="200"><dt>{vb:phrase vbimghost_filesize}</dt></td>
<td><dd>{vb:raw vbimghost.filesize}</dd></td>
</tr>
<tr>
<td width="200"><dt>{vb:phrase vbimghost_imgdime}</dt></td>
<td ><dd>{vb:raw vbimghost.width} X {vb:raw vbimghost.height}</dd></td>
</tr>
<tr>
<td width="200"><dt>{vb:phrase vbimghost_update}</dt></td>
<td><dd>{vb:raw vbimghost.date}</dd></td>
</tr>
<tr>
<td width="200"><dt>{vb:phrase vbimghost_imgdlink}</dt></td>
<td><dd>
<input id="imgdlink" onClick="SelectAll('imgdlink');" type="text" value="{vb:raw vbimghost.path}" size="70" /></dd></td>
</tr>
<tr>
<td width="200"><dt>{vb:phrase vbimghost_imgflink}</dt></td>
<td><dd><input id="imgflink" onClick="SelectAll('imgflink');" type="text" size="70" value="{vb:raw vbimghost.thumbpath} ('{vb:raw vbimghost.dispath}')" /></dd></td>
</tr>
<tr>
<td width="200"><dt>{vb:phrase vbimghost_imglink}</dt></td>
<td><dd><input id="imglink" onClick="SelectAll('imglink');" type="text" size="70" value="<a href='{vb:raw vbimghost.dispath}' border=0><img src='{vb:raw vbimghost.thumbpath}'></a>" /></dd></td>
</tr>
<tr>
<td width="200"><dt>{vb:phrase vbimghost_perm} </dt></td>
<td>{vb:raw vbimghost.private}</td>
</tr>
</table>
</div>
good job
Regards
dodgechargerfan
03-01-2010, 02:39 PM
Thanks very much for this! My imagehosting has been sitting in limbo, waiting for this update.
Everything is working fine except for rebuilding thumbnails. I get this error:
Warning: getimagesize(/home/user/public_html/forums/imagehosting/3440cd97e04ed3.jpg) [function.getimagesize]: failed to open stream: No such file or directory in [path]/*******/vbimghost.php on line 280
Note that the ******* is there to hide my renamed admincp.
As for the converter to move to albums, that is an interesting thought.
If I can suggest that the default privacy setting for pictures be private.
The reason - for me- is that I use another mod that puts random album pictures on FORUMHOME. That's not something we'd necessarily want to happen with the images in our imagehosting app.
We tend to use imagehosting to host files that we then link in to specific posts rather than for a browsable album sort of thing.
Thanks again!!
dodgechargerfan
03-01-2010, 03:21 PM
GACK!
Never mind. Just noticed that the path changed to the default.
Since I've had this mod installed for some time, I didn't expect that to get changed, so I forgot to check it...
Sorry. :P
hiker
03-01-2010, 07:34 PM
I was looking for a way to be able to hotlink some of my images to other forums, doing a little campaigning. In phpbb I could get the .jpg address of my attachments, but in vbulletin I can't.
Rather, it gives me the attachment ID, and a lot of forum software can't interpret this.
Would this addon help my users obtain the .jpg / .gif / .png...... url addresses from their attachments, such as in an easy right click and "copy image location"?
Thanks.
Switch3130
03-01-2010, 09:24 PM
Very nice work with this...this actually was the last mod I needed upgraded so i appreciate it.
hilfe-forum
03-01-2010, 09:32 PM
Must uninstall this useful Adon..
This ad a new Tab in Navbar thats soooo bad to much Adons make this. :rolleyes:
So you have 123 Tabs :eek:
Mohamed Ashraf
03-01-2010, 09:37 PM
I was looking for a way to be able to hotlink some of my images to other forums, doing a little campaigning. In phpbb I could get the .jpg address of my attachments, but in vbulletin I can't.
Rather, it gives me the attachment ID, and a lot of forum software can't interpret this.
Would this addon help my users obtain the .jpg / .gif / .png...... url addresses from their attachments, such as in an easy right click and "copy image location"?
Thanks.
yes it gives you an images url not as attachment
roadrunna
03-02-2010, 02:28 PM
Has anybody else had a problem with this and comments in the CMS system ?
It seems that when a comment is added to an article with the Image Hosting product turned on it white screens.
Turning off the plugins one by one shows it to be a conflict on the "My Photo post bit" plugin with the "showthread_postbit_create" hook.
Any ideas ?
alkrida
03-02-2010, 07:47 PM
it did not work with me in 402
and one work with ?
Manoel J?nior
03-02-2010, 08:14 PM
it did not work with me in 402
and one work with ?
What error?
Manoel J?nior
03-04-2010, 12:38 AM
Could have a checkbox for the User to the deletion of multiple photos.
And..
And put these hacks:
https://vborg.vbsupport.ru/showthread.php?t=228618
https://vborg.vbsupport.ru/showthread.php?t=233707&highlight=album
Possible?
mhackl
03-06-2010, 05:29 AM
Albums in the vbulletin does the same thing even better.
I disagree
cindy helmond
03-07-2010, 09:50 AM
how to remove the tab in the navbar ?
thx
sinikuk
03-07-2010, 01:34 PM
how to remove the tab in the navbar ?
thx
vbimghost_navbits... worked for me.
tweakmonkey
03-10-2010, 06:23 PM
Thanks for still supporting this and huge thanks for the recent update. I had some warning errors on my template which may explain why, but I don't have the image hosting on the Quick Reply feature yet. I will look into it later this evening when I have time.
Again, this update is very much appreciated, my forum users will be extremely pleased.
reifegerste
03-13-2010, 08:54 AM
Hi,
i get this error message if i activate the mod and go to the CMS Comments.
Fatal error: Call to a member function query_read() on a non-object in /var/www/web1/html/vbulletin/packages/vbcms/comments.php(693) : eval()'d code on line 15
Can anyone help me with this problem?
ALBCODERS
03-13-2010, 11:39 AM
how to remove the tab in the navbar ?
thx
Same here!
meonet
03-17-2010, 08:21 AM
Some update here?
WoodPusher
03-17-2010, 02:24 PM
Been waiting for this, upgraded mad easily as well. Thank you!
tweakmonkey
03-24-2010, 04:02 AM
I have installed the 2.0 version and it still works for some purposes, not for others.
The main gallery where you can upload several files (eg: /forums/vbimghost.php?do=myimages&pp=20&page=1) works fine.
Using the Quick Upload feature shows a blank page once the image would be done (it IS added to the gallery, but there's no confirmation message and the code does not appear in the Post Reply box.
Also, using the "Open" button here loads the gallery, but clicking the images does not put the code into the textbox.
Here's the code for the link:
div id="vbimghostlinks">[<a href="#" onclick="window.open('vbimghost.php?do=popup&ed=vB_Editor_001','vbimghost1','scrollbars=yes,res izable=yes,width=550,height=500'); return false" title="Pick">Open</a>] [<a href="#" onclick="window.open('vbimghost.php?do=popupload&ed=vB_Editor_001','vbimghost2','scrollbars=yes,res izable=yes,width=562,height=97'); return false" title="Upload">Quick Upload]</a></div>
Edit
Ah! It works fine with the WYSIWYG editor, but not the enhanced. Also the quick links do not appear with Quick Reply at all. I'll keep reading :)
clarkstoncracke
03-27-2010, 02:04 PM
I have over 15,000 images uploaded using vbimghost. My problem is so many users have deleted files that I get 2-5 404 errors each minute because the server is trying to pull up a missing file (since it was deleted).
Is there any way to fix this, such as replacing all deleted images with a small image file automatically when someone deletes a file?
mobe00
03-28-2010, 09:29 PM
Hi,
i get this error message if i activate the mod and go to the CMS Comments.
Fatal error: Call to a member function query_read() on a non-object in /var/www/web1/html/vbulletin/packages/vbcms/comments.php(693) : eval()'d code on line 15
Can anyone help me with this problem?
I have the same problem here when i open a cms comment.
how do we fix that ?
balkanboy
03-29-2010, 02:38 AM
Fix please image attached
aouni_tahech
03-29-2010, 08:11 PM
Great plugin. Is there a way to check for image size and dimensions before uploading the image?
paulbhoy
04-04-2010, 01:51 AM
Hi,
i get this error message if i activate the mod and go to the CMS Comments.
Fatal error: Call to a member function query_read() on a non-object in /var/www/web1/html/vbulletin/packages/vbcms/comments.php(693) : eval()'d code on line 15
Can anyone help me with this problem?
I also have this problem
Fungsten
04-15-2010, 08:00 PM
I like it better than the Albums.
No Screenshot
No Demo
Useless?
roadrunna
04-19-2010, 10:24 AM
Hi,
i get this error message if i activate the mod and go to the CMS Comments.
Fatal error: Call to a member function query_read() on a non-object in /var/www/web1/html/vbulletin/packages/vbcms/comments.php(693) : eval()'d code on line 15
Can anyone help me with this problem?
I have the same problem here when i open a cms comment.
how do we fix that ?
I also have this problem
Fixed it :)
Find the plugin "My Photo post bit".
Change the plugin code to :-
$rec = vB::$db->query_read("
SELECT count(*) mark
FROM ".TABLE_PREFIX."vbimghost
WHERE userid='".$post['userid']."' and imgprivate='0'
");
$row = vB::$db->fetch_array($rec);
$post['vbimghost']=$row['mark'];
Basically the "$vbulletin->" is replaced with "vB::$"
paulbhoy
05-20-2010, 12:15 AM
that seems to have fixed it, thanks!!
Ocean-Wonders
05-20-2010, 08:17 PM
Getting errors all over the place with this and I can't delete any images etc.
Any plans to develop this further ?
Style of this mod is too bad, please update its design and layout.
movslow
05-21-2010, 07:14 PM
What do I need to do to change the txt in the navbar?
It's all CAPS and I'd like to format it similar to whats there already?
Thanks
Alex@Mk3OC
05-25-2010, 02:25 PM
Use the phrase manager and search for the text, that's what I did so we could change ours
ctimes
06-20-2010, 12:46 AM
How are you guys getting it to show up in the editor? My navbar link works fine but id like it in the reply and quick reply forms if possible. am i missing something?
Alex@Mk3OC
06-20-2010, 12:07 PM
I don't think the mod caters for that, although would be a good idea.
On a side has anyone else had issues with the thumbnails displaying at the correct size?
ozzy47
06-22-2010, 10:34 PM
Fix please image attached
Has anyone come up with a fix for this yet?
https://vborg.vbsupport.ru/
andy1074
06-23-2010, 05:27 AM
when i upload a image in image host send error database to me but upload successfully image and show this
why this hack work by problme?
andy1074
06-23-2010, 06:04 AM
if upload the gif and more file in work correct
but when upload jpg file is not work corect upload the image but send error
Globe
06-28-2010, 07:14 PM
hi there can i remove the tab in the navbar?
solved just remove the code from the vbimghost_navbits template
Globe
06-28-2010, 07:26 PM
Has anyone come up with a fix for this yet?
http://myfriendsspace.com/imagehosting/14c214824abe44.jpg
i found a way.
go to the template newthread
search for
{vb:raw messagearea}
add after:
<!-- imagehost -->
<fieldset id="vbimghostbox" title="{vb:phrase vbimghost_title}">
<legend>{vb:phrase vbimghost_myphotos}</legend>
<div id="vbimghostlinks">[<a href="#" onclick="window.open('vbimghost.php?do=popup&ed={vb:raw editorid}','vbimghost1','scrollbars=yes,resizable= yes,width=550,height=500'); return false" title="Pick">{vb:phrase open}</a>] [<a href="#" onclick="window.open('vbimghost.php?do=popupload&ed={vb:raw editorid}','vbimghost2','scrollbars=yes,resizable= yes,width=562,height=97'); return false" title="Upload">{vb:phrase vbimghost_quickup}]</a></div>
</fieldset>
<!-- /imagehost-->
the find the template vbimghost_editor
and delete the code its the same you filled in to nethread. optionaly you can add this to newreply
ozzy47
06-29-2010, 07:43 PM
Worked like a charm, Thanks Globe!!
ozzy47
07-14-2010, 09:28 PM
I am getting the following error?
Fatal error: Call to undefined function imagecreatefromgif() in /home/myfriend/public_html/includes/vbimghost_include.php on line 42
ozzy47
07-16-2010, 04:09 AM
Update: Seems that error code only comes up on some images not all?
ifitsmedia
08-05-2010, 09:56 PM
Does this work with VB 4.0.5?
Fungsten
08-06-2010, 07:16 PM
Does this work with VB 4.0.5?
Works on my version.
janellez
08-09-2010, 11:33 PM
I've always loved this add-on but as others have stated, I seem to be able to upload photos with Quick Upload into my album but not automatically insert them into the post. In other versions, it was the way it worked. Now, I get the following error -
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB0.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Tue, 10 Aug 2010 00:30:42 UTC
Message: Object required
Line: 60
Char: 6
Code: 0
URI: http://www.mysite.org/forum/vbimghost.php (changed url for privacy)
Can anyone help?
nicutdk
08-10-2010, 07:43 AM
can integrate with CMS ?
WhiskeyOSS
08-12-2010, 11:25 PM
This works with 4.06 as simple as it is.. It works good with the new vb release..
janellez
08-18-2010, 05:33 PM
Is anyone else having the problem with not having an insert image feature? I've written to Waiel and gotten no response.
Thanks
xuanhuy238
09-03-2010, 03:11 PM
Warning: getimagesize(.../yega/imagehosting/game4v_logo.png) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/vbimghost_include.php on line 221
This error message appeared when I uploaded the image with Watermark is ON.
I config every field very careful but... need some help! :(
Markos
09-08-2010, 02:51 PM
i found a way.
go to the template newthread
search for
{vb:raw messagearea}
add after:
<!-- imagehost -->
<fieldset id="vbimghostbox" title="{vb:phrase vbimghost_title}">
<legend>{vb:phrase vbimghost_myphotos}</legend>
<div id="vbimghostlinks">[<a href="#" onclick="window.open('vbimghost.php?do=popup&ed={vb:raw editorid}','vbimghost1','scrollbars=yes,resizable= yes,width=550,height=500'); return false" title="Pick">{vb:phrase open}</a>] [<a href="#" onclick="window.open('vbimghost.php?do=popupload&ed={vb:raw editorid}','vbimghost2','scrollbars=yes,resizable= yes,width=562,height=97'); return false" title="Upload">{vb:phrase vbimghost_quickup}]</a></div>
</fieldset>
<!-- /imagehost-->
the find the template vbimghost_editor
and delete the code its the same you filled in to nethread. optionaly you can add this to newreply
that doesn't change the reply to thread what template do we edit to get it in there and quick reply
thanks mark
indy1979
09-11-2010, 02:22 PM
I have a few questions.
When I upgraded our forum, I also moved domains. Now all of the Image Host images inserted into posts have the old domain name. Any way to update these posts?
Is there any way to make Image Hosting read only? What I mean by that is to force users to upload new pics into the Albums feature while still having access to their images in the Image Hosting part.
Thanks!
Twikitero
09-11-2010, 04:48 PM
Hello, thank you very good and very useful mod.
But I have the following problem when activating watermark.png.
I created the image I uploaded watermark.png and the root of my forum but when I upload an image displays the following error.
Warning: getimagesize(/imagehosting/watermark.png) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/vbimghost_include.php on line 221
¿Any solution?
Also I have this problem when entering MyImages
See the attached image will show the error
please help
njoker555
09-11-2010, 10:33 PM
Is there a converter to convert the imghost images into the album yet? I'm thinking of upgrading to vb 4.0 soon and I'm still deciding on whether to keep this mod or just move onto the albums since most people on my forum uses the album anyway but I just don't want to lose the 2000 or so images in the imghost mod right now.
Taurus1
10-13-2010, 01:25 AM
i found a way.
go to the template newthread
search for
{vb:raw messagearea}add after:
<!-- imagehost -->
<fieldset id="vbimghostbox" title="{vb:phrase vbimghost_title}">
<legend>{vb:phrase vbimghost_myphotos}</legend>
<div id="vbimghostlinks">[<a href="#" onclick="window.open('vbimghost.php?do=popup&ed={vb:raw editorid}','vbimghost1','scrollbars=yes,resizable= yes,width=550,height=500'); return false" title="Pick">{vb:phrase open}</a>] [<a href="#" onclick="window.open('vbimghost.php?do=popupload&ed={vb:raw editorid}','vbimghost2','scrollbars=yes,resizable= yes,width=562,height=97'); return false" title="Upload">{vb:phrase vbimghost_quickup}]</a></div>
</fieldset>
<!-- /imagehost-->
the find the template vbimghost_editor
and delete the code its the same you filled in to nethread. optionaly you can add this to newreply
Fixed it :)
Find the plugin "My Photo post bit".
Change the plugin code to :-
$rec = vB::$db->query_read("
SELECT count(*) mark
FROM ".TABLE_PREFIX."vbimghost
WHERE userid='".$post['userid']."' and imgprivate='0'
");
$row = vB::$db->fetch_array($rec);
$post['vbimghost']=$row['mark'];Basically the "$vbulletin->" is replaced with "vB::$"
Thanks gents! That worked great!! :):up:
Miras
11-23-2010, 08:01 AM
would love to see additional bb-code for linked thumbnail in pic details
*edit*
and option for upload from an url would be nice too
l2-inferno
12-04-2010, 09:29 AM
Warning: getimagesize(.../yega/imagehosting/game4v_logo.png) [function.getimagesize]: failed to open stream: No such file or directory in [path]/includes/vbimghost_include.php on line 221
This error message appeared when I uploaded the image with Watermark is ON.
I config every field very careful but... need some help! :(
hello, I have the same problem
Any ideas?
plz help
http://img9.imageshack.us/img9/4752/watererror.png
l2-inferno
12-04-2010, 09:05 PM
hello, I have the same problem
Any ideas?
plz help
http://img9.imageshack.us/img9/4752/watererror.png
help plz
Miras
01-03-2011, 07:22 AM
would love to see additional bb-code for linked thumbnail in pic details
*edit*
and option for upload from an url would be nice too
no more support for that ?
vbcreator
01-03-2011, 10:26 AM
thanks :) gonna test it
Mikevet1984
02-01-2011, 01:26 AM
I get this error when trying to rebuild thumbnails from the control panel....
Warning: getimagesize(/home/user/public_html/vBulletin/imagehosting/.........gif) [function.getimagesize]: failed to open stream: No such file or directory in [path]/admincp/vbimghost.php on line 280
Any idea please how I could overcome this problem?
ozzy47
03-06-2011, 02:43 AM
I have tried all settings in acp, but the images display in a single colum, I would like it to have 3 or 4 images in a row
vnairp11
03-06-2011, 02:58 PM
how do i delete all existing images from old domain and install this new script because i changed domain?
How do i mass delete a banned users or deleted users images? or will this be done along with the user delete?
HOw do i mass delete all of existing users pics?
WhiskeyOSS
09-22-2011, 03:07 PM
I just wanted to say that this is a awsome Image hosting mod thank you for your hard work
artscripts
10-19-2011, 06:59 PM
4.1.7 to work?
MalluParadise
11-15-2011, 08:10 PM
4.1.7 to work?
no my friend
dodgechargerfan
11-19-2011, 08:04 PM
I've been enjoying this mod for a long time, but it seems it has broken the comments for CMS with the latest vBSuite upgrade (to 4.1.8) - at least that's when I noticed the problem.
Disable this mod and errors go away. Very strange.
Anyway, I saw a little glimmer of hope in this sentence: "A converter for vbimghost to vbulletin albums is under development. and will be included here when it's done."
Any news on this converter?
Thanks for the great mod, by the way.
ThomasR
12-06-2011, 07:03 AM
I guess we won't see the converter? It's just to know if I must find a way to announce that to my forum members :)
indy1979
04-01-2012, 06:07 PM
Any updates for the converter? I'd really like to get everything moved over into Albums and uninstall this mod.
Thanks!
Nirjonadda
04-01-2012, 06:46 PM
Its not working on 4.1.10
Miyuki419
05-19-2012, 03:01 AM
Will it work on 4.1.7? We used to use it on vb 3.6.
josantos
05-31-2012, 08:52 AM
New version for 4.2 ? Please ....
Father Juan
06-05-2012, 03:53 AM
Any updates for the converter? I'd really like to get everything moved over into Albums and uninstall this mod.
Thanks!
*bump*
indy1979
06-14-2012, 10:22 PM
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.
#!/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.
Alex@Mk3OC
07-25-2012, 09:43 AM
Anyone got this working on 4.2? Only think I can't sort is the navbar
Mauro79
09-05-2012, 01:41 AM
could make it functional for 4.2?
fails, and no panel to gain many pictures.
Please
alzaabi
10-04-2012, 07:48 PM
how to make this work on vb 4.20
XGC Paravain
11-26-2012, 01:37 AM
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
XGC Paravain
11-26-2012, 09:30 PM
I found my path and still getting the message 404 not found is this thread active?
indy1979
12-27-2012, 01:45 AM
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.
#!/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:
./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:
<vb:if condition="$show['contactlinks'] AND $show['pmlink']">
and add above it:
<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:
<li><a href="vbimghost.php?do=upload">{vb:phrase vbimghost_menuupimg}</a></li>
to
<!--<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.
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?
RichieBoy67
02-10-2014, 01:41 AM
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.
#!/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.
twistsol
03-06-2016, 01:47 AM
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.
twistsol
03-20-2016, 05:05 PM
I've written a vbImagehost converter and it is posted in modes here
https://vborg.vbsupport.ru/showthread.php?t=322153
vbuser2017
10-05-2017, 05:31 PM
It is impossible to attach images to a post if you click on them they aren't inserted. I recall somehow fixing this bug myself in a previous version.
Does anyone have a solution?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.