PDA

View Full Version : Pugin don't work to vb 4.0.4


Asterix_ita
06-29-2010, 02:00 PM
Hello

I can not understand what has changed during the transition from VB 4.0.3 to VB 4.0.4
I created a plugin that inserted a new template at the end of postbit, all worked in 4.0.3 to 4.0.4 does not work

variables are recorded through this code

if ($ctads['ok'] && $ctads['template'] == 0)
{
$templater = vB_Template::create('postbit_ads_ct_2th');
$templater->register('post', $post);
$templater->register('ctads', $ctads);
$template_hook['postbit_end'] .= $templater->render();
}
if ($ctads['ok'] && $ctads['template'] == 1)
{
$templater = vB_Template::create('postbit_legacy_ads_ct_2th');
$templater->register('post', $post);
$templater->register('ctads', $ctads);
$template_hook['postbit_end'] .= $templater->render();
}

mi potete dare un aiutino, vedo che altri plugin non funzionano bene

JasonReynolds
06-29-2010, 02:01 PM
Should you start code with just "if"

Asterix_ita
06-29-2010, 02:17 PM
Sorry I did not understand your answer

JasonReynolds
06-29-2010, 02:18 PM
What is the mod that you are trying to use?

Asterix_ita
06-29-2010, 02:28 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=239981" target="_blank">The second post is advertising</a> this addon so far has worked, now I understand what changed in this vb4.0.4 not find information about the order to proceed with the fix.

I understand it because I have other addons and probably have problems too since I use templates and variables

:bai

eSekar
06-29-2010, 02:31 PM
** post removed **

Posted something wrong sorry lol

Good luck ;)

JasonReynolds
06-29-2010, 02:49 PM
You do know VB 4.0.4 comes with Advert space built in?

Asterix_ita
06-29-2010, 02:57 PM
Yes I know but this is different, now I want to understand the reason for this behavior since I have other addons