The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    icons in new post

    qmars(pkq)
    qmars(pkq)
    Forumember


    Posts : 210
    Reputation : 1
    Language : english,persian
    Location : iran

    Solved icons in new post

    Post by qmars(pkq) July 16th 2014, 6:10 am

    First topic message reminder :

    hello
    i have to problem
    1. how can i remove these spaces between icons
    icons in new post - Page 2 1302537214respase
    2. when i click on my host an image it doesnt work but after that when i click on my host an music it work at host an image mini browser
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19328
    Reputation : 2005
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: icons in new post

    Post by Ape July 26th 2014, 5:27 pm

    He's link is here >> http://lemon-13.full-forum.com



    icons in new post - Page 2 Left1212icons in new post - Page 2 Center11icons in new post - Page 2 Right112
    icons in new post - Page 2 Ape_b110
    icons in new post - Page 2 Ape1010
    qmars(pkq)
    qmars(pkq)
    Forumember


    Posts : 210
    Reputation : 1
    Language : english,persian
    Location : iran

    Solved Re: icons in new post

    Post by qmars(pkq) July 27th 2014, 2:37 am

    http://lemon-13.full-forum.com/
    username : Removed
    password : Removed

    Please DO NOT pass passwords and user names to your forum in main forum please use the pm system for Safety and security Reasons
    Warning given.
    qmars(pkq)
    qmars(pkq)
    Forumember


    Posts : 210
    Reputation : 1
    Language : english,persian
    Location : iran

    Solved Re: icons in new post

    Post by qmars(pkq) August 1st 2014, 12:29 pm

    Ange Tuteur wrote:Please provide a link to your forum.

    Thanks.
    http://lemon-13.full-forum.com/
    qmars(pkq)
    qmars(pkq)
    Forumember


    Posts : 210
    Reputation : 1
    Language : english,persian
    Location : iran

    Solved Re: icons in new post

    Post by qmars(pkq) August 2nd 2014, 5:09 am

    i sent u user name and password on ur private message bro Ange Tuteur
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: icons in new post

    Post by Ange Tuteur August 2nd 2014, 7:15 am

    Hi,

    I made it a bit more simple to have multiple upload buttons, so delete both your scripts and create a script for the following code :

    Title : your choice
    Placement : in all the pages
    Code:
    $(function(){$(function(){
     Â newHost('imageUpload', 'http://lemon-13.com/up.png', 'http://lemon-13.com/upload-Center', '250px', '500px');
     Â newHost('musicUpload', 'http://lemon-13.com/mu.jpg', 'http://lemon-13.com/m%20up/index.html', '400px', '600px');
     
     Â function newHost(name, image, upload, height, width) {
     Â   $('.sceditor-button-servimg').after('<a class="sceditor-button sceditor-button-'+name+'"><div style="background-image:url('+image+')"></div></a>');
     Â   $('body').append('<div id="'+name+'_container" class="sceditor-dropdown" style="display:none;"></div>');
     
     Â   $('.sceditor-button-'+name+'').click(function() {
     Â       var X = $('.sceditor-button-'+name+'').offset().left;
     Â       var Y = $('.sceditor-button-'+name+'').offset().top + 25;
     Â 
     Â       if (!document.getElementById(''+name+'_frame') && $('#'+name+'_container').css('display') == 'none') $('#'+name+'_container').show().css('left',X + 'px').css('top',Y + 'px').append('<iframe id="'+name+'_frame" style="border:none;height:'+height+';width:'+width+';" src="'+upload+'"></iframe>');
     Â       else if ($('#'+name+'_container').css('display') == 'none') $('#'+name+'_container').show().css('left',X + 'px').css('top',Y + 'px');
     Â       else $('#'+name+'_container').hide();
     Â   });
     
     Â   $('.sceditor-button:not(.sceditor-button-'+name+'), .sceditor-container textarea, .sceditor-container iframe').click(function() { $('#'+name+'_container').hide() });
     Â   $('.sceditor-container iframe').contents().mousedown(function() { $('#'+name+'_container').hide() });
     Â   $('.sceditor-button-source').click(function() { $('.sceditor-button-'+name+'').removeClass('disabled') });
     Â }
    })});

    All you need to write is :
    Code:
    newHost(name, image, upload, height, width)

    In the following order :

    name : the unique name of the button, it MUST NOT be the same as other host buttons.
    image : the image of the button
    upload : the url of the upload location
    height : the height of the frame
    width : the width of the frame

    There's already two at the top to give an example. Hopefully this will work for you Wink
    qmars(pkq)
    qmars(pkq)
    Forumember


    Posts : 210
    Reputation : 1
    Language : english,persian
    Location : iran

    Solved Re: icons in new post

    Post by qmars(pkq) August 2nd 2014, 7:23 am

    wow
    tnx u so much!
    it was work!
    and how make these icon biger than other
    and how can i remove others icon as like as spoiler and...
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: icons in new post

    Post by Ange Tuteur August 2nd 2014, 7:26 am

    You're welcome

    qmars(pkq) wrote:wow
    tnx u so much!
    it was work!
    and how make these icon biger than other
    and how can i remove others icon as like as spoiler and...
    I believe you should open a new topic for these questions, since they were not originally mentioned in the first post or topic title.

    Topic archived

      Current date/time is September 24th 2024, 1:28 am