PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community

Verified Customer

Luciano Luciano is offline

Member

Visitor Messages

Showing Visitor Messages 1 to 1 of 1
  1. Chuck S
    November 15th, 2009 01:14 PM - permalink
    Chuck S
    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();

About Me

  • About Luciano
    PHP/MySQL Proficiency
    Beginner

Statistics

Total Posts
Visitor Messages
General Information
  • Last Activity: Yesterday 09:19 AM
  • Join Date: August 4th, 2005

All times are GMT -5. The time now is 12:53 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0