Log in

View Full Version : postbit_factory hook?


Ron1n
08-01-2005, 11:15 PM
Already possible.

Hook: postbit_factory

if($postbit_type == 'index_postbit')
{
$out =& new vB_Postbit_Post();
$out->templatename = 'index_postbit';
$handled_type = true;
}

I wanted to hook the postbit factory constructor, and it didnt seem possible. I posted on vBulletin.com and I got this reply. I cannot find the location of the postbit_factory hook. I have done a ctrl+f find-all for the entire vB source but cannot find the hook. Could someone point out which file it is in and an approximate location?

Andreas
08-01-2005, 11:20 PM
includes/class_postbit.php
Line 77 on RC1.

Ron1n
08-01-2005, 11:42 PM
includes/class_postbit.php
Line 77 on RC1.
I must have been using old files... thanks.