Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Commandor on December 16, 2005, 10:47:56 AM

Title: Need Help on Adding a button to the Post Form...
Post by: Commandor on December 16, 2005, 10:47:56 AM
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.
Title: Re: Need Help on Adding a button to the Post Form...
Post by: Elmacik on December 16, 2005, 10:53:36 AM
Post.template.php
Put the array of your button right between the current others :)
Title: Re: Need Help on Adding a button to the Post Form...
Post by: Commandor on December 16, 2005, 01:05:07 PM
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])

Title: Re: Need Help on Adding a button to the Post Form...
Post by: Commandor on December 17, 2005, 09:17:26 AM
Is there really nobody ho can help?
Title: Re: Need Help on Adding a button to the Post Form...
Post by: Elmacik on December 17, 2005, 07:26:17 PM
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? ;)