Topic: pun_bbcode not appear

Hi,

I'm using PunBB 1.3.4 for my community. I installed pun_bbcode or BBCode buttons in our forum.

The problem is the BB Code buttons not appear in the above of Message field.

For your informations:

1. My Forum using own style, called "mytheme" and I already copied the Oxygen buttons to "mytheme" buttons in /forum/extensions/pun_bbcode/buttons/mytheme

2. There is some error when i tried to access manifest.xml (http://www.mydomain.com/forum/extensions/pun_bbcode/manifest.xml

Could you please help me to solve my problem?

Re: pun_bbcode not appear

udhien wrote:

1. My Forum using own style, called "mytheme" and I already copied the Oxygen buttons to "mytheme" buttons in /forum/extensions/pun_bbcode/buttons/mytheme

Does the pun_bbcode panel appear when the user uses the Oxygen style?

udhien wrote:

2. There is some error when i tried to access manifest.xml (http://www.mydomain.com/forum/extensions/pun_bbcode/manifest.xml

For what purposes do you try to get this page?

Re: pun_bbcode not appear

I had a problem like this earlier today, and I found that the manifest.xml file had some code misplaced or so I believe.

<hook id="ft_about_pre_copyright"><![CDATA[
if (defined('PUN_BBCODE_BAR_INCLUDE')) {
    include $ext_info['path'].'/bar.php';
?>
<script type="text/javascript"><!--
var pun_bbcode_bar = document.getElementById("pun_bbcode_bar");
if (pun_bbcode_bar) {
    pun_bbcode_bar.innerHTML = "<?php echo pun_bbcode_bar(); ?>";
    pun_bbcode_bar.style.display = "block";
    pun_bbcode_bar.style.visibility = "visible";
}
--></script>
<?php
}
        ]]></hook>

I placed the piece of code inside that hook here.

<hook id="po_pre_post_contents, vt_quickpost_pre_message_box, ed_pre_message_box, pun_pm_fn_send_form_pre_textarea_output"><![CDATA[
if ($forum_user['pun_bbcode_enabled']) {
    define('PUN_BBCODE_BAR_INCLUDE', 1);
    echo "\t\t\t".'<div class="sf-set" id="pun_bbcode_bar"></div>'."\n";
}

if (defined('PUN_BBCODE_BAR_INCLUDE')) {
    include $ext_info['path'].'/bar.php';
?>
<script type="text/javascript"><!--
var pun_bbcode_bar = document.getElementById("pun_bbcode_bar");
if (pun_bbcode_bar) {
    pun_bbcode_bar.innerHTML = "<?php echo pun_bbcode_bar(); ?>";
    pun_bbcode_bar.style.display = "block";
    pun_bbcode_bar.style.visibility = "visible";
}
--></script>
<?php
}
        ]]></hook>

So the final result looked like this

<hook id="po_pre_post_contents, vt_quickpost_pre_message_box, ed_pre_message_box, pun_pm_fn_send_form_pre_textarea_output"><![CDATA[
if ($forum_user['pun_bbcode_enabled']) {
    define('PUN_BBCODE_BAR_INCLUDE', 1);
    echo "\t\t\t".'<div class="sf-set" id="pun_bbcode_bar"></div>'."\n";
}

if (defined('PUN_BBCODE_BAR_INCLUDE')) {
    include $ext_info['path'].'/bar.php';
?>
<script type="text/javascript"><!--
var pun_bbcode_bar = document.getElementById("pun_bbcode_bar");
if (pun_bbcode_bar) {
    pun_bbcode_bar.innerHTML = "<?php echo pun_bbcode_bar(); ?>";
    pun_bbcode_bar.style.display = "block";
    pun_bbcode_bar.style.visibility = "visible";
}
--></script>
<?php
}
        ]]></hook>

        <hook id="ft_about_pre_copyright"><![CDATA[

        ]]></hook>

I think this might just be some funky glitch with my installment of punbb, but you could give it a try yourself since it did seem to solve the problem.