I search the code of "dowload button" Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
+2
Ape
amghidh
6 posters

    I search the code of "dowload button"

    amghidh
    amghidh
    Forumember


    Posts : 55
    Reputation : 10
    Language : EN FR AR TM
    Location : Algeria

    In progress I search the code of "dowload button"

    Post by amghidh 23/6/2019, 20:25

    Hi,
    I've already used this code, but now I can't find it in the three support forums
    I'm searching how to add to Text editor a button which permet to add download button to the topic
    It means I just write the download link on editor, then a button will appear
    (I think it's a JS code)


    Please to help me finding this code,

    King regards,
    Ape
    Ape
    Administrator
    Administrator


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

    In progress Re: I search the code of "dowload button"

    Post by Ape 23/6/2019, 21:45

    I have a button on the editor that i press and it gives me a drop down like the image download button.
    It gives you the url of the image then gives you a place to add your link I search the code of "dowload button" Cap212
    I have not seen any other post with it



    I search the code of "dowload button" Left1212I search the code of "dowload button" Center11I search the code of "dowload button" Right112
    I search the code of "dowload button" Ape_b110
    I search the code of "dowload button" Ape1010
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    In progress Re: I search the code of "dowload button"

    Post by skouliki 23/6/2019, 21:54

    Hello

    Download what you mean? Files? Images? Videos?

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: I search the code of "dowload button"

    Post by SLGray 23/6/2019, 22:24

    If you mean a download link with an image, you can use what APE posted.



    I search the code of "dowload button" Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    amghidh
    amghidh
    Forumember


    Posts : 55
    Reputation : 10
    Language : EN FR AR TM
    Location : Algeria

    In progress Re: I search the code of "dowload button"

    Post by amghidh 24/6/2019, 09:13

    Hi,
    I mean like this, a button in text editor
    I search the code of "dowload button" Untitl12

    but when I click insert it will write this in the post:
    Code:
    <a href="LINK I INSERED IN TOPIC"><img src="link of download button that I insered in the JS code"/></a>


    Thank you
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: I search the code of "dowload button"

    Post by SLGray 24/6/2019, 09:47

    So you have the code, but do not know how to add it to the editor?



    I search the code of "dowload button" Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    amghidh
    amghidh
    Forumember


    Posts : 55
    Reputation : 10
    Language : EN FR AR TM
    Location : Algeria

    In progress Re: I search the code of "dowload button"

    Post by amghidh 24/6/2019, 10:10

    Nope, 

    I have just the idea

    when i insert the link it will write like this on the editor
    [download]https;//link.com/link[/download]

    but when opening the topic, using the JS code
    [download] will be replaced by 
    Code:
    <a href="
    then the link will be placed
    then [/download] will be replaced by
    Code:
    "><img src="link of pic"/></a>

    or

    "><div class="down">Download here</div></a>
    so at the end we will have the full button


    Thank you
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    In progress Re: I search the code of "dowload button"

    Post by SLGray 24/6/2019, 19:16

    APE wrote:I have a button on the editor that i press and it gives me a drop down like the image download button.
    It gives you the url of the image then gives you a place to add your link I search the code of "dowload button" Cap212
    I have not seen any other post with it
    I believe this will achieve what you want.



    I search the code of "dowload button" Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    amghidh
    amghidh
    Forumember


    Posts : 55
    Reputation : 10
    Language : EN FR AR TM
    Location : Algeria

    In progress Re: I search the code of "dowload button"

    Post by amghidh 25/6/2019, 19:25

    SLGray wrote:
    APE wrote:I have a button on the editor that i press and it gives me a drop down like the image download button.
    It gives you the url of the image then gives you a place to add your link I search the code of "dowload button" Cap212
    I have not seen any other post with it
    I believe this will achieve what you want.
    No
    I say that I've already find this code one time (a year ago) in this support forum,

    but now i can't find it so I'm searching help to find it
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    In progress Re: I search the code of "dowload button"

    Post by skouliki 25/6/2019, 19:44

    here you find it?

    Storyteller of Wonderland
    Storyteller of Wonderland
    Forumember


    Female Posts : 108
    Reputation : 10
    Language : Russian, German, French, English.
    Location : Russia

    In progress Re: I search the code of "dowload button"

    Post by Storyteller of Wonderland 26/6/2019, 01:47

    amghidh wrote:Hi,
    I've already used this code, but now I can't find it in the three support forums
    I'm searching how to add to Text editor a button which permet to add download button to the topic
    It means I just write the download link on editor, then a button will appear
    (I think it's a JS code)


    Please to help me finding this code,

    King regards,


    Want to place a div tag inside a link? Do you think this is correct?

    I'll give you the script that I wrote right now, and I hope that it will help you ...

    But @APE wrote correctly. That you want.

    Okay. Here is a gift.

    Using the script, you can change the tag to the one you need, but the script must find the target, and this target will have the identifier you specify.

    Code:

    function changeTagName(el, newTagName) {
        var n = document.createElement(newTagName);
        var attr = el.attributes;
        for (var i = 0, len = attr.length; i < len; ++i) {
            n.setAttribute(attr[i].name, attr[i].value);
        }
        n.innerHTML = el.innerHTML;
        el.parentNode.replaceChild(n, el);
    }

    changeTagName(document.getElementById('YOUR__ID'), 'TAG');


    YOUR__ID - put your item id to change.
    TAG - put the right tag... div or a or span or... button


    example////

    before:

    Code:
    <button id="okey"></button>

    after:

    Code:
    <div id="okey"></div>
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15311
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    In progress Re: I search the code of "dowload button"

    Post by skouliki 6/7/2019, 19:50

    hello

    is this solved?

    SarkZKalie
    SarkZKalie
    Support Moderator
    Support Moderator


    Male Posts : 1442
    Reputation : 220
    Language : English

    In progress Re: I search the code of "dowload button"

    Post by SarkZKalie 20/7/2019, 03:33

    In case you are still looking for another solution, you may try mine.

    This one will automatically convert a link start by drive.google.com into a styled button without installing any JS or jQuery. You can freely align its link by any position : left, center, right
    Code:
    [left]https://drive.google.com/open?id=ABC[/left]
    [center]https://drive.google.com/open?id=ABC[/center]
    [right]https://drive.google.com/open?id=ABC[/right]
    It's up to you Smile



    I search the code of "dowload button" Sarkzk10