![]() |
So if I'm reading this right - the code you are referring to is part of $template['template'] ?
If that's the case then yes, you will simply get the code - as all you are doing is getting the contents and storing them in $myxml. You would need to eval the contents - and they would need to be in a format that eval can handle. Alternatively, you could store some unique text in the template where the value should go, and do a replacement on it after getting the contents. |
Yeah. I thought of str_replace, but it's a lot of options and phrases.
|
1 Attachment(s)
In the attached example, I got no problem with getting from database as no customizations involved.
|
As Paul has already mentioned, you need to evaluate the text of the template.
PHP Code:
|
Quote:
I resorted doing it the hard way. if ($template['template']==1){ all the code } else { } My php file went from 5k to 56k. Thank you everyone for trying to help. I feel important in this thread. I had all the big guys in here :D |
All times are GMT. The time now is 04:58 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:
|