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

    SEND button adjustment

    Kami-sama
    Kami-sama
    Forumember


    Female Posts : 407
    Reputation : 12
    Language : EN, RU, DE, LT
    Location : Lithuania

    SEND button adjustment Empty SEND button adjustment

    Post by Kami-sama 2/7/2017, 05:06

    Technical Details


    Forum version : #phpBB2
    Position : Founder
    Concerned browser(s) : Google Chrome
    Who the problem concerns : Yourself
    Forum link : ( link is hidden, you must reply to see )

    Description of problem

    Hey guys!

    I want to change the send button (for messages, pm's) label. It says "send", yet my forum is not in english.

    I did not find it in the templates. Have I missed it?
    Is JS the only way?
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


    Male Posts : 2083
    Reputation : 336
    Language : English
    Location : Ms

    SEND button adjustment Empty Re: SEND button adjustment

    Post by _Twisted_Mods_ 2/7/2017, 06:28

    you would have to change it for post and pm's

    post & private message - posting_body



    Code:
    <input class="button1" type="submit" name="post" value="{L_SUBMIT}" tabindex="6" accesskey="s" />


    replace the value and give it a class if u want 2 style it later

    Code:
    <input class="button1" type="submit" name="post" value="Post it" class="postbutton" tabindex="6" accesskey="s" />


    Code:

    .postbutton{font-weight:normal;}
    Kami-sama
    Kami-sama
    Forumember


    Female Posts : 407
    Reputation : 12
    Language : EN, RU, DE, LT
    Location : Lithuania

    SEND button adjustment Empty Re: SEND button adjustment

    Post by Kami-sama 2/7/2017, 16:33

    Oh, great!

    Value replaced in posting_body changed value for private messages send button
    It did not affect send button in quick reply. Is the tag for quick reply somewhere else?
    avatar
    Guest
    Guest


    SEND button adjustment Empty Re: SEND button adjustment

    Post by Guest 2/7/2017, 19:09

    The quick reply button can't be modified from the templates, but you can use this js code to modify it:
    Code:

    window.mdf={};
    mdf.copyright="Code by Wolfuryo. Using this code without this notice will result in the destruction of your forum";
    mdf.reg=/t\d+/;
    mdf.pth=location.pathname;
    mdf.oldtext="Send";
    mdf.newtext="Send";
    mdf.elem=document.querySelector("[value='"+mdf.oldtext+"']");
    mdf.init=function(){
    if(!mdf.reg.test(mdf.pth) || !mdf.elem.length) return;
    mdf.elem.attr("value", mdf.newtext);
    };
    $(function(){
    mdf.init();
    });


    Last edited by Wolfuryo on 3/7/2017, 23:38; edited 2 times in total
    SarkZKalie
    SarkZKalie
    Support Moderator
    Support Moderator


    Male Posts : 1442
    Reputation : 220
    Language : English

    SEND button adjustment Empty Re: SEND button adjustment

    Post by SarkZKalie 2/7/2017, 20:40

    @Wolfuryo Will you add a bomb timer here? haha just kidding, they'll surely respect the rule Very Happy



    SEND button adjustment Sarkzk10
    Kami-sama
    Kami-sama
    Forumember


    Female Posts : 407
    Reputation : 12
    Language : EN, RU, DE, LT
    Location : Lithuania

    SEND button adjustment Empty Re: SEND button adjustment

    Post by Kami-sama 3/7/2017, 01:12

    Hm... that did not work for my.
    Maybe unicode text is messing it up?
    avatar
    Guest
    Guest


    SEND button adjustment Empty Re: SEND button adjustment

    Post by Guest 3/7/2017, 14:26

    @SarkZkalie, if I find that code on a forum without that notice, I'll ask the admin to remove it or put the notice there. If that doesn't happen, I'll spam it with about 10000 messages. I've got a code that does that Smile) . While the staff tries to get rid of them, I'll send a report to fm. The forum will go BOOM Smile). Even if fm decides to not delete that forum, it's staff will be busy for quite some time.

    @Kami-sama, I haven't tested that code yet(and I won't be able to test it till next week). Open the console and tell me if there's anything in it.
    EDIT:I found the problem(one of them at least Smile ). I updated the code in my previous post.

      Current date/time is 23/9/2024, 02:15