Thanks Hans
For the FoxCommentbox, this did the job ...
Greetings (after a busy Sunday)
Peter
-Oorspronkelijk bericht-
Van: Hans [mailto:[EMAIL PROTECTED]
Verzonden: zondag 20 januari 2008 15:31
Aan: Peter K.H. Gragert
CC: pmwiki-users@pmichaud.com
Onderwerp: Re: [pmwiki-users] FW:
On Sun, Jan 20, 2008 at 04:48:21PM -0500, Stirling Westrup wrote:
> Anke Wehner wrote:
> > This works on links inside the wiki - [[Group/]] links to Group.Main
> > and all - but one problem I noticed that when I change the url per
> > hand, say, removing the page name, so I have ...wiki.php/Group ,
On Sun, Jan 20, 2008 at 07:21:43PM +, Hans wrote:
> But seeing this I think a lines=n option is more friendly and useful:
> lines=5 would display the first 5 lines from every page, and
> lines=-5 would display the last 5 lines from every page matching.
> This would be similar to the (:include
> I've tested it on files containing more and less lines than are in the n=x
> option. I've tested it to a single level of nesting. As mentioned, I
> have not tested it on text containing parentheses which might confuse the
> markupexpr.php parsing engine...
My apologies to Mr. Markupexpr.php --
(this was originally sent off-list, but it's getting confusing having part
of the conversation on-list and part off-list)
> Peter, I think nesting does not work well when processing multiple
> pages. That was the reason I included into the grep.php script an
> option of cut= and hide=, rather than
Anke Wehner wrote:
> Hello.
>
> I have the following in my config.php tp change the default name:
> $DefaultName = 'Main';
> $PagePathFmt = array('$Group.$1', '$1.$DefaultName');
>
> This works on links inside the wiki - [[Group/]] links to Group.Main
> and all - but one problem I noticed that wh
Sunday, January 20, 2008, 7:21:43 PM, Hans wrote:
> But seeing this I think a lines=n option is more friendly and useful:
> lines=5 would display the first 5 lines from every page, and
> lines=-5 would display the last 5 lines from every page matching.
> This would be similar to the (:include Pag
Hans,
This is great stuff you're doing.
One suggestion:
"Hide" implies that the text is still present. I would rename what you
are calling "Hide" to "Cut" and rename your old "Cut" to "CutLine".
For what it's worth,
Randy
On Jan 20, 2008, at 8:46 AM, Hans wrote:
> Sunday, January 20, 2008
Sunday, January 20, 2008, 6:23:57 PM, Peter & Melodye Bowers wrote:
> (When I put n=5 as the argument it somehow doesn't even appear in $args[0]
> -- how is that possible?)
For markup expression definitions follow this convention:
MarkupExpression['expr'] = 'CustomExprFunction(@$arg[0],@$arg[1],
On Sunday 20 January 2008 05:07:14 imoc wrote:
> I'm wondering if it is possible to limit the authors' edit right
> that they can only edit the pages created by themselves?
(Hello!)
See this message and thread in the mailing list archive:
http://www.pmichaud.com/pipermail/pmwiki-devel/2007-Januar
Sunday, January 20, 2008, 6:23:57 PM, Peter & Melodye Bowers wrote:
> One final question regarding the use of these MarkupExpressions: How does
> the nesting work? Let's say I want to "tail" the result of a "grep" -- how
> does that happen? (I would play with it, but I'm having too much trouble
--- Peter & Melodye Bowers <[EMAIL PROTECTED]> wrote:
...
> But allowing regex instead of just a simple
> textual match and allowing
> n files (with patterns) are both nice additions.
...Lots of intersting ideas.
Since wiki pages tend to be slightly more structured
than regular text files, alm
Based entirely on Hans' work on grep, I've put together a kludge of what
tail would look like (see at the bottom of this post). This will
theoretically solve bialy663's earlier question although the n=10 argument
problem needs to be solved.
I much prefer swapping the option/filepattern order as o
Sandy wrote:
> Patrick R. Michaud wrote:
>> On Sun, Jan 20, 2008 at 11:53:50AM -0500, Sandy wrote:
>
>>> Is there a way I can give the anchors a class and hide them? Or do I
>>> have to set the CSS for each of A.urllink, A.wikilink and A.selflink?
>> Yes, you can give anchors a class... try:
>>
>
Patrick R. Michaud wrote:
> On Sun, Jan 20, 2008 at 11:53:50AM -0500, Sandy wrote:
>> Is there a way I can give the anchors a class and hide them? Or do I
>> have to set the CSS for each of A.urllink, A.wikilink and A.selflink?
>
> Yes, you can give anchors a class... try:
>
> Markup('[[#','<
>From: bialy663 <[EMAIL PROTECTED]>
>
>Hi,
>
>How do I include last 5 lines of specified page? I've modified
$RecentChangesFmt to show updates in table '|| $CurrentTime
>||[=$ChangeSummary=] || [[{$Group}.{$Name}|{$Namespaced}]]||
>$AuthorLink||' and it's annoying that the newer changes ar
On Sun, Jan 20, 2008 at 11:53:50AM -0500, Sandy wrote:
> I had the brilliant idea of setting
>
> A:hover
> {
> border:1px solid blue;
> padding: 0px 2px 0px 2px;
> }
>
> Now when I move the mouse around, an empty box appears around [[#name]].
>
> Is there a way I can give the anchors a class and
I had the brilliant idea of setting
A:hover
{
border:1px solid blue;
padding: 0px 2px 0px 2px;
}
Now when I move the mouse around, an empty box appears around [[#name]].
Is there a way I can give the anchors a class and hide them? Or do I
have to set the CSS for each of A.urllink, A.wikilink an
[EMAIL PROTECTED] wrote:
> I wonder why margin-top and margin-bottom css-properties don't work for
> the print page. Margin-left and margin-right do work for the paragraph in
> print.css but not margin-top and margin-bottom.
>
> Taavi
Are the margins combining? Vertical margins don't add, they ov
On Jan 20, 2008 5:07 AM, Eemeli Aro <[EMAIL PROTECTED]> wrote:
> On Jan 19, 2008 5:03 AM, Tegan Dowling <[EMAIL PROTECTED]> wrote:
> > Hi, all: What's the process for adding the ".pub" file format and
> > extension to the list of recognized and permitted file formats?
>
> 1. What you need to find
Saturday, January 19, 2008, 7:54:03 PM, Hans wrote:
> The preg_match pattern in
> if (preg_match("/$expr/", $row)) {
> $newrows[] = $row;
> }
> is still not working quite well.
> any suggestions for improvement will be
here is another working example of fox replace code:
This fox form uses the markup expression {(grep ...)}
see http://www.pmwiki.org/wiki/Cookbook/TextExtract for download and
installation.
The form offers to be a general text extraction tool. Here it is:
>>frame width=25em<<
(:fox form foxacti
Sunday, January 20, 2008, 12:31:19 PM, Hans wrote:
> I did some more work, and here is some code for a working grep markup
> expression. Please try it. I will put it into a cookbook recipe, once
> I know the markup syntax etc is okay.
I uploaded it now as a cookbook recipe script grep.php, new co
Sunday, January 20, 2008, 2:09:31 PM, Peter K.H. Gragert wrote:
> Result changes now to
> ERROR: Found no form to add above
Is Fox.CommentBox included in another page and you are trying from
there, or do you try to post on Fox.CommentBox?
If the first is the case it won't work because #above mean
Result changes now to
ERROR: Found no form to add above
-Oorspronkelijk bericht-
Van: Hans [mailto:[EMAIL PROTECTED]
Verzonden: zondag 20 januari 2008 14:57
Aan: Peter K.H. Gragert
CC: pmwiki-users@pmichaud.com
Onderwerp: Re: [pmwiki-users] FW: Difficulties to get 'fox' working
Sunday,
Sunday, January 20, 2008, 1:47:14 PM, Peter K.H. Gragert wrote:
> ERROR: Missing or wrong Access Code!
PS: Fox has $EnableAccessCode = false as a default.
It seems somewhere this is enabled for you?
~Hans
___
pmwiki-users mailing list
pmwiki-users
Sunday, January 20, 2008, 1:47:14 PM, Peter K.H. Gragert wrote:
> Maybe it is a "Vista"=problem? (I gave all * complete acces ??)
> Trying a comment again (with (:mssages:))
> Result:
> ERROR: Missing or wrong Access Code!
try setting in config.php;
$EnableAccessCode = false;
~Hans
__
Maybe it is a "Vista"=problem? (I gave all * complete acces ??)
Trying a comment again (with (:mssages:))
Result:
ERROR: Missing or wrong Access Code!
-Oorspronkelijk bericht-
Van: Hans [mailto:[EMAIL PROTECTED]
Verzonden: zondag 20 januari 2008 13:36
Aan: Peter K.H. Gragert
CC: pmwiki-
Hi,
I'm trying to do the following:
(:input form '' post :)
(:input hidden action BlahAction:)
||width=100%
||Member: ||{$AuthId} ||
||Name:||(:Name:)||
||Address: ||(:Address:) ||(:input submit value='Change address':) ||
||Email: ||(:Email:) ||(:input submit value='Change email':
Saturday, January 19, 2008, 11:23:25 PM, Patrick R. Michaud wrote:
>> (1) add another field to the edit form with a default value
>> (2) Hide the field using css
>>
>> If the "hidden field" gets modified, it's most likely a bot, so reject
>> the submission.
> I implemented this approach on pmwik
Sunday, January 20, 2008, 12:33:09 PM, Hans wrote:
> add (:messages:) markup to the page, it may give you some error
> message to help!
PS:
(:messages:)
needs to be at the start of a line!
~Hans
___
pmwiki-users mailing list
pmwiki-users@pmichau
Sunday, January 20, 2008, 12:03:46 PM, Peter K.H. Gragert wrote:
> Looks promising, ok. But activation nothing happens ???
add (:messages:) markup to the page, it may give you some error
message to help!
~Hans
___
pmwiki-users mailing list
pmwiki
Sunday, January 20, 2008, 11:58:03 AM, Peter & Melodye Bowers wrote:
> The initial suggestion is this:
> (:grep "regex" filename/pattern ...")
I did some more work, and here is some code for a working grep markup
expression. Please try it. I will put it into a cookbook recipe, once
I know the ma
Yes
Site.FoxConfig looks like
Fox.*: add,delete
At the beginning of the page first line .
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Sunday, January 20, 2008, 11:41:21 AM, Randy wrote:
> Am I close? Can you show me a complete working sample of code to do
> the above task (a picture is worth a thousand words...)?
sorry I have not uploaded working examples to my site.
Here is a simple replace text form, in which you need to ent
Do you have config.php or FoxConfig set up to allow Fox to do work on
the page? It needs your permission. That lets you specify which pages
can be changed how. Until you do that, nothing will get changed.
Randy
On Jan 20, 2008, at 6:03 AM, Peter K.H. Gragert wrote:
Hallo (and especially H
Hallo (and especially Hans)
I run beta 65
And in the cookbook
cookbook/fox/
-rw-rw-rw- 1 Peter0 48961 Jan 09 13:56 fox.php
-rw-rw-rw- 1 Peter03691 Jan 17 16:46 foxdelete.php
-rw-rw-rw- 1 Peter03636 Jan 09 14:05 foxedit.php
-rw-rw-rw-
(NOTE: This was originally sent directly to Hans directly and he reminded me
to continue the discussion on the list. I've edited slightly here to keep
up with later related posts...)
Sorry, I got a little carried away...
Basically grep stands for "general regular expression processor" and it is
On Jan 20, 2008, at 4:10 AM, Hans wrote:
>
> please read http://www.pmwiki.org/wiki/Cookbook/Fox#parameters
> and let me know what you don't understand.
I've read that section numerous times. I find the whole page very
confusing. Here's a couple of examples:
1) Normally I would expect document
On Jan 19, 2008 5:03 AM, Tegan Dowling <[EMAIL PROTECTED]> wrote:
> Hi, all: What's the process for adding the ".pub" file format and
> extension to the list of recognized and permitted file formats?
1. What you need to find is the correct MIME type for the file, so
Google for it (mime type pub).
Saturday, January 19, 2008, 6:04:24 PM, imoc wrote:
> 3) Use Fox to open those pages in a way that every PTV got it's own
>editform and the text in a textarea;
> 4) I can edit each PTV also the text separately;
> 5) Saving/updating the changes to the target page.
Install fox.php and foxedit.
Sunday, January 20, 2008, 8:01:02 AM, Randy wrote:
> I have a challenge that seems ripe for Fox's powerful new string
> replacement feature. Unfortunately, I haven't been able to figure out
> the syntax for that feature and I can't find any code examples.
please read http://www.pmwiki.org/wiki/
Hello.
I have the following in my config.php tp change the default name:
$DefaultName = 'Main';
$PagePathFmt = array('$Group.$1', '$1.$DefaultName');
This works on links inside the wiki - [[Group/]] links to Group.Main
and all - but one problem I noticed that when I change the url per
hand, say,
I have a challenge that seems ripe for Fox's powerful new string
replacement feature. Unfortunately, I haven't been able to figure out
the syntax for that feature and I can't find any code examples.
I want to put a form on a page that allows people to check one or more
groups and one or more
44 matches
Mail list logo