Topic: [Solved] How change admin/forums.php

hi,
i want change in line 463 /admin/forums.php :

<form method="post" class="frm-form" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_forums']) ?>?edit_forum=<?php echo $forum_id ?>">

to

<form method="post" class="frm-form" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_forums']) ?>?edit_forum=<?php echo $forum_id ?>" onClick="myJavascript()">

i try to

<hook id="afo_edit_forum_pre_forum_name">
                    <![CDATA[
                    ?>
                         <form method="post" class="frm-form" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_forums']) ?>?edit_forum=<?php echo $forum_id ?>" onSubmit="myJavascript()">
<?php
                     ]]>
</hook>

but i see duplicate

 <form method="post" class="frm-form" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_forums']) ?>?edit_forum=<?php echo $forum_id ?>">

 <form method="post" class="frm-form" accept-charset="utf-8" action="<?php echo forum_link($forum_url['admin_forums']) ?>?edit_forum=<?php echo $forum_id ?>" onSubmit="myJavascript()">

in source of http://localhost/admin/forums.php?edit_forum=1
sad
help!
sorry bad english..

Re: [Solved] How change admin/forums.php

I think you need to do something with

ob_start
//the code you don't want
ob_end_clean()

http://ch2.php.net/manual/en/function.ob-start.php

and/or

str_replace (old, new, ...)

http://php.net/manual/en/function.str-replace.php

Re: [Solved] How change admin/forums.php

KeyDog wrote:

I think you need to do something with

ob_start
//the code you don't want
ob_end_clean()

http://ch2.php.net/manual/en/function.ob-start.php

and/or

str_replace (old, new, ...)

http://php.net/manual/en/function.str-replace.php

SOLVED!
  thanks

Re: [Solved] How change admin/forums.php

Cool, what did your code look like in the end?