Hosting images on external server...

Status
Not open for further replies.

Andrea Marucci

Premium Member
Joined
Mar 15, 2011
Messages
292
I posted this on Xenforo forum but I post it also here so more people can read it...

In my forum I would like my users to use an external server for image hosting; something like imgur.com or similar that let you link the image pasting the code in the message. This is to avoid to have too much traffic just to show images in the threads.

I remember that in the VB days there was a mod that let me do that simply adding a button in the editor bar for that purpose. Should suffice a button that ask you to choose the image, upload it on imgur (for example) and paste the code inside the message.

Since nothing similar does exist for xenforo, anyone has a suggestion or a solution for that?
 

Floris

I'm just me :) Hi.
Staff member
Joined
Jan 1, 2001
Messages
60,183
Not that I have the answer to your question, but xenforo 1.0.4 supports remote data/ via the config.php file
$config['externalDataUrl'] = 'http://example.com/community/data';
This allows people to use a CDN or a symlinked internal second server, etc.
 

Andrea Marucci

Premium Member
Joined
Mar 15, 2011
Messages
292
Thanks Floris but what kind of data you can put on an external server? Apart from the img from xenforo like smilies and so on, I'm interested in moving attachments...
 

ragtek

OMG Member
Joined
Jul 4, 2007
Messages
149
You could mount a directory from the second server as a directory on your webserver
BUT
the attachments will still cause traffic (in this case they would make MORE TRAFFIC because they need to be sent to server 1 and server1 sends them to the client)

So if they have a direct connection, there shouldn't be problems
If the second server is connected via the "i-net" it will result in 2x more traffic for attachments
 

Floris

I'm just me :) Hi.
Staff member
Joined
Jan 1, 2001
Messages
60,183
A lot of cdn setups have internal gbit ports that aren't public, and aren't counted towards traffic quota.

It's part of cluster-setups.
 
Status
Not open for further replies.
Top