Showing Visitor Messages 1 to 1 of 1
-
I have some plugins I have been converting and am stumped a little. I have converted the template thats easy. Here is how I call the template in the plugin.
$templater = vB_Template::create('forumhome_addon');
$templater->register_page_templates();
$templater->register('pppro_imagebits', $pppro_imagebits);
$thistemplater = $templater->render();
$search_text = '<div id=\"pagetitle\">';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,$thistemplater.$search_text,$vbulletin->templatecache['FORUMHOME']);
That does not print anything on the screen. but this does although in the wrong spot I need it in the actual page not the navbar end but I dont see any hook where I want it hense I was trying the str_replace
$templater = vB_Template::create('forumhome_addon');
$templater->register_page_templates();
$templater->register('pppro_imagebits', $pppro_imagebits);
$template_hook['navbar_end'] .= $templater->render();