SEND button adjustment 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.
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 July 2nd 2017, 12:06 am

    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_ July 2nd 2017, 1:28 am

    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 July 2nd 2017, 11:33 am

    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 July 2nd 2017, 2:09 pm

    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 July 3rd 2017, 6:38 pm; edited 2 times in total
    SarkZKalie
    SarkZKalie
    Support Moderator
    Support Moderator


    Male Posts : 1443
    Reputation : 220
    Language : English

    SEND button adjustment Empty Re: SEND button adjustment

    Post by SarkZKalie July 2nd 2017, 3:40 pm

    @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 July 2nd 2017, 8:12 pm

    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 July 3rd 2017, 9:26 am

    @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.