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

    Preview/Send Button

    Mineko
    Mineko
    Forumember


    Female Posts : 57
    Reputation : 1
    Language : Hungarian
    Location : Hungary

    Solved Preview/Send Button

    Post by Mineko July 7th 2021, 7:23 am

    Hello ^^

    So, um ... I have a question that I want to solve the code in HTML as shown in the picture. However, what is code in the image is not included in the HTML. Because in the picture, only a temporary transcription, unfortunately it does not remain so permanently.


    Preview/Send Button LDCXIjF

    HTML code: viewtopic_body:
    tikky
    tikky
    Forumember


    Posts : 922
    Reputation : 160
    Language : 🇵🇹

    Solved Re: Preview/Send Button

    Post by tikky July 7th 2021, 8:52 am

    Hello @Mineko,

    In your stylesheet (CSS) use:
    To "Nézd meg":
    Code:
    form[action="/post"] .liteoption {

    }
    To "Küld el":
    Code:
    form[action="/post"] .mainoption {

    }
    Mineko
    Mineko
    Forumember


    Female Posts : 57
    Reputation : 1
    Language : Hungarian
    Location : Hungary

    Solved Re: Preview/Send Button

    Post by Mineko July 7th 2021, 10:39 am

    Um, okay ... But, uh ... What should I paste? Or do I not have to rewrite anything into this? I just paste it smoothly and that's it? ^^"
    tikky
    tikky
    Forumember


    Posts : 922
    Reputation : 160
    Language : 🇵🇹

    Solved Re: Preview/Send Button

    Post by tikky July 8th 2021, 3:21 am

    From what I understand from your image is the difference appearance in the buttons right? Because you cannot edit the source code of the editor. In your template you can find this part here (is a variable):
    Code:
    <!-- BEGIN switch_user_logged_in --><a name="quickreply"></a>{QUICK_REPLY_FORM}<!-- END switch_user_logged_in -->
    Your only solution is to use the code above. Sorry if I didn't understand your question correctly
    Mineko
    Mineko
    Forumember


    Female Posts : 57
    Reputation : 1
    Language : Hungarian
    Location : Hungary

    Solved Re: Preview/Send Button

    Post by Mineko July 8th 2021, 4:09 am

    Yeah, I think I get it. So I can't rewrite the names of the buttons. If I understand correctly. ^^ "
    tikky
    tikky
    Forumember


    Posts : 922
    Reputation : 160
    Language : 🇵🇹

    Solved Re: Preview/Send Button

    Post by tikky July 8th 2021, 5:21 am

    Mineko wrote:Yeah, I think I get it. So I can't rewrite the names of the buttons. If I understand correctly. ^^ "
    By script you can:
    Code:
    (function($) {
        'use strict';

        $(function() {

            var $form = $('form[action="/post"]');

            if (!$form.length) return;

            $form
                .find('.liteoption')
                .attr('value', 'button 1')
                .end()
                .find('.mainoption')
                .attr('value', 'button 2');

        });
    }(jQuery));

    sivastar, SLGray and TonnyKamper like this post

    Mineko
    Mineko
    Forumember


    Female Posts : 57
    Reputation : 1
    Language : Hungarian
    Location : Hungary

    Solved Re: Preview/Send Button

    Post by Mineko July 8th 2021, 1:33 pm

    Thank you <3 @pedxz
    Hug I love you
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15391
    Reputation : 1709
    Language : English,Greek
    Location : Greece

    Solved Re: Preview/Send Button

    Post by skouliki July 8th 2021, 2:05 pm

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules


      Current date/time is November 11th 2024, 1:19 pm