The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Plugin show Unparsed HTML
Hi guys i've a problem showing HTML in one of my plugins..
Need to show: <a href="link">Link!</a>, this HTML appear on my forum, but Unparsed... The plugin is in global_start i need to change this?? Thanks a lot! |
#2
|
||||
|
||||
You need to post your actual plugin code for us to see what you are doing.
Also, please note the the hook at global_start is deprecated. |
#3
|
|||
|
|||
Ok, Lynne, here is my plugin Code.
Quote:
ct_animedb_slider is a Custom template, here the code: Quote:
This template also is included in Vbulletin's header template: Quote:
|
#4
|
||||
|
||||
I see code where you preregistered a variable for use in a template (not needed if you are the one to create the template), but I never see the code to create the template - that has to be somewhere also. You've also never defined the variable "ct_animedb_slider" I know you have a template with that name, but you are using it as a variable in the header template and it's never defined.
|
#5
|
|||||
|
|||||
Sorry , forgot post it, this is the plugin that create the template.
Name: Slider AnimeDB Quote:
I'm reading this article: https://vborg.vbsupport.ru/showthread.php?t=228078 and i figured how to register a var, like this: $templater->register('my_var', $my_var); But i really dont understood where i need to register them and if this can solve my problem. So i have 2 templates and 2 plugins. 1 Plugin) Called "Slider AnimeDB" Make and Register the template " Quote:
Plugin Code: Quote:
Plugin code: Quote:
Quote:
Ok, i dont understand where i need to register the Var "ct_animedb_slider" and i dont know if is correct that i'm doing, srry this new plugin system is really confuse for me. Thanks for your time! |
#6
|
||||
|
||||
Instead of:
PHP Code:
PHP Code:
$myarray['anidbItems']= $aniTMP; Therefore, myarray is the variable to use, not anidbItems in the template. |
#7
|
|||
|
|||
Thanks Lynne i solved by this way (if someone have the some problem)
In ct_anime_slider template, i wrote: {vb:raw anidbItems} ({vb:raw myarray.anidbItems} does't worked) And in Slider AnimeDb plugin, i wrote: Quote:
Anidb Items Still untouched. Thanks a Lot, this is working now |
#8
|
|||
|
|||
@Nuss:
Because the formal syntax of preRegister is: Code:
$myarray['anidbItems'] = 'somevalue'; $notarray = 'anothervalue'; vB_Template : preRegister('header', array('myarray' => $myarray, 'notarray' => $notarray); Code:
{vb : raw myarray.anidbItems} {vb : raw notarray} |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|