[pmwiki-users] php q.

2008-02-17 Thread noskule
hi list could someone tell me what I'm doing wrong here $TimeFmt = '%Y-%m-%d %H:%M:%S'; $FmtPV['$timenow'] = time(); $MarkupExpr['timefmt'] = 'ShowTimeFmt($args[0])'; function ShowTimeFmt($unixtime) { 34-$timefmt = strftime(\$GLOBALS['TimeFmt'],$unixtime); return

Re: [pmwiki-users] php q.

2008-02-17 Thread noskule
oky I found the problem .. . noskule schrieb: hi list could someone tell me what I'm doing wrong here $TimeFmt = '%Y-%m-%d %H:%M:%S'; $FmtPV['$timenow'] = time(); $MarkupExpr['timefmt'] = 'ShowTimeFmt($args[0])'; function ShowTimeFmt($unixtime) { 34-$timefmt =

[pmwiki-users] php q

2007-07-16 Thread noskule
hi list I have some trouble to get this php code to runn properly, could please someone giving me a hand? I try to get the basename of a page: SomeGroup.SomeName-Topic-12 - SomeGroup.SomeName GLOBAL $TopicBaseName,$CommentBaseName; $name = PageVar($pagename, '$Name'); $backnametopic =

Re: [pmwiki-users] php q

2007-07-16 Thread Petko Yotov
On Monday 16 July 2007, noskule wrote: SomeGroup.SomeName-Topic-12-Comment-3 - SomeGroup.SomeName-Topic-12 $name = PageVar($pagename, '$Name'); $backnamecomment = explode('-Comment-',$name); $backnamecomment = $backnamecomment[0]; $FmtPV['$CommentBaseName'] = $backnamecomment; this don't

Re: [pmwiki-users] php q

2007-07-16 Thread noskule
Petko Yotov schrieb: On Monday 16 July 2007, noskule wrote: SomeGroup.SomeName-Topic-12-Comment-3 - SomeGroup.SomeName-Topic-12 $name = PageVar($pagename, '$Name'); $backnamecomment = explode('-Comment-',$name); $backnamecomment = $backnamecomment[0]; $FmtPV['$CommentBaseName'] =

Re: [pmwiki-users] php q

2007-07-16 Thread H. Fox
On 7/16/07, noskule [EMAIL PROTECTED] wrote: hi list I have some trouble to get this php code to runn properly, could please someone giving me a hand? I try to get the basename of a page: SomeGroup.SomeName-Topic-12 - SomeGroup.SomeName GLOBAL $TopicBaseName,$CommentBaseName; $name

Re: [pmwiki-users] php q

2007-07-16 Thread noskule
noskule schrieb: I figured out that I have to make a markup expression to do something like that: ({topicbasename {$editgroup}.{$editname}}) I took a look at the markup expression script but couldn't realy understand it. Works this so that I could define a function like topicbasebame and call