The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
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 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();
}
|
|
#2
|
|||
|
|||
|
Should you start code with just "if"
|
|
#3
|
||||
|
||||
|
Sorry I did not understand your answer
|
|
#4
|
|||
|
|||
|
What is the mod that you are trying to use?
|
|
#5
|
||||
|
||||
|
<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 |
|
#6
|
||||
|
||||
|
** post removed **
Posted something wrong sorry lol Good luck
|
|
#7
|
|||
|
|||
|
You do know VB 4.0.4 comes with Advert space built in?
|
|
#8
|
||||
|
||||
|
Yes I know but this is different, now I want to understand the reason for this behavior since I have other addons
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|