Log in

View Full Version : how do i use $my_var in a template


ryuuguu
03-08-2006, 04:29 AM
I am trying to get a variable set in the postbit template from a plugin, but it does not show.
I have

simple pugin

$my_variable = "My variable HERE";
echo($my_variable);

this is set as an active showtread_postbit_create plugin. I know it is active since I can see "My variable HERE" at the top of the page .

in the postbit template I have

My variable below here
$my_variable


I know it is active because I can see "My variable below here" on the page.
but "My variable HERE" does not show up.

Is this the totally wrong approach? Is there manual page that explains what I should be doing?

Cheers,
Grant

???`S?LV?R???`
03-08-2006, 05:07 AM
This section is for modification releases, not questions.

merk
03-08-2006, 07:04 AM
You're using the wrong hook.

postbit_display_complete.

ryuuguu
03-08-2006, 11:44 AM
Thanks,
Sorry about section mispost.