![]() |
[SOLVED]Removing escapes from fetched template in parse_templates plugin
I created a plugin to fetch a template and append it to a custom template hook, the problem is the page renders it with escapes which cause it to not function.
this is my plugin: Code:
<plugin active="1" executionorder="5"> Code:
<template name="drc_tst" templatetype="template" date="0" username="DrCustUmz" version="1.0"><![CDATA[ HTML Code:
<!-- BEGIN TEMPLATE: drc_tst --> --------------- Added [DATE]1462226052[/DATE] at [TIME]1462226052[/TIME] --------------- I seemed to have made it work by evaling the template as a variable before appending it, Im not sure this is the best way to go about this all I know is it worked. Any comments? Code:
eval('$drctst = "' . fetch_template('drc_tst') . '";'); |
All times are GMT. The time now is 02:14 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:
|