Yes thats what I have been trying since last, created plugin , hooked it at "SHOWTHREAD" , "postbit" template.
I also tried to include file with following code
Code:
ob_start();
require_once('prod_gallery_maker.php');
$creds = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('SHOWTHREAD',array('creds' => $creds));
Above code gives error
following code do works 60%
Code:
ob_start();
$threadtitle = $threadinfo['title'];
require_once('http://sitename.com/prod_gallery_maker.php?t=<?$threadtitle;?>');
$creds = ob_get_contents();
ob_end_clean();
vB_Template::preRegister('SHOWTHREAD',array('creds' => $creds));
However if I tired above code it works fine. It showing product successfully. But problem is that, I want to show products related to forum title. Therefore why I passed parameters along with it as
Code:
require_once('http://sitename.com/prod_gallery_maker.php?t=<?$threadtitle;?>');
but its not working.
It is not passing parameter successfully.
--------------- Added [DATE]1300907348[/DATE] at [TIME]1300907348[/TIME] ---------------
session variables are not working.
Do you it would work with cookie variable? i.e store threadtitle with the help of cookie.
--------------- Added [DATE]1300913112[/DATE] at [TIME]1300913112[/TIME] ---------------
ob_start();
$threadtitle = $threadinfo['title'];
setcookie('threadtitle111',$threadtitle);
require_once('http://naturalparenting.com.au/prod_gallery.php');
$prods = ob_get_contents();
ob_end_clean();
vB_Template:

reRegister('postbit_legacy',array('p rods' => $prods));
Dont know why setcookie not working at vbulletin?