Recent Tutorials
Who is online?
In total there are 7 users online :: 2 Registered, 0 Hidden and 5 Guests

djblah, SLGray

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

[SUGGESTION] Upload a pic

View previous topic View next topic Go down

avatar
Guest
Guest
View all awards

PostGuest on Thu 01 Dec 2016, 14:56

This.... is still CRYING OUT LOUD for an upload buton, in any of version, especially EDGE!:

avatar
Pantone

Title :
Gender : Female
Age : 24
Posts : 490
Points : 1005
Reputation : 59
Location : Indianapolis - IN
Language : English
Browser : Browser : Google Chrome Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://canvasforums.com https://twitter.com/@HaeDoesGraphics https://pinterest.com/HaeDoesGraphics

PostPantone on Thu 01 Dec 2016, 15:24

Isn't the upload button here, and you can use the link it gives? Think


avatar
Guest
Guest
View all awards

PostGuest on Thu 01 Dec 2016, 15:28

HaeDoesGraphics wrote:Isn't the upload button here, and you can use the link it gives? Think



True that, however we wanna loose some of the buttons in the SC, so it'd be more convenient to have 'm all combined somehow, concentrated in just a couple. Wink We all know about the buttons, however, the regular folks checking in won't know the dif and I won't be writing up sorts of tutos for people who are new to forums! I told Pro about this already. I just won't. Thanks.
avatar
Valoish
Graphic Designer
Title :
Gender : Female
Age : 20
Posts : 3627
Points : 4655
Reputation : 350
Location : NYC
Language : English, Russian, Hebrew
Browser : Browser : Opera Forum Version : Forum Version : phpBB2
Awards :
View all awards
View user profile http://www.canvasforums.com https://twitter.com/https://twitter.com/Valoishx3

PostValoish on Thu 01 Dec 2016, 15:35

I agree with this, I HATE having two separate areas cuz when I first started using FM I was like "which one do I use for this omfg"
Maybe add the "insert image" content here instead?

Since there's a white space there anyway and it seems like it will fit.

--------

"I was afraid. And my own insecurity crushed him." - Youku x Boku SS
avatar
Guest
Guest
View all awards

PostGuest on Thu 01 Dec 2016, 15:41

Perhaps. One way or another, I'll be leaving this to Ange's imagination. Gotten used to just a few buttons in the editor, I can't imagine how future members will know the difference, too. It'd be bright to have'm all combined somehow. Idk. It's an urgent request, but if it 'll be too complicated to work it all out into scripts etc, I'm affraid I'll have to let go. ty (you got my vote and your friend's already, I see. Doesn't really matter which way to go. Wink )

GN! Hello
..
avatar
SLGray
Valued Member
Title :
Owner of 2 Forums
Gender : Male
Age : 44
Posts : 2398
Points : 4613
Reputation : 282
Location : United States
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : ModernBB
Awards :
View all awards
View user profile http://www.fmthemes.forumotion.com https://www.facebook.com/FM-Themes-655055824604957 https://twitter.com/FMThemes https://pinterest.com/FMThemes

PostSLGray on Thu 01 Dec 2016, 17:22

The host an image button is for hosting.  The insert image button is for when you what to insert an image that is not on your computer.
avatar
Guest
Guest
View all awards

PostGuest on Fri 02 Dec 2016, 04:57

@SLGray wrote:The host an image button is for hosting.  The insert image button is for when you what to insert an image that is not on your computer.

I know. Why not combine the two? It's confusing to have 2 buttons in the editor for seperate operations.
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4675
Points : 9689
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Fri 02 Dec 2016, 10:30

This ought to do the trick. Just set the script's placement to "in all the pages". It'll open a new window for uploading images, since using the sceditor's upload button will just force the other popup to close.
Code:
$(function() {
  if ($.sceditor) {
    $(function() {
      window.fa_servimg_upload = function () {
        var win = window.open('https://servimg.com/',  '_blank', 'width=620,height=300');

        $.get('/privmsg?mode=post', function(d) {
          var email = d.match(/var servImgAccount = '(.*?)';/i),
              id = d.match(/var servImgId = '(.*?)';/i),
              f = d.match(/var servImgF = '(.*?)';/i);

          if (email && id && f && email[1] && id[1] && f[1]) {
            win.location.href = 'https://servimg.com/multiupload.php?&mode=fae&account=' + email[1] + '&id=' + id[1] + '&f=' + f[1];
          }
        });
      };

      $('.sceditor-button-servimg').hide();
      $('.sceditor-button-image').click(function() {
        $('.sceditor-insertimage div:last-child').append(
          $('<input type="button" class="button" value="Upload">').click(fa_servimg_upload)
        );
      });
    });
  }

  'par ange tuteur';
});
avatar
Guest
Guest
View all awards

PostGuest on Fri 02 Dec 2016, 11:30

That's EXACTLY how we wanted it! Good Good job, @Ange Tuteur!

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum