Sean I’ll do up something really quick tonight for you to watch - admittedly it may not be as in depth as some of the discussion here, but I can at least show you how I use them.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
November 21, 2007 10:20am
Subscribe [24]#76 / May 29, 2009 1:31am
Sean I’ll do up something really quick tonight for you to watch - admittedly it may not be as in depth as some of the discussion here, but I can at least show you how I use them.
#77 / May 29, 2009 9:36am
Chad,
Thanks and lookign forward to it.
#78 / May 29, 2009 10:34am
I have used FV for the first time on a project just launched. I will say it can be useful for all projects but like Boyink! stated they should not be made to fit a project but more a defined need for them. The way I used mine was to keep my template uncluttered and basic globals would not cut it. The mere fact it accepts weblog and other tags is enough for me. It’s a light alternative to using embeds as it’s processing is early in the template. I think with an upgraded interface fresh variables could become a staple in every install.
#79 / May 29, 2009 10:53am
Sean, did you see my response on Twitter?
#80 / May 29, 2009 8:19pm
Sue,
yes I did. Sorry for not responding. Basically I want to see how other devs use it. Once I see it in use I’ll better be able to see uses for it (if any) in my own projects.
#81 / Nov 30, 2009 7:47pm
Hi,
I did not have time to read this full thread, but…
I noticed that PHP has to be turned on via your template if the Fresh Variable uses PHP. Is this observation correct? If so, is this by design?
Thanks for the amazing extension/module. 😊
#82 / Nov 30, 2009 7:50pm
Yes, it does not allow you to override any template settings, including PHP parsing.
#83 / Nov 30, 2009 8:01pm
Yes, it does not allow you to override any template settings, including PHP parsing.
Thanks for the quick reply and clarification Derek!
Someone told me that they like to put their PHP includes inside an embed, that way they can avoid turning on PHP parsing for the parent template… They said that doing this can be faster.
I was kinda hoping Fresh Variables would be an alternative to having to use templates… Not a biggy though, I love my Fresh Variables! It is one of the most useful extensions/modules that I have used. 😊
Thanks again!
Cheers,
Micky
#84 / Nov 30, 2009 8:06pm
Your best bet in that case, mhulse, is to move your PHP to a plugin, not another template. You don’t want to go through all of the resource and processing that is required to parse an entire template for a couple lines of PHP.
#85 / Nov 30, 2009 9:12pm
move your PHP to a plugin
Doh! Excellent idea! I did not think of that. :D
Thanks again for Fresh Variables!
#86 / Jan 07, 2010 10:48am
It appears that comments don’t work in fresh variables….
{!-- is displayed as text --}#87 / Jan 07, 2010 10:58am
What about:
<!-- Not displayed as text -->Keep in mind, you should not nest comments… So you may run into probs if you have the above inside another HTML comment.
#88 / Jan 07, 2010 11:10am
Comments are stripped before Fresh Variables are parsed in 1.x.
#89 / Jan 27, 2010 4:21pm
I am getting the following error at the top of the Utilities -> Extensions Manager page after our site was moved to another server:
Warning: include(/home/user/public_html/system/extensions/ext.fresh_variables.php) [function.include]: failed to open stream: Permission denied in /home/user/public_html/system/cp/cp.utilities.php on line 147
Warning: include() [function.include]: Failed opening '/home/user/public_html/system/extensions/ext.fresh_variables.php' for inclusion (include_path='.:/usr/share/php') in /home/domain/public_html/system/cp/cp.utilities.php on line 147The files for the Fresh Variables extension are all there and permissions are set to 644. Thanks.
#90 / Jan 27, 2010 4:47pm
What about the file owner, eeart? “Permission denied in” means that PHP does not have rights to read this file.