View Full Version : vBulletin 4 Request - Upload images to an external image server
Visual010
03-14-2016, 02:39 AM
Hello,
I have an external image server hosted on another server with a Chevereto script installed (chevereto.com).
I was wondering if there was a way I could implement a script on my forum so my users could automatically upload their images to my image server via the Chevereto API.
If I recall correctly there was a mod that allowed any vB forum to add a button for a quick photobucket upload option. That button would upload the image from your PC to photobucket and then add it to your reply with the IMG tags included.
If that's not possible, maybe a script that reuploads every image the users post to my image server and then replaces their links could work as well.
I'm working on vB 4.2.2.
Thanks in advance,
Visual
webmastersun
03-14-2016, 07:19 AM
Interesting question... I have the same question and waiting for some valuable answers.
I don't want to go with photobucket but want to host images on my forum on second hosting. Its just for hosting images and attachments. It is possible?
Visual010
03-16-2016, 01:45 AM
Technically it SHOULD be possible.
I don't know I might be even interested in paying for this script if someone can deliver it.
Gio~Logist
03-16-2016, 02:27 AM
Yep, definitely possible.
The amount of work involved depends on how many aspects of your forum you would need to function via this image host.
Max Taxable
03-16-2016, 03:01 AM
Here's what i did instead (https://vborg.vbsupport.ru/showthread.php?t=307803) - everything on MY server, no 3rd party stuff.
Gio~Logist
03-16-2016, 03:07 AM
Yea, I think that's the mod he was referring to. All depends if you want it to go to photo bucket or your image server itself I suppose.
Max Taxable
03-16-2016, 03:09 AM
Yea, I think that's the mod he was referring to. All depends if you want it to go to photo bucket or your image server itself I suppose.It's not photobucket or in any way related.
Gio~Logist
03-16-2016, 03:19 AM
Oh, I see watcha mean. Yea, your method uses a different software is all. I was under the impression he wanted to use his existing Chevereto script.
Either one should solve the initial hosting "problem", Visual, all depends where you want the image to end up :up: GL!
Visual010
03-16-2016, 04:02 AM
Actually I do want to upload it to my own chevereto page.
I have both, one forum with vB 4.2.2 AND an imagehost with a different domain and a different server that runs Chevereto 3.7.
Thing is, I'd like a script to add someway to make the forum users upload their images to my Chevereto host automatically rather than going somewhere in the net to upload them then paste the code to the reply. A simple button should just let them upload the file and return the embedded code with the IMG tags.
I read the modification you made but that requires me to upload the images to that third party program if I am not mistaken. If I am please tell me, I might have the solution right there and I didn't see it :P
Thanks in advance,
Visual
Max Taxable
03-16-2016, 05:21 AM
I read the modification you made but that requires me to upload the images to that third party program if I am not mistaken.You upload the program to your own server, same one the board is on or any other one you control. It's no different than vBulletin itself - you control all of the permissions, can edit all templates, the main point is you have all the control and there is no third party involved. But nicely, there is no database. It's all stored in the file system.
Would you call vBulletin 3rd party? Cheverto?
trollshrooms
03-16-2016, 10:53 AM
easier
http://postimage.org/mod.php
Max Taxable
03-16-2016, 06:00 PM
easier
http://postimage.org/mod.phpThat's 3rd party, you have no control over it.
Gio~Logist
03-16-2016, 07:03 PM
Anything you use is a "third party". Any mod you download here is considered a "third party" plugin, as it's not made by vBulletin.
vBulletin and Cheverto are two individual "parties". When used together, one is a "3rd party" to another. As is "postimage" as is the mod that you keep referencing.
It's like being on a date. If I'm going on a date with vBulletin and I decide to bring someone else along, they're considered the "third wheel".
Nothing wrong with a third party, however. Some would argue that three parties can sometimes be better :)
Max Taxable
03-16-2016, 10:30 PM
Anything you use is a "third party".You don't understand the context.
Postimage loads the images on their server, not yours. That makes those images and the "service" 3rd party.
The other two methods mentioned here are first party, as you control them completely and the images are on your server, not someone else's. They are NO different from vBulletin itself, in that regard. You control them, and the images are stored locally.
trollshrooms
03-16-2016, 11:32 PM
If external images are hosted on your own server then there is no need for a first party program... just attach images and upload them using vb default attach... kinda senseless using another program to up files to your own server....
Save space on your server and upload to a third party server...
Max Taxable
03-17-2016, 12:42 AM
If external images are hosted on your own server then there is no need for a first party program... just attach images and upload them using vb default attach... kinda senseless using another program to up files to your own server....
Save space on your server and upload to a third party server...That's what I do on my vB4 sites, since it has the superior attach feature. But on my vB3 sites, I use the separate software.
The separate software also has lots of features not found with vBulletin, especially the one the OP wants to use.
Visual010
03-31-2016, 05:26 AM
Hello,
The thing is that I'm quite jealous about security here, so I'd rather have an external image server hosted on my own with all the features that it has (In this case, it's a paid script called chevereto). The external image server is hosted on a different domain and a different server but I own both.
Thing is, I already managed to add a button to the quick and full reply boxes that opens my imageserver webpage on a separate window but I would like to aproach it in a different way. Something like embedding an iframe on the reply box with a simple upload page.
Regards,
visual
Visual010
04-25-2016, 04:23 AM
So, little update here:
I managed to add THIS button:
https://vborg.vbsupport.ru/external/2016/04/11.png
to my quick and full reply boxes.
So far, I managed to make it open my own imageserver onclick which works more or less like I wanted it to.
Thing is, I wrote an html code that calls for my imageserver API in order to upload images in a quick and simple way to my server. However, I don't find a way to make the button call for an iframed or a lightbox/fancybox'd version of my html code. I tried almost every single way but I don't seem to make it work.
Here's the code of the button (It's in CKE)
CKEDITOR.plugins.add( 'myimageserver',
{
init : function( editor )
{
// This adds the button
editor.ui.addButton('myimageserver',
{
// label: adds a hover text to the button. This uses the vBulletin
// phrase "celButtonDemo" which you will have to add to your phrases
// and to pass to CKE in a plugin
label : editor.config.vbulletin.phrase.myimageserver,
// command: the command that will be executed. It's defined later
// in this file
command : 'myimageserver',
// icon: The path to the icon file you want to use for your button.
// Here we use buttonimage.png in the buttons directory defined for
// the current style (default: /images/editor)
icon: 'https://mywebpage.com/images/buttons/myimageserver.png',
});
// This defines the command that's executed when the button is clicked
editor.addCommand('myimageserver',
{
// modes: decide in what editor modes the button will be active;
// set to 0 to grey it out
modes : { enhancedsource:1, wysiwyg:1 },
// Execute your JS Code - CKE offers a great API:
>>I DON'T KNOW WHAT TO PUT HERE TO MAKE IT CALL FOR AN HTML FILE IFRAMED OR IN A LIGHT/FANCYBOX<<
}
});
}
});
Any help would be appreciated. This is driving me crazy.
Regards,
visual
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.