You can call it externally
1) Put the code that you were going to post in the template into an external php file and upload it to the webserver, call it adsenseinfirstpost.php
2) Go to plugin manager and create a new plugin
- Hook location : global_bootstrap_init_start
- Plugin code (edit in your website url):
ob_start();
require_once('http://www.yourwebsite.com/forum/adsenseinfirstpost.php');
$adsenseinfirstpost = ob_get_contents();
ob_end_clean();
vB_Template:

reRegister('postbit_legacy',array('a dsenseinfirstpost' => $adsenseinfirstpost));
3) In postbit_legacy template, where you were going to post the code, put this instead
{vb:raw adsenseinfirstpost}
If you are using postbit, rather than postbit_legacy, just alter the template name in the ob_start code
Quote:
Originally Posted by MichelangeloITA
Hi dude, how can I make this work on vB4.1.1? 
|