[PHPTAL] PHPTAL and Wordpress

2008-03-15 Thread Alister Cameron
e I'm working on to the person who can commit to "secrecy" and to working the problem out with me :) -- Alister Cameron Managing Director Cameron Creative Pty Ltd www.cameroncreative.com Creative, Strategic, Innovative... never boring! _

Re: [PHPTAL] PHPTAL and Wordpress

2008-03-16 Thread Alister Cameron
Levi > > On Sat, Mar 15, 2008 at 11:49 PM, Alister Cameron < > [EMAIL PROTECTED]> wrote: > > > Hi folks, > > This is my first post on this group. > > > > I am integrating PHPTAL and Wordpress 2.5. > > > > I have thus far converted just the in

Re: [PHPTAL] PHPTAL and Wordpress

2008-03-17 Thread Alister Cameron
between revenue generation and Open Source right! Is this not everyone's problem?!?! -A On Mon, Mar 17, 2008 at 9:21 PM, Kornel Lesinski <[EMAIL PROTECTED]> wrote: > On 16 Mar 2008, at 03:49, Alister Cameron wrote: > > > In Wordpress, a theme is installed in the /wp-con

[PHPTAL] Melbourne Australia

2008-03-20 Thread Alister Cameron
Just a question I thought to ask... Is there anyone on this list, who knows PHPTAL really well, who's in Melbourne? I like to work with local people :) Many thanks, -Alister Alister Cameron // Blogologist www.alistercameron.com ___ PHPTAL ma

[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 prope

[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... This is a simple if then else PHP condition, within a TAL attribute. It doesn't work. It takes the "false fork" n

[PHPTAL] Re: PHP logic problem...

2008-12-31 Thread Alister Cameron
Ok. I fixed it, but I'm not sure I understand "scope" here... Can someone explain to me why the define is required?? Could this same outcome have been achieved within the php logic of the tal:attribute ?? Many thanks! -Alister --- Alister R Cameron CEO // Australis Media Pty Ltd http://www.au

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

2009-01-01 Thread Alister Cameron
> ... > } > > Then you would have to refer to that function as vanilla.nesting(). I hope > that answers your question. > > Best regards, > Levi > > And have a happy new years. > > Alister Cameron wrote: > > Ok. I fixed it, but I'm not sure I understand

[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: ${vanilla/nesting} Now, can someone explain to me why the first line outputs the value of vanilla/nesting correctly, but the next line throws a PHPTAL error, saying 'Unable to find path nst in current sc

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 > On Fri, Jan 2, 2009 at 08:47, Alister Came

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

2009-01-02 Thread Alister Cameron
Sorry. Bit silly of me. I discovered after hitting "send" that I had, in fact, missed something and the PHP variables we're not properly set for passing to PHPTAL. False alarm, folks!! Thanks, -Alister 2009/1/2 Alister Cameron > In PHP it's just values in an array (or

[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 obs

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

2009-01-06 Thread Alister Cameron
but I suggest that you avoid global variables - it's easy to shoot yourself > in the foot with them :)When you need them, it might be sign that you're > trying to put too much logic into the template. > > > > -- > regards, Kornel > > > >

Re: [PHPTAL] Best practices for performance?

2009-01-06 Thread Alister Cameron
On Mon, Jan 5, 2009 at 10:18 PM, Kornel Lesiński 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] Please review my work if you're able.

2009-01-06 Thread Alister Cameron
pretty ugly getting to the data I want. That is not really my skill set so I'm looking for help from a PHP guru with deep WordPress experience to work with me on that. Cheers, -Alister --- Alister Cameron // Blogologist http://www.alistercamero

[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 Than

[PHPTAL] Security issues with a CMS

2009-01-08 Thread Alister Cameron
some right and wrong ways to do things here... 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@l

Re: [PHPTAL] Security issues with a CMS

2009-01-10 Thread Alister Cameron
Does this not then mean that the use of "structure" is something to be very very careful with? When I pull stuff in from WordPress I often need to use it because rather than pulling in very "granular" data, I pull in a pre-formatted chunk of HTML code -- perhaps a link (complete A tag, etc)... If

Re: [PHPTAL] Security issues with a CMS

2009-01-12 Thread Alister Cameron
I should add that one of my longer-term plans is to access lower-level functions to get past the need for "structure" in these cases. But this will take a lot more work and time. Yawn :) On Mon, Jan 12, 2009 at 9:02 PM, Kornel Lesiński wrote: > On 11-01-2009 at 00:28:51 Al

Re: [PHPTAL] PHPTAL Filter Library

2009-01-12 Thread Alister Cameron
er_library/ > > 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 &g

Re: [PHPTAL] PHPTAL Tutorials

2009-01-16 Thread Alister Cameron
; > -- > regards > takeshin > > p.s. the magic keywords for Google are: macro site:phptal.motion-twin.com > > ___ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal >

[PHPTAL] Disabling PHP?

2009-03-02 Thread Alister Cameron
iated. 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.m

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

2009-05-13 Thread Alister Cameron
var_dump of the data is here: http://www.alistercameron.com/tal.data.txt As far as I can tell it's fine... there's an array called "entries" and so forth... don't get the issue. Cheers, -Alister --- Alister Cameron // Blogologist http://www.alistercameron.com Mob. 04 04

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

2009-05-14 Thread Alister Cameron
reach ($html_data as $k=>$v) { $phptal->$k = $v; } echo $phptal->execute(); Hence what you see in the var_dump... Does that all help at all? Cheers, -Alister PS... one thought... does that foreach above fail if I nest my arrays deeper than just one level (as I have done)? Should it be rec

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

2009-05-15 Thread Alister Cameron
regards, Kornel > > ___ > PHPTAL mailing list > PHPTAL@lists.motion-twin.com > http://lists.motion-twin.com/mailman/listinfo/phptal > -- Alister Cameron Managing Director Cameron Creative Pty Ltd www.cameroncreative.com Creativ

[PHPTAL] Silly thing... but how do I do it?!

2009-05-15 Thread Alister Cameron
TAL? I can't replace the entire HTML tag coz that will throw a "tag nesting error"... Do you suggest I drop this function entirely and do it another way, attribute by attribute? Or what? Many thanks :) -Alister --- Alister Cameron // Blogologist http://www.alistercameron.com M

[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 l

[PHPTAL] How would you mark this up in TAL?!

2009-08-17 Thread Alister Cameron
string is the translation key.) Thanks for your help! -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 PHPTA

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

2009-08-17 Thread Alister Cameron
in my efforts to keep i18n stuff in the templates: Any thoughts on this? This is where i18n plays a part in setting up variables for a function call! Obviously the %s is retained in the translation key, and I am assume there is a TAL equivalent?! Thoughts welcome :) -Alister --- Alister Ca

Re: [PHPTAL] Re: Minification of HTML XHTML

2009-08-17 Thread Alister Cameron
like that. It's got all the regex 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,

[PHPTAL] Translation and HTML markup

2009-08-18 Thread Alister Cameron
rkup I can even come up with (which I haven't yet tested) is: You must be logged in to post a comment. 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 on

Re: [PHPTAL] Translation and HTML markup

2009-08-18 Thread Alister Cameron
Thanks heaps Kornel. Can I extend this with variable substitution of the href attribute? As: You must be logged in to post a comment. ?? -Alister 2009/8/18 Kornel Lesiński > On 18-08-2009 at 08:25:32 Alister Cameron < > alister.came...@cameroncreative.com> wrote: > > I h