• OzzModz is no longer taking registrations. All registrations are being redirected to Snog's Site
    All addons and support is available there now.

egdonate fix

puertoblack2003

New member
I need help getting this last bit of help.I've been using this mod for a few years.The author is no longer with vb.I love this simple mod.

I pretty much did the main part and this is the last one that is kicking me in the rear.

Code:
eval('$egdonate = "' . fetch_template('egdonate') . '";');
$templater = vB_Template::create('egdonate');
print_output($templater->render());

I'm getting errors in log for vb template create. Can anyone help

regards
 
It looks like you are using both vB3 and vB4 methods there. Omit the first line, and then below the first line (as it appears this is in an external script), include the line:

PHP:
$templater->register_page_templates();

After this, you need to register any variables you wish to be available in the new template, as follows (for each variable):

PHP:
$templater->register('variable_name', $variable_name);

And now you are ready for the print_output() function. :)
 
Back
Top