View Full Version : New Posting Features - Free onboard Image Hosting - "photobucket" for your board.
Max Taxable
01-31-2014, 11:00 PM
Should be same install on any vBulletin board, versions 3.0 and up to 3.8.7. I have not tried this yet on vBulletin 4 and up.
This uses NO:
Plugins
Auto template
Files to upload (except one icon image)
DB changes
Take a test drive here:
http://usmessageboards.com
USERNAME vBTester
PASSWORD testmetestme
Simply go to any thread and have a look at quick reply and click the icon.
I've had this "hack" on my board for a few years and recently installed it on a couple other fellas boards and decided it was time to share the secret. Have your own image hosting tool that is independent of 3rd party ones that like to block hotlinking and take images down after awhile.
The software used is by another author and is not my code. The template edits to integrate it to your vBulletin installation however, is.
First of all go to: http://codefuture.co.uk/projects/imagehost/ and download the free image hosting software.
Upload this package to root level of your server using a clever name for the folder, like "imagemagic" or something related to your board's topic. For a baseball board recently, I styled this "picturecatcher."
You should now be able to use and administer this by going to the URL, yourboard.com/yournameforthis
Once it is installed and working and you have done the setup and configuration to your liking, it is time to integrate this to your board. The best place to do this is in the WYSIWYG editors and the quick editors throughout.
Use "Search In Templates" to find all templates that have the word "separator" or "separator.gif" in them. This will populate the list of all the editor templates in your style. The list looks like this:
https://vborg.vbsupport.ru/external/2014/02/29.jpg
And you want to edit the templates you see in red, above.
In these templates find:<td><div class="imagebutton" id="{$editorid}_cmd_wrap0_quote"><img src="$stylevar[imgdir_editor]/quote.gif" width="21" height="20" alt="$vbphrase[wrap_quote_tags]" /></div></td>
And add after that:<td><div class="imagebutton">
<a href="javascript:void(0);" onclick="window.open('http://yoursite.com/yourimagehostfoldername/index.php?mode=vbull&tpl=.&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=860,height=625');return false;"><img src="$stylevar[imgdir_editor]/uploadimage.png" width="21" height="20" alt="Upload Image for Posting" /></a></div></td>
You'll want to experiment with this, as not all styles have the same templates for the editors. But most do.
Upload this image to your server at location / and style it "uploadimage.png."
http://usmessageboards.com/myimagehost/?di=4PTR
Do this edit for each template indicated on the populated list above that are in red.
The result is, every member who is logged in will see the icon in the posting editors and on click, will give them a popup with the uploader loaded and ready for their images. You and your members will see this in your editors:
https://vborg.vbsupport.ru/external/2014/02/30.jpg
And that's it! The uploader itself is very user friendly and intuitive, not much different at all from photobucket, ImageShack, or any other image hosting feature including vBulletin's own attachment uploader. So your membership should have no problems with it.
I posted all images in this post, using this very same image uploader, on my board! So as you can see it can be used anywhere to post images. There are also links provided after upload, for direct sharing, email sharing, and so on.
Enjoy!
I can't tell you all how much myself and my members love this feature...........Thank you Sooo much!!
blind-eddie
02-01-2014, 04:21 PM
I like this image hosting software, I have been using it for a couple years on a few HTML sites I have. I am sure this will be used by many of our fellow 3.8 members.
Thanks for sharing.
Max Taxable
02-01-2014, 04:24 PM
I like this image hosting software, I have been using it for a couple years on a few HTML sites I have. I am sure this will be used by many of our fellow 3.8 members.
Thanks for sharing.I added a "test drive" login credentials to the OP, thanks for the idea!
Max Taxable
02-01-2014, 10:50 PM
I can't tell you all how much myself and my members love this feature...........Thank you Sooo much!!It's a handy little gadget glad you like!
Robert Waanders
02-06-2014, 08:25 AM
Hey This is great, thanks for sharing this info! I wil implement this on my site.
Robert
Robert Waanders
02-06-2014, 08:56 AM
Currently implementing this on my site, one question. Once clicked on the upload image button, a screen appears, fine, after selecting an image I don't get a scroll-bar to scroll down in the window to select the needed html code... Anyone else the same problem?
Robert
Robert Waanders
02-06-2014, 10:10 AM
ha... found a solution... Added : resizable=yes Now works fine..
Max Taxable
02-06-2014, 02:55 PM
ha... found a solution... Added : resizable=yes Now works fine..Please feel free to post your code as used for the edification of others and do mark installed if you like it!
Robert Waanders
02-10-2014, 10:50 AM
Please feel free to post your code as used for the edification of others and do mark installed if you like it!
Will do, there is one thing that is concerning me, the coder of the image hosting software seems to be not so active on his site..
I did some more research, and i found http://chevereto.com Do you know about this script?
Max Taxable
02-10-2014, 04:00 PM
Yep that needs its own database.... Writes to the DB instead of to file system.
Dunno about the developer of this being inactive, I haven't visited his site in some years. The software is fully editable and has all the features listed at the other, and isn't hard to support yourself. It's pretty simple and straight forward stuff.
But if support is better and you don't mind having another database and everything associated with that, looks at first blush like a good alternative.
GSMCare
02-13-2014, 06:59 AM
Download link not available?
blind-eddie
02-13-2014, 11:25 AM
Read first post again...
blackberry
02-19-2014, 05:31 PM
please make it possible for vb 4.x
Max Taxable
02-19-2014, 05:38 PM
please make it possible for vb 4.xIt is, I just simply have never tried it. Shouldn't be that much dissimilar to the v3 install.
Mr_Running
03-26-2014, 02:14 AM
Sweet!
First thought ...How to set up so that only members can use it?
... so that unregistered can not view script pages?
Max Taxable
03-26-2014, 03:09 AM
Sweet!
First thought ...How to set up so that only members can use it?
... so that unregistered can not view script pages?That's built in, if you do not allow visitors to post they won't see the editor and therefore won't see the button for this - not even if viewing the script via page source reader..
You can also put a <if> conditional on the button, so they won't see it if you do allow visitors to post.
Mr_Running
03-26-2014, 04:12 AM
I was thinking about search engines finding and indexing it...also if the URL is known.
I have it set up on 4.2.2 p1 but trying to figure out the editor button as the only two templates I have found so far are...
postbit_quickedit
and
socialgroups_discussion_quickedit
This is all the code
<vb:comment>obsolete -- does not appear to be used as far back as 3.7</vb:comment>
As far as the button ...it's probably ...totally different but could the button be set up as a custom bbcode?
Perhaps, I know the answer to that but I thought I throw it out there...LOL...need sleep ;)
Max Taxable
03-26-2014, 03:12 PM
I've never installed this in a version 4 vBulletin so I must defer to others who have more experience with it - stay tuned.
blind-eddie
03-26-2014, 03:30 PM
Try this to get button on 4. editor.
https://vborg.vbsupport.ru/showthread.php?t=278828
Gadget_Guy
03-26-2014, 09:53 PM
Hi,
I have uploaded the files as per the instructions, however when I go to the URL to do the initial install all I get is a blank screen.
Any ideas?
D.
Max Taxable
03-26-2014, 11:24 PM
Hi,
I have uploaded the files as per the instructions, however when I go to the URL to do the initial install all I get is a blank screen.
Any ideas?
D.Link?
viper357
08-28-2014, 09:04 AM
Hi, is there any way to have this upload and store the images on to a different server?
Max Taxable
08-28-2014, 12:29 PM
Hi, is there any way to have this upload and store the images on to a different server?Only to one you have control of.
viper357
08-28-2014, 12:53 PM
Yes. My forum is on urljet but I have an account at siteground with a couple of other websites on, could I have the pics hosted on siteground?
Max Taxable
08-28-2014, 01:31 PM
Yes. My forum is on urljet but I have an account at siteground with a couple of other websites on, could I have the pics hosted on siteground?You can install this on any host you use. Doesn't have to be the same one the board is hosted on.
viper357
08-28-2014, 05:51 PM
That sounds awesome, thanks, will give it a try.
Cheeky request, but I have this mod at the moment - https://vborg.vbsupport.ru/showthread.php?t=123481 and it automatically inserts the links into the post without having to copy and paste, any chance you would be able to incorporate that feature into this mod?:)
Max Taxable
08-28-2014, 06:25 PM
No idea.
Kwikms
07-10-2015, 03:59 AM
Does the user still has control over the images he uploaded? Can he delete the image afterwards?
Max Taxable
07-10-2015, 03:13 PM
That's a option you would set.
Kwikms
07-10-2015, 03:36 PM
Where is the control panel for the user for this? Are there any screens around?
Max Taxable
07-10-2015, 03:48 PM
Yeah it's not my code at all and I have no idea what if any updates the developer has done since I posted this. He's got a forum there on his site where you download this, for Q&A.
You can set it up so members can create their own accounts. I don't have mine set up that way because the whole point of it was to be able to control the images and not have them disappear.
Vintum
08-06-2015, 07:16 AM
Wow, I would totally pay for instructions to get this going on 4.2.2 if it can be made to work with vaultwiki's editors, which I don't see why not...
Suffering from not being able to have an easy internal method to upload wiki images and have been using imgur so far.
Manoel J?nior
08-06-2015, 11:28 PM
Please, update this excelent mod for vB 4.2.x
Max Taxable
08-07-2015, 12:29 AM
Please, update this excelent mod for vB 4.2.xIt's not my code or my mod, I merely show how to use it in vB 3.8.x and haven't tried to integrate it for 4.2.X. It can't be much different, it's just template edits after all.
Manoel J?nior
08-07-2015, 12:33 AM
It's not my code or my mod, I merely show how to use it in vB 3.8.x and haven't tried to integrate it for 4.2.X. It can't be much different, it's just template edits after all.
You can try to adapt it to 4.2?
Max Taxable
08-07-2015, 12:36 AM
You can try to adapt it to 4.2?I could, but just haven't seen the need since vB 4.2.x has a really good image upload system and handling of attachments native already, with option to store them in the file system already. I don't need this on my 4.2.X sites, so haven't spent any thought or time trying to port it to v4.
The only difference would be what templates to edit, and where. There was instruction posted earlier in this thread on how to add this to the v4 editor templates.
RichieBoy67
08-07-2015, 01:23 AM
Just a question, is there any time limit on how long Photbucket hosts the images? I have seen many older posts with images hosted on some of the major image hosting sites disappear after a few years.
Thanks
Max Taxable
08-07-2015, 03:09 AM
Just a question, is there any time limit on how long Photbucket hosts the images? I have seen many older posts with images hosted on some of the major image hosting sites disappear after a few years.
ThanksPhotobucket as in, this particular Mod? or the real photobucket?
The deal is, this is not any kind of 3rd party host you have no control over. This is totally controlled and hosted by you so nothing ever gets lost or taken down.
I have no idea if the major image hosts have time limits. I only know we can't control images hosted by them, and they definitely do disappear.
CAG CheechDogg
08-07-2015, 03:13 AM
I want to add this to my vb4 but I have had no luck lol ... can't find the correct templates to edit ...im LOST !
RichieBoy67
08-07-2015, 03:35 AM
Photobucket as in, this particular Mod? or the real photobucket?
The deal is, this is not any kind of 3rd party host you have no control over. This is totally controlled and hosted by you so nothing ever gets lost or taken down.
I have no idea if the major image hosts have time limits. I only know we can't control images hosted by them, and they definitely do disappear.
Hey Max, Now I am impressed! I was under the assumption that your mod used the third party hosting! If I still used an older version of Vbulletin I would have grabbed this for sure! Nice work!
Max Taxable
08-07-2015, 03:42 PM
Hey Max, Now I am impressed! I was under the assumption that your mod used the third party hosting! If I still used an older version of Vbulletin I would have grabbed this for sure! Nice work!Thanks and yes, I just believe it is unnecessary for vB4.2.x since it has a better uploader and a better attachment display. Plus as in earlier versions, you can choose to store images in the file system instead of the database.
I first installed this to discourage members from using their own 3rd party photo hosting accounts - make it easier to post your photos - and it worked. I hardly ever see any hotlinked images that aren't on the same server as the board.
Max Taxable
08-07-2015, 03:45 PM
I want to add this to my vb4 but I have had no luck lol ... can't find the correct templates to edit ...im LOST !Might be helpful:
https://vborg.vbsupport.ru/showthread.php?t=278828
Vintum
08-07-2015, 04:11 PM
I just believe it is unnecessary for vB4.2.x since it has a better uploader and a better attachment display. Plus as in earlier versions, you can choose to store images in the file system instead of the database.
This is quite true. If it wasn't for the fact that my site has recently started building wikis for the games we play, we wouldn't need it either. But I installed vaultwiki, which has a SERIOUS lack of an easy means to upload and post images to the wiki without using external image hosts. This would do wonders for us.
So far I've managed to get the script installed and the button to appear on the editor in both the forum and the wiki, but I can't get the button to do anything. I can't find a template to just edit and add the code, though. I had to make plugins for ckeditor to do it.
Vintum
08-07-2015, 09:58 PM
HEY!
After hours of bashing my face on the keyboard trying to figure out why the button wasn't working, a friend of mine came online. He's a dev himself, so I tossed him the question to see if he can help me figure out why the button did nothing at all. Turns out all I had to do was remove the "onclick" event from the code. And now it works just fine!
Here is everything I did to make this work on VB 4.2.2 in the ckeditor
1. Install the image software as described above. I got the 1.6.5 download and it was working fine for me. All set up and good to go.
2. I followed the guide to add a button here: https://vborg.vbsupport.ru/showthread.php?t=278828, as was already pointed out.
3. And the thing that made it all work for me:
Replace
alert('Hello world!');
editor.insertHtml( 'Hello World! - Hello World!' );
With
window.open('http://IMAGEHOST/BASE-URL-HERE/index.php?mode=vbull&tpl=.&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=860,height=625');
Aside from renaming all the 'celButtonDemo' into something else, that is all I can recall changing from his provided code. Didn't have much luck with changing where the button appeared. Replacing "Quote" with "Image" broke things for me.
I won't say the the setup is perfect, but it works. For example, by button is off center. Would love to know how to fix that.
Manoel J?nior
08-08-2015, 01:09 AM
HEY!
After hours of bashing my face on the keyboard trying to figure out why the button wasn't working, a friend of mine came online. He's a dev himself, so I tossed him the question to see if he can help me figure out why the button did nothing at all. Turns out all I had to do was remove the "onclick" event from the code. And now it works just fine!
Here is everything I did to make this work on VB 4.2.2 in the ckeditor
1. Install the image software as described above. I got the 1.6.5 download and it was working fine for me. All set up and good to go.
2. I followed the guide to add a button here: https://vborg.vbsupport.ru/showthread.php?t=278828, as was already pointed out.
3. And the thing that made it all work for me:
Replace
alert('Hello world!');
editor.insertHtml( 'Hello World! - Hello World!' );
With
window.open('http://IMAGEHOST/BASE-URL-HERE/index.php?mode=vbull&tpl=.&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=860,height=625');
Aside from renaming all the 'celButtonDemo' into something else, that is all I can recall changing from his provided code. Didn't have much luck with changing where the button appeared. Replacing "Quote" with "Image" broke things for me.
I won't say the the setup is perfect, but it works. For example, by button is off center. Would love to know how to fix that.
Please, share modification
Vintum
08-08-2015, 06:15 PM
I'm not understanding what you want from me. Everything is already provided.
CAG CheechDogg
08-10-2015, 04:52 PM
HEY!
After hours of bashing my face on the keyboard trying to figure out why the button wasn't working, a friend of mine came online. He's a dev himself, so I tossed him the question to see if he can help me figure out why the button did nothing at all. Turns out all I had to do was remove the "onclick" event from the code. And now it works just fine!
Here is everything I did to make this work on VB 4.2.2 in the ckeditor
1. Install the image software as described above. I got the 1.6.5 download and it was working fine for me. All set up and good to go.
2. I followed the guide to add a button here: https://vborg.vbsupport.ru/showthread.php?t=278828, as was already pointed out.
3. And the thing that made it all work for me:
Replace
alert('Hello world!');
editor.insertHtml( 'Hello World! - Hello World!' );
With
window.open('http://IMAGEHOST/BASE-URL-HERE/index.php?mode=vbull&tpl=.&forumurl=' + escape(document.location.href), '_imagehost', 'resizable=yes,width=860,height=625');
Aside from renaming all the 'celButtonDemo' into something else, that is all I can recall changing from his provided code. Didn't have much luck with changing where the button appeared. Replacing "Quote" with "Image" broke things for me.
I won't say the the setup is perfect, but it works. For example, by button is off center. Would love to know how to fix that.
This tutorial definitely helped and I now have it up and running on my Vb4 forums, thank you Vintum !!!!
CAG CheechDogg
08-30-2015, 07:37 AM
Max !!! help !!! I forgot my admin password and for some reason I can't recover my password .... it has a recover password link but nothing happens ....any clue?
Replicant
08-30-2015, 03:04 PM
Max !!! help !!! I forgot my admin password and for some reason I can't recover my password .... it has a recover password link but nothing happens ....any clue?
PM sent.
CAG CheechDogg
08-31-2015, 01:38 AM
Thank you Replicant !!! I actually got in, I was using the wrong username lol ...
barbeluk1
09-07-2015, 07:27 AM
Does anyone know how secure this option is? I'd love to install it on my board but run my own server and don't want to open it up to security risks...?
Thanks in advance,
Andy
Max Taxable
09-07-2015, 05:53 PM
I haven't had any issues, but yes it winds up being publicly accessible independently of the vB installation, if someone knows the link. As far as exploits, there are none that I know of or have heard of. You might ask the developer, at his site linked in the OP.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.