hi,
how to using pun_bbcode to other pages?
my punbb dir at
- /forum/index.php
i want create pub_bbcode in
- /index.php

in viewtopic.php i found this code

<div class="main-subhead">
    <h2 class="hn"><span><?php echo $lang_topic['Quick post'] ?></span></h2>
</div>
<div id="brd-qpost" class="main-content main-frm">
<?php if (!empty($forum_page['text_options'])) echo "\t".'<p class="content-options options">'.sprintf($lang_common['You may use'], implode(' ', $forum_page['text_options'])).'</p>'."\n" ?>
    <div id="req-msg" class="req-warn ct-box error-box">
        <p class="important"><?php echo $lang_topic['Required warn'] ?></p>
    </div>
    <form class="frm-form" method="post" accept-charset="utf-8" action="<?php echo $forum_page['form_action'] ?>"<?php if (!empty($forum_page['form_attributes'])) echo ' '.implode(' ', $forum_page['form_attributes']) ?>>
        <div class="hidden">
            <?php echo implode("\n\t\t\t\t", $forum_page['hidden_fields'])."\n" ?>
        </div>
<?php ($hook = get_hook('vt_quickpost_pre_fieldset')) ? eval($hook) : null; ?>
        <fieldset class="frm-group group1">
            <legend class="group-legend"><strong><?php echo $lang_common['Write message legend'] ?></strong></legend>
<?php ($hook = get_hook('vt_quickpost_pre_message_box')) ? eval($hook) : null; ?>
            <div class="txt-set set1">
                <div class="txt-box textarea required">
                    <label for="fld1"><span><?php echo $lang_common['Write message'] ?></span></label>
                    <div class="txt-input"><span class="fld-input"><textarea id="fld1" name="req_message" rows="7" cols="95"></textarea></span></div>
                </div>
            </div>
<?php ($hook = get_hook('vt_quickpost_pre_fieldset_end')) ? eval($hook) : null; ?>
        </fieldset>
<?php ($hook = get_hook('vt_quickpost_fieldset_end')) ? eval($hook) : null; ?>
        <div class="frm-buttons">
            <span class="submit"><input type="submit" name="submit" value="<?php echo $lang_common['Submit'] ?>" /></span>
            <span class="submit"><input type="submit" name="preview" value="<?php echo $lang_common['Preview'] ?>" /></span>
        </div>
    </form>
</div>

and i'm copy/paste to /index.php
but no working? sad

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

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..