SEND button adjustment
3 posters
Page 1 of 1
SEND button adjustment
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?
Re: SEND button adjustment
you would have to change it for post and pm's
post & private message - posting_body
replace the value and give it a class if u want 2 style it later
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;}
Re: SEND button adjustment
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?
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?
Re: SEND button adjustment
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
Guest- Guest
Re: SEND button adjustment
@Wolfuryo Will you add a bomb timer here? haha just kidding, they'll surely respect the rule
Re: SEND button adjustment
@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 ) . While the staff tries to get rid of them, I'll send a report to fm. The forum will go BOOM ). 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 ). I updated the code in my previous post.
@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 ). I updated the code in my previous post.
Guest- Guest
Similar topics
» No button for "visitor message", cant send messages
» My send button is not working
» How can i change the "Send" button with css?
» how to change color of send button?
» Logo Adjustment?
» My send button is not working
» How can i change the "Send" button with css?
» how to change color of send button?
» Logo Adjustment?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum