PHP Developers Network
http://forums.devnetwork.net/

Decorator Plugin
http://forums.devnetwork.net/viewtopic.php?f=52&t=128526
Page 1 of 1

Author:  jimi [ Thu Mar 17, 2011 11:31 am ]
Post subject:  Decorator Plugin

Is it possible to have the decorator plugin act in a recursive manner? Say for instance I have the replacement {username} => $user->info->username the first instance of {username} in my text is replaced with the data, the second or subsequent instances of the replacement tag is not, it simply says the words {username}.

Could it be the fact that I have HTML surrounding the replacement text? IE: <b>{username}</b> ?


Edit: I just realized what is causing it. I have a box {signature} => $signature_code, and the variables within the string $signature_code are not being replaced. Is this possible using the decorator plugin?

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/