Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread Hans
Friday, October 23, 2009, 11:14:24 PM, Sandy wrote: Thinking further, can this go in skin.php? $color1 = '#00cc00'; That keeps all the skin stuff in the skin, and avoids $HTMLStylesFmt[]. why don't you just set the color attributes in the skin's css file? after all, the purpose of the css

Re: [pmwiki-users] editing pmwiki.org

2009-10-24 Thread Petko Yotov
On Friday 23 October 2009 20:06:29 adam overton wrote: hi pmwiki.org isn't permitting editing right now - it just times out. Thanks, it should work now. A misconfuguration of an antispam filter caused this. Sorry, my fault. Petko ___ pmwiki-users

Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread Hans
Saturday, October 24, 2009, 3:54:43 AM, DaveG wrote: Sandy wrote: I'm not (yet) comfortable with $HTMLStylesFmt[]. It's an array, which can contain arrays :) I thought not. I understand $HTMLStylesFmt to list css attributes, which get injected into styles.../styles tags in the page's HTML

Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread Hans
Friday, October 23, 2009, 11:56:25 PM, DaveG wrote: Parse error: syntax error, unexpected T_STRING in /path/pmwiki.php(762) : eval()'d code on line 1 That's because the PageVar needed to be quoted, as Hans showed. Thus, $FmtPV['$myvar'] = 'PageVar($pagename,\'$:myvar\')' There were in

Re: [pmwiki-users] PHP 5.3 woes.

2009-10-24 Thread rogutes
Vince Admin Account (2009-10-23 16:01): On Oct 19, 2009, at 5:13 PM, rogu...@googlemail.com wrote: The problem with pagelists lies in GlobToPCRE() function in pmwiki.php and is tracked at http://pmwiki.org/wiki/PITS/01149 . It concerns exclusion patterns (name=-Page) only. The

Re: [pmwiki-users] PHP 5.3 woes.

2009-10-24 Thread Vince Administration
On Oct 24, 2009, at 5:34 AM, rogu...@googlemail.com wrote: Vince Admin Account (2009-10-23 16:01): On Oct 19, 2009, at 5:13 PM, rogu...@googlemail.com wrote: The problem with pagelists lies in GlobToPCRE() function in pmwiki.php and is tracked at http://pmwiki.org/wiki/PITS/01149 . It

Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread DaveG
Hans wrote: Friday, October 23, 2009, 11:56:25 PM, DaveG wrote: Parse error: syntax error, unexpected T_STRING in /path/pmwiki.php(762) : eval()'d code on line 1 That's because the PageVar needed to be quoted, as Hans showed. Thus, $FmtPV['$myvar'] = 'PageVar($pagename,\'$:myvar\')'

Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread Sandy
DaveG wrote: Sandy wrote: I'm not (yet) comfortable with $HTMLStylesFmt[]. It's an array, which can contain arrays :) Usually you index the array with the name of the skin, but any name (or even no name) will work fine. The content of the array is output at the point in the .tmpl file

Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread Hans
Saturday, October 24, 2009, 4:04:34 PM, DaveG wrote: 3. use of $pagename: use $pn rather than $pagename as $ pagename may have a different value. Not sure about this. Is $pn globally available? Not sure, but it doesn't look like it. I'd always thought $pagename referred to the current page

Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread Sandy
Hans wrote: Friday, October 23, 2009, 11:14:24 PM, Sandy wrote: Thinking further, can this go in skin.php? $color1 = '#00cc00'; That keeps all the skin stuff in the skin, and avoids $HTMLStylesFmt[]. why don't you just set the color attributes in the skin's css file? after all, the

Re: [pmwiki-users] PHP 5.3 woes.

2009-10-24 Thread rogutes
Vince Administration (2009-10-24 10:42): On Oct 24, 2009, at 5:34 AM, rogu...@googlemail.com wrote: Vince Admin Account (2009-10-23 16:01): On Oct 19, 2009, at 5:13 PM, rogu...@googlemail.com wrote: The problem with pagelists lies in GlobToPCRE() function in pmwiki.php and is

Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread DaveG
Sandy wrote: Well in order to use the variable from within the template you'd need use $FmtPV: $FmtPV['$color1']='#00cc00'; So then you could use it in .tmpl (not in .css files though). Personally I prefer to use $HTMLStylesFmt. What's up with the two quotation marks? I remember

Re: [pmwiki-users] PHP 5.3 woes. Finally fixed

2009-10-24 Thread Vince Administration
On Oct 24, 2009, at 1:04 PM, rogu...@googlemail.com wrote: Vince Administration (2009-10-24 10:42): On Oct 24, 2009, at 5:34 AM, rogu...@googlemail.com wrote: Vince Admin Account (2009-10-23 16:01): On Oct 19, 2009, at 5:13 PM, rogu...@googlemail.com wrote: The problem with pagelists

Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread Sandy
DaveG wrote: Sandy wrote: Well in order to use the variable from within the template you'd need use $FmtPV: $FmtPV['$color1']='#00cc00'; So then you could use it in .tmpl (not in .css files though). Personally I prefer to use $HTMLStylesFmt. What's up with the two quotation marks?

Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread Sandy
Aha! Googling the right terms helps. A way to use php to create a css file. http://www.barelyfitz.com/projects/csscolor/ Probably old news to many, but new and intriguing to me. Just checked the PmWiki docs, and yes I can have more than one php file in the skin folder. Something for me to play

Re: [pmwiki-users] Using variable in skin template

2009-10-24 Thread DaveG
Sandy wrote: Aha! Googling the right terms helps. A way to use php to create a css file. http://www.barelyfitz.com/projects/csscolor/ You could do this, but I can't help thinking you're way over complicating things... ___ pmwiki-users mailing

[pmwiki-users] ANN: New Skin -- Enlighten

2009-10-24 Thread DaveG
This skin provides a 2-column fixed or fluid width interface, a number of color variations, and full support for the BlogIt blogging engine. http://www.pmwiki.org/wiki/Cookbook/Enlighten Hope you like it. ~ ~ Dave ___ pmwiki-users mailing list

[pmwiki-users] RandomQuote Quote File Format

2009-10-24 Thread Ivan Mann
I have done everything for RandomQuote to work except create the quote file. I have tried a couple of different formats and nothing seems to work. The sample code in the php file looks like quotes with xml tags surrounding. The program appears to strip all of the xml tags out and seems to

Re: [pmwiki-users] RandomQuote Quote File Format

2009-10-24 Thread DaveG
Ivan Mann wrote: I have done everything for RandomQuote to work except create the quote file. I have tried a couple of different formats and nothing seems to work. The sample code in the php file looks like quotes with xml tags surrounding. The program appears to strip all of the