On Mon, Apr 19, 2010 at 11:59 PM, nimrod cohen <nimcohen@...> wrote:
> i'm using squirrelmail version 1.5.2 with address book database backend
> i want to add a group button to the compose screen
> seem like compose_button_row hook is never call !
> i think do_hook('compose_button_row',&$temp) should be add to
> about line 1474 (befor $oTemplate->display('compose_buttons.tpl')
> is it correct or there is another option .
No, it's not correct. That code does not need to be changed. You
should look for other plugins that add such buttons and are compatible
with 1.5.2. Off the top of my head, Compose Extras is one.
> the line at compose_buttons.tpl is
> <?php if (!empty($plugin_output1['compose_button_row'])) echo
> $plugin_output['compose_button_row']; ?>
> $plugin_output1['compose_button_row']) doesn't exist .. instead there is
> $plugin_output1) which is empty .
> also i tried to modify it by
> $oTemplate->assign('plugin_output',array(0=>$temp)) in compose.php
> but in compose_buttons.tpl it always get the old value ..meaning empty .. i
> know it's php/smarty problem ..
> any help on this thing ….
You need to use the template_construct_* hook and return your plugin
output in an associative array with a single key named for the place
where you want to insert the output.
Please support Open Source Software by donating to SquirrelMail!