![]() |
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! |
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. |
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:
|
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.
|
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! |
Instead of:
PHP Code:
PHP Code:
$myarray['anidbItems']= $aniTMP; Therefore, myarray is the variable to use, not anidbItems in the template. |
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 |
@Nuss:
Because the formal syntax of preRegister is: Code:
$myarray['anidbItems'] = 'somevalue'; Code:
{vb : raw myarray.anidbItems} |
All times are GMT. The time now is 06:50 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|