Topic: disabling quick post through hook

hello,
i tried not to show the quick post section using a hook. but i ended with no success. it is possible to hide from option. however, i will show/hide on condition in my ext.


i tried,
hook = vt_qpost_output_start
---------------------
condition to show quickpost {

      the defaults codes
---------------------
hook = vt_quickpost_end
---------------------
}
---------------------

but it did not work. possibly due to some other hook codes.

i also tried to clean the buffering on condition before replacing the template variables.  however getting encoding error.


can anyone tell me how simply disable quick post?

Re: disabling quick post through hook

I thought you could do that in the admin panel!

Re: disabling quick post through hook

kierownik wrote:

I thought you could do that in the admin panel!

that's not what I want. i mentioned in first post already.

thanks though

Re: disabling quick post through hook

To hide Quick Post form it will be enough this code:

<hook id="vt_quickpost_end"><![CDATA[
$tpl_main = str_replace('<!-- forum_qpost -->', '', $tpl_main);
]]></hook>