The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

SEND button adjustment

View previous topic View next topic Go down

SEND button adjustment

Post by Kami-sama on 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?
avatar
Kami-sama
Forumember

Female Posts : 317
Reputation : 7
Language : English, Russian, German, Lithuanian
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Re: SEND button adjustment

Post by _Twisted_Mods_ on 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;}
avatar
_Twisted_Mods_
Helper
Helper

Male Posts : 2064
Reputation : 314
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Re: SEND button adjustment

Post by Kami-sama on 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
Kami-sama
Forumember

Female Posts : 317
Reputation : 7
Language : English, Russian, German, Lithuanian
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Re: SEND button adjustment

Post by Justice™ on 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
avatar
Justice™
Forumember

Posts : 514
Reputation : 117
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

Re: SEND button adjustment

Post by SarkZKalie on 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
avatar
SarkZKalie
Forumember

Male Posts : 577
Reputation : 87
Language : English

http://rotavn.nstars.org/

Back to top Go down

Re: SEND button adjustment

Post by Kami-sama on July 2nd 2017, 8:12 pm

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

Female Posts : 317
Reputation : 7
Language : English, Russian, German, Lithuanian
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Re: SEND button adjustment

Post by Justice™ on 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.
avatar
Justice™
Forumember

Posts : 514
Reputation : 117
Language : Romanian and English

http://board.realmsn.com

Back to top Go down

View previous topic View next topic Back to top


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