PDA

View Full Version : How do you use a hook for forumhome


Moya
10-18-2005, 03:46 PM
I am trying to add in additional data into forumhome display by using product. I start out by test with this code



global $test,$stamp;
$test='';
$stamp='';


$stamp=time();
$test=12;



The hook I use is forumhome_complete, and I add $stamp and $test to forumhome_forumbit_level2_post Template. When I refresh my forum with ctrl + f5, it returns empty value.

It seems to me that the plugin is not accessed. Would you please help me to place this into appropriate hook so that the routine can be carried out.

thanks a bunch

Andreas
10-18-2005, 05:10 PM
The plugin is accessed, but forumhome_complete is the wrong place if you want to process data for forumbit_x Templates.

Hook forumbit_display is what you are looking for.

Moya
10-18-2005, 06:24 PM
OMG

Thanks Andreas. I was pulling my hair over this. I learn something new each day on VB here.