[PHPTAL] PHPTAL and Wordpress

2008-03-15 Thread Alister Cameron
the problem out with me :) -- Alister Cameron Managing Director Cameron Creative Pty Ltd www.cameroncreative.com Creative, Strategic, Innovative... never boring! ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman

[PHPTAL] Not sure what I'm doing wrongly...

2008-12-30 Thread Alister Cameron
Hi guys. I am a little lost here. I keep getting this error message: Notice: Trying to get property of non-object in /Users/acameron/Sites/dev.local/wp-content/themes/carrington-blog/cache/tpl_1230650091_1_1_14vanillagrie23eb3d7c9b4eeff8130736697dc2527.php on line 202 Notice: Trying to get

[PHPTAL] PHP logic problem...

2008-12-31 Thread Alister Cameron
Folks, Much as I am impressed with PHPTAL and that's not about the change, I am frustrated with a lot of things that, to my mind, should just work, but... just don't! For example... div id=content class=class tal:attributes=class php:(vanilla.nesting == 'yui-gc' OR vanilla.nesting == 'yui-ge') ?

Re: [PHPTAL] Re: PHP logic problem...

2009-01-01 Thread Alister Cameron
regards, Levi And have a happy new years. Alister Cameron wrote: Ok. I fixed it, but I'm not sure I understand scope here... tal:block define=global nst vanilla/nesting / div id=content class=class tal:attributes=class php: (in_array( nst, array('yui-gc', 'yui-ge'))) ? 'yui-u first' : 'yui-u

[PHPTAL] PHP and scope issues... they're killing me!

2009-01-01 Thread Alister Cameron
Quick one, that is frying my brain... This is a snippet from a template I'm working on: snip ${vanilla/nesting} tal:block define=nst vanilla/nesting condition=php: in_array(nst, array('yui-gd', 'yui-gf')) /snip Now, can someone explain to me why the first line outputs the value of

Re: [PHPTAL] PHP and scope issues... they're killing me!

2009-01-02 Thread Alister Cameron
In PHP it's just values in an array (or nested arrays). Created as: $tpl[] = array( nesting = $nesting ); Then: $template-set('vanilla', $tpl); and so forth. Does that help? -A 2009/1/2 Maciej Łebkowski m.lebkow...@gmail.com On Fri, Jan 2, 2009 at 08:47, Alister Cameron alister.came

[PHPTAL] Best practices for performance?

2009-01-03 Thread Alister Cameron
Hi again. After an aborted attempt about a year ago, I am now making great headway on a PHPTAL WordPress theme. This has been a bit of a holy grail project for me, and as someone with limited experience with PHP, a big challenge. Good news is I am getting through it and have overcome all the

Re: [PHPTAL] PHP and scope issues... they're killing me!

2009-01-06 Thread Alister Cameron
@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal -- Alister Cameron Managing Director Cameron Creative Pty Ltd www.cameroncreative.com Creative, Strategic, Innovative... never boring! ___ PHPTAL mailing list PHPTAL

Re: [PHPTAL] Best practices for performance?

2009-01-06 Thread Alister Cameron
at 10:18 PM, Kornel Lesiński kor...@aardvarkmedia.co.uk wrote: On 04-01-2009 at 00:05:39 Alister Cameron alister.came...@cameroncreative.com wrote: Can you please shed some light on what are best practices regarding keeping PHPTAL fast? PHPTAL does most of the work at compile time, so

[PHPTAL] Re: Please review my work if you're able.

2009-01-06 Thread Alister Cameron
Further to my last message, if anyone is interested... I've setup a Git repository here: http://github.com/alicam/vanilla-theme ...and issue tracking here: http://code.google.com/p/vanilla-theme There's also a discussion group here: http://groups.google.com/group/vanilla-theme-discussion

Re: [PHPTAL] PHPTAL Filter Library

2009-01-12 Thread Alister Cameron
/ I'd be glad if you would share your filters. -- regards, takeshin ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal -- Alister Cameron Managing Director Cameron Creative Pty Ltd

[PHPTAL] Disabling PHP?

2009-03-02 Thread Alister Cameron
. Cheers, -Alister --- Alister Cameron // Blogologist http://www.alistercameron.com Mob. 04 0404 Fax 03 8610 0050 Click here to find me online: http://clicktoadd.me/alicam ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion

Re: [PHPTAL] PHPTAL 1.2.0 alpha - is this a bug or my fail?!

2009-05-14 Thread Alister Cameron
Alister Cameron alister.came...@cameroncreative.com wrote: Could I bother someone to have a look at the processed cache file and diagnose? http://www.alistercameron.com/tal.src.txt This code uses entry variable _after_ the loop (e.g. in id=post-${entry/the_ID}). Do you have such code

Re: [PHPTAL] PHPTAL 1.2.0 alpha - is this a bug or my fail?!

2009-05-15 Thread Alister Cameron
/mailman/listinfo/phptal -- Alister Cameron Managing Director Cameron Creative Pty Ltd www.cameroncreative.com Creative, Strategic, Innovative... never boring! ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman

[PHPTAL] Using SetSource and I don't want to cache while in dev mode...

2009-08-13 Thread Alister Cameron
Folks, Can I force a recache on every page load while I'm in dev mode on a given project? Specifically I am using setSource for everything, rather than a static file, and it seems to be different in my situation. Thoughts? -Alister ___ PHPTAL mailing

[PHPTAL] How would you do this in TAL?!

2009-08-17 Thread Alister Cameron
?! Thoughts welcome :) -Alister --- Alister Cameron // Blogologist http://www.alistercameron.com Mob. 04 0404 Fax 03 8610 0050 Click here to find me online: http://clicktoadd.me/alicam ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http

Re: [PHPTAL] Re: Minification of HTML XHTML

2009-08-17 Thread Alister Cameron
goodness you could ever hope for, as far as shrinking HTML goes. Cheers, -Alister --- Alister Cameron // Blogologist http://www.alistercameron.com Mob. 04 0404 Fax 03 8610 0050 Click here to find me online: http://clicktoadd.me/alicam On Fri, Aug 14, 2009 at 11:24 PM, Richard Cernava

[PHPTAL] Translation and HTML markup

2009-08-18 Thread Alister Cameron
in i18n:attributes=href path/to/varlogged in/a to post a comment. /div What WILL work, oh gurus?! Cheers, -Alister --- Alister Cameron // Blogologist http://www.alistercameron.com Mob. 04 0404 Fax 03 8610 0050 Click here to find me online: http://clicktoadd.me/alicam

Re: [PHPTAL] Translation and HTML markup

2009-08-18 Thread Alister Cameron
Lesiński kor...@aardvarkmedia.co.uk On 18-08-2009 at 08:25:32 Alister Cameron alister.came...@cameroncreative.com wrote: I have this string as the translation key: You must be a href=path/goes/here title=Log inlogged in/a to post a comment. Two issues with it... 1. I want the href