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.

SEND button adjustment

3 posters

Go down

SEND button adjustment Empty SEND button adjustment

Post by Kami-sama 2nd July 2017, 00: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?
Kami-sama
Kami-sama
Forumember

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

http://hogas.huhohi.com/

Back to top Go down

SEND button adjustment Empty Re: SEND button adjustment

Post by _Twisted_Mods_ 2nd July 2017, 01: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;}
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

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

http://liquidcode.forumotion.com

Back to top Go down

SEND button adjustment Empty Re: SEND button adjustment

Post by Kami-sama 2nd July 2017, 11: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?
Kami-sama
Kami-sama
Forumember

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

http://hogas.huhohi.com/

Back to top Go down

SEND button adjustment Empty Re: SEND button adjustment

Post by Guest 2nd July 2017, 14: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 3rd July 2017, 18:38; edited 2 times in total
avatar
Guest
Guest


Back to top Go down

SEND button adjustment Empty Re: SEND button adjustment

Post by SarkZKalie 2nd July 2017, 15:40

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


SEND button adjustment Sarkzk10
SarkZKalie
SarkZKalie
Support Moderator
Support Moderator

Male Posts : 1407
Reputation : 218
Language : English

https://rotavn.forumotion.com/

Back to top Go down

SEND button adjustment Empty Re: SEND button adjustment

Post by Kami-sama 2nd July 2017, 20:12

Hm... that did not work for my.
Maybe unicode text is messing it up?
Kami-sama
Kami-sama
Forumember

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

http://hogas.huhohi.com/

Back to top Go down

SEND button adjustment Empty Re: SEND button adjustment

Post by Guest 3rd July 2017, 09: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.
avatar
Guest
Guest


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum