vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   vBulletin 4 Request - Upload images to an external image server (https://vborg.vbsupport.ru/showthread.php?t=322101)

trollshrooms 03-16-2016 10:53 AM

easier

http://postimage.org/mod.php

Max Taxable 03-16-2016 06:00 PM

Quote:

Originally Posted by trollshrooms (Post 2567378)

That'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

Quote:

Originally Posted by Gio~Logist (Post 2567413)
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

Quote:

Originally Posted by trollshrooms (Post 2567427)
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)

Code:

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


All times are GMT. The time now is 05:52 AM.

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.02300 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete