Re: [pmwiki-devel] Pages names such as Tūroa

2019-07-28 Thread John Rankin
Troa. Links to categories without long vowels, such as [[!Akaroa]] should continue to work. The {a} {e} {i} {o} {u} markup will only work inside category markup. A more general solution which would work anywhere in the text would need a further markup rule. Hope this helps. JR On 23/07/19 11:33 AM, J

Re: [pmwiki-devel] Pages names such as Tūroa

2019-07-22 Thread John Rankin
A bit more investigation is needed, I think. JR On 21/07/19 10:31 PM, Simon wrote: Thanks, it actually came about because I was trying to use [[!Tūroa]] for which there is no markup [[!Turoa|+]] http://kiwiwiki.nz On Sat, 20 Jul 2019 at 14:55, John Rankin <mailto:john.ran...@affinity.

Re: [pmwiki-devel] Pages names such as Tūroa

2019-07-19 Thread John Rankin
One (least work) option would be to name the page Turoa, and add (:title T#363;roa:) to the page text. You would want to use [[Turoa |+]] when linking to the page. JR On 20/07/19 2:14 PM, Simon wrote: Any suggestions on how I can create page names such as T#363;roa. I have an older wiki -

Re: [pmwiki-devel] e modifier

2014-08-09 Thread John Rankin
] ); seems to work. Just wanting to confirm that is all I have to do? You can omit the PSS call -- callback functions don't escape quote marks, so there are no added \ characters to remove. JR -- John Rankin ___ pmwiki-devel mailing list pmwiki-devel

Re: [pmwiki-devel] markup() callback fn and $pagename

2014-02-24 Thread John Rankin
I have not tested this): Markup('name', 'where', 'pattern', function ($m) use ($pagename) { return ... ; } ); See http://nz1.php.net/manual/en/functions.anonymous.php The advantage of Petko's approach is that it works with any version of php. JR -- John Rankin

Re: [pmwiki-devel] PHP updates, breaking changes, ...

2014-01-08 Thread John Rankin
version of PHP (actual version to be decided). Simon JR -- John Rankin ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: [pmwiki-devel] preg_replace /e depreciated in php 5.5

2013-09-05 Thread John Rankin
and sensible to re-implement the PmWiki design? Alternatively, an answer along the lines of Dumb idea because ... would help. JR -- John Rankin ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: [pmwiki-devel] Anchors

2012-01-06 Thread John Rankin
/TararuaFootprints/MangatainokaValley [[#Mangatainoka–Herepai–Ruapae]] to work, (seems reasonable to me). -- John Rankin ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: [pmwiki-devel] How to allow a choice of edit forms

2011-05-08 Thread John Rankin
in the processing sequence. JR -- John Rankin Affinity Limited T 64 4 495 3737 F 64 4 473 7991 M 021 RANKIN john.ran...@affinity.co.nz www.affinity.co.nz ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: [pmwiki-devel] Wiki links with title/alt text attribute

2011-05-04 Thread John Rankin
the markup is suitable. [[page namealt text | link text]] and [[link text - page namealt text]] look and feel acceptable to me. JR -- John Rankin Affinity Limited T 64 4 495 3737 F 64 4 473 7991 M 021 RANKIN john.ran...@affinity.co.nz www.affinity.co.nz

Re: [pmwiki-devel] Wiki links with title/alt text attribute

2011-05-03 Thread John Rankin
/HomePage Might that change be included in the core? JR -- John Rankin ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: [pmwiki-devel] Wiki links with title/alt text attribute

2011-05-02 Thread John Rankin
; Mr.nbsp;Hobbs' Mission para; The Timber Industry|+]] Redefining the MakePageNameFunction gets around this. At the moment, if I could find a way around the (King George) problem, I think I would have a working solution that requires no change to the core. JR -- John Rankin

Re: [pmwiki-devel] Wiki links with title/alt text attribute

2011-05-02 Thread John Rankin
('/[#?].*$/', '', $str); so I think the line in trails.php that does preg_replace('/[#?].+/', '', $match[3]) is redundant and can be removed. Then the redefinition of $MakePageNameFunction would just work without a local modification to trails.php. JR -- John Rankin

Re: [pmwiki-devel] How to deal with I forgot my password

2011-03-22 Thread John Rankin
On 21/03/11 1:12 PM, John Rankin wrote: We are using a modified version of Cookbook.NewGroupBox [1] to let users create a NewGroup.HomePage and set a group password for edit/upload in NewGroup.GroupAttributes. The user only needs read access to the Start a New Group page, but gets re-prompted

[pmwiki-devel] How to deal with I forgot my password

2011-03-20 Thread John Rankin
that does not open NewGroup.GroupAttributes to editing by all and sundry d. deal with the case where a user with an edit password has accessed NewGroup.GroupAttributes?action=attr Comments? have others solved a similar problem? [1] http://www.pmwiki.org/wiki/Cookbook/NewGroupBox -- John

Re: [pmwiki-devel] run-once-at-end rule

2011-03-02 Thread John Rankin
: It will be setting a value for $HTMLFooterFmt, I'm guessing you can have the onetimerule function simply return $out, while it changes the value of the global $HTMLFooterFmt. JR -- John Rankin Affinity Limited T 64 4 495 3737 F 64 4 473 7991 M 021 RANKIN john.ran...@affinity.co.nz www.affinity.co.nz

[pmwiki-devel] Can the cookbook upload limit be increased slightly?

2011-02-23 Thread John Rankin
their rights. This says should rather than must, so I think it would be OK to remove the GPL file, but I'd like another opinion. TIA -- John Rankin Affinity Limited T 64 4 495 3737 F 64 4 473 7991 M 021 RANKIN john.ran...@affinity.co.nz www.affinity.co.nz

[pmwiki-devel] NewGroupBox recipe and GroupAttributes

2011-02-08 Thread John Rankin
security in this way and am wondering if anyone can advise on the right way to do this. TIA JR -- John Rankin ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: [pmwiki-devel] page text variables across groups with Attach:

2010-12-16 Thread John Rankin
On 16/12/10 11:12 PM, Peter Bowers wrote: On Wed, Dec 15, 2010 at 11:45 PM, John Rankin john.ran...@affinity.co.nz wrote: I don't see an easy way to tell pmwiki to retrieve the graphic PTV as Attach:GroupA/an-image.png instead of just Attach:an-image.png, if that's what the author entered -- I

Re: [pmwiki-devel] page text variables across groups with Attach:

2010-12-15 Thread John Rankin
On 16/12/10 10:34 AM, Peter Bowers wrote: On Wed, Dec 15, 2010 at 10:11 PM, John Rankin john.ran...@affinity.co.nz wrote: The following page text variable is on GroupA.Page1: (:graphic: Attach:an-image.png :) On GroupB.Page2, we have a custom directive (:bookmetadata GroupA.Page1

Re: [pmwiki-devel] custom markup question...

2010-12-12 Thread John Rankin
*:\\)(.*)\\(:createColumnsend:\\)/ie', 'CreateColumns_func($1,$2)' ); any idea how i can get my markup to span the entire distance? Try /ies in the match pattern -- the 's' should make the regular expression keep going past line endings. JR -- John Rankin Affinity Limited T 64 4 495 3737 F 64 4 473 7991 M 021

[pmwiki-devel] Question about the IncludeXML recipe

2010-11-30 Thread John Rankin
and contents of the book. Thanks -- John Rankin Affinity Limited T 64 4 495 3737 F 64 4 473 7991 M 021 RANKIN john.ran...@affinity.co.nz www.affinity.co.nz ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo

Re: [pmwiki-devel] markup rule execution order

2010-11-30 Thread John Rankin
'); Markup('bibliocite', 'inline', ...); } Don't know why the disable is needed. -- John Rankin ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: [pmwiki-devel] regex in markup question

2010-05-23 Thread John Rankin
Saturday, May 22, 2010, 7:28:20 PM, DaveG wrote: Markup('X:abc', '[=','/\n(X:\\s*\\d+\\s*\n.*?)\n:vspace/se', PreserveAbcText(PSS('$1'))); Just a note here, that tunes on the very first list might not get captured by this regex, as there would not be a preceding newline. You are

Re: [pmwiki-devel] regex in markup question

2010-05-22 Thread John Rankin
', PreserveAbc(PSS('$1'))); The rule can be earlier if needed, say in directives. I have also run into this problem from time to time and never found a satisfactory solution. JR -- John Rankin I tried with this Markup('X:', 'split', '/\n(X:.*?)\n\n/se', PreserveAbc(PSS('$1'))); but keep failing

Re: [pmwiki-devel] MarkupToHTML help

2010-03-23 Thread John Rankin
($pagename, 'some text and markup to be evaluated'); For an example of this usage, see scripts/pagelist.php and the FPLTemplate function. This enables co-existence with any third party recipes which modify the MarkupToHTML function. JR -- John Rankin Affinity Limited T 64 4 495 3737 F 64 4

Re: [pmwiki-devel] WikiCalendar month names do not display

2009-09-09 Thread john . rankin
That's very strange; it had the wrong english internationalisation script. I have uploaded the i18n-en file again. Give it another try. (This recipe had been corrupted at one point.) JR I just installed the WikiCalendarhttp://www.pmwiki.org/wiki/Cookbook/WikiCalendarrecipe. It works fine,

Re: [pmwiki-devel] Help with understanding an authentication problem

2009-05-27 Thread john . rankin
John Rankin wrote: [...] It seems to me that we ought to be able to define a custom $AuthFunction that checks the IP address of the requestor, consider also requests from dynamic IP addresses. People might have changing addresses. With my current problem, it is a server doing

Re: [pmwiki-devel] Help with understanding an authentication problem

2009-05-25 Thread John Rankin
On Sunday, 24 May 2009 7:40 PM, Peter Bowers pbow...@pobox.com wrote: On Sun, May 24, 2009 at 1:53 AM, John Rankin john.ran...@affinity.co.nz wrote: It seems to me that we ought to be able to define a custom $AuthFunction that checks the IP address of the requestor, rather than asking

Re: [pmwiki-devel] Help with understanding an authentication problem

2009-05-23 Thread John Rankin
like a new session. Does this sound feasible? -- John Rankin Affinity Limited T 64 4 495 3737 F 64 4 473 7991 021 RANKIN john.ran...@affinity.co.nz www.affinity.co.nz ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com

Re: [pmwiki-devel] Help with understanding an authentication problem

2009-05-20 Thread john . rankin
Hi, On Wed, May 20, 2009 at 06:03, John Rankin john.ran...@affinity.co.nz wrote: (a) explain what might be going on to cause the problem Looking at http://www.parakoos.com/info.php;, the php installation seems to be using suhosin, which provides some kind of session protection, ie. you

[pmwiki-devel] Help with understanding an authentication problem

2009-05-19 Thread John Rankin
at a loss. TIA -- JR -- John Rankin ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: [pmwiki-devel] Markup rule evaluation sequence

2008-05-26 Thread John Rankin
than building with the base foundations. Hope this helps! Yes it does -- I think I need to go back and review my markup rule tactics to use the foundations more systematically. Pm -- John Rankin Affinity Limited T 64 4 495 3737 F 64 4 473 7991 021 RANKIN [EMAIL PROTECTED] www.affinity.co.nz

Re: [pmwiki-devel] Markup rule evaluation sequence

2008-05-22 Thread john . rankin
In the latest case, I had rule1 set to evaluate 'links' and rule2 set to evaluate 'block'. PmWiki evaluates 'block' 'links'. In my case, I needed rule2 to evaluate after rule1, but it didn't and it took me several tries to get the behaviour I wanted, as it involved a chain of related rules.

[pmwiki-devel] Markup rule evaluation sequence

2008-05-21 Thread John Rankin
if there is a general solution or something obvious I'm missing. Have others run into this kind of problem? -- JR -- John Rankin ___ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: [pmwiki-devel] email verification regex question

2007-10-16 Thread John Rankin
straight addresses without spaces. The following links may help: http://www.regular-expressions.info/email.html http://regexlib.com/REDetails.aspx?regexp_id=711 Hans -- JR -- John Rankin    \_      \)         \,\__/7      /  / ( c