News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Need Help on Adding a button to the Post Form...

Started by Commandor, December 16, 2005, 10:47:56 AM

Previous topic - Next topic

Commandor

Hi to everyone!!!

I hope that the post is at the right place. Sorry if not.

Any way, I want to extend the functionality of the post form and add a button to the list of those that I already have. How can I do it ? What files should I edit to do so?

Thanx.

Elmacik

Post.template.php
Put the array of your button right between the current others :)
Home of Elmacik

Commandor

After that, whan the user clicks on the button, I want to transform all the text that is inside the form from translit language to the russian language using the javascript function. The function is inside another file.  How can I take all the text from the form and pass it to the function? 
I've added this line to show the button on the form:

'translit' => array('code' => 'tra', 'before' => ' ', 'after' => ' ', 'description' => $txt[260])


Commandor


Elmacik

Its not possible to translate some text into some language immediately and over forum.
Why not giving the relevant "javascript function" you are talking about? ;)
Home of Elmacik

Advertisement: