Re: [pmwiki-devel] Very obscure skin, jumpbox, search problem

2007-01-17 Thread Patrick R. Michaud
On Wed, Jan 17, 2007 at 07:34:50PM -, marc wrote: I have a site that uses multiple skins. On some pages there is a dropdown that uses jumpbox to navigate elsewhere. Now, say we are on a page with such a dropdown and we use it go to the home page. The URL when you get to the HP will

Re: [pmwiki-devel] markup order for group headers

2007-01-29 Thread Patrick R. Michaud
On Mon, Jan 29, 2007 at 06:43:29PM -, marc wrote: Patrick R. Michaud said... If you're talking about the GroupHeader pages, then no, they're run at the same time as page's markup. In fact, GroupHeader effectively works by adding the equivalent of (:include GroupHeader:)(:nl

Re: [pmwiki-devel] Calling a non existent function from a skin tempate

2007-01-29 Thread Patrick R. Michaud
On Fri, Jan 26, 2007 at 07:09:37AM +0100, Dfaure wrote: Hi, If I put a line like: !--function:MyFunction ...-- into a skin template, without having the function effectively defined, I get the function call itself output as a string during the page rendering, stripped of the html

Re: [pmwiki-devel] Minor conflict between (:linebreaks:) and white-space=pre

2007-02-04 Thread Patrick R. Michaud
On Sat, Feb 03, 2007 at 01:11:57PM +0100, [EMAIL PROTECTED] wrote: If you use both (:linebreaks:) and white-space=pre, you get double line breaks. Is this really what should happen? See here for a test case: http://pmwiki.org/wiki/Test/LinebreaksAndWhitespacePre Short answer: Yes,

Re: [pmwiki-devel] ZAP - the directive (:messages:)

2007-02-04 Thread Patrick R. Michaud
On Sat, Feb 03, 2007 at 03:56:37PM +0100, [EMAIL PROTECTED] wrote: On Sat, 3 Feb 2007, Patrick R. Michaud wrote: (:messages:) is a PmWiki built-in directive (i.e., it's in the core). It displays the contents of the $MessagesFmt array -- e.g., in the EditForm. Great! I suspect I can

Re: [pmwiki-devel] Testing empty string (was:php logic question)

2007-03-14 Thread Patrick R. Michaud
On Wed, Mar 14, 2007 at 10:00:29AM +0100, [EMAIL PROTECTED] wrote: On Wed, 14 Mar 2007, Jiri Hlad?vka / OBUTEX wrote: I tested an [e]mpty string in PmWiki and found that (:if :) and (:if ! :) are both TRUE (:if equal ! true:) and (:if equal ! false:) are both FALSE see

Re: [pmwiki-devel] Testing empty string (was:php logic question)

2007-03-14 Thread Patrick R. Michaud
On Wed, Mar 14, 2007 at 02:20:06PM +0100, [EMAIL PROTECTED] wrote: What if each error/warning was appended to some variable, e.g. $PmWikiErrors and $PmWikiWarnings, which you could then optionally show at the end of the page if you so desire. Somehow I think it's much better to have

Re: [pmwiki-devel] help with preg_replace()

2007-03-15 Thread Patrick R. Michaud
On Thu, Mar 15, 2007 at 11:39:35AM -0500, Ben Stallings wrote: Regular expressions make my eyes cross. Can someone help me with this puzzle? I want to take a string and replace all occurrences of [var] (i.e. any single word enclosed in single brackets) with DQquote($_REQUEST['var'])

Re: [pmwiki-devel] Problem with Hg...

2007-03-17 Thread Patrick R. Michaud
On Sat, Mar 17, 2007 at 10:54:53PM -0400, The Editor wrote: I seem to be having a problem with Hg, and I'm not sure how to debug it. Basically when the recipe is enabled and I click a link to a page that does not exist, I get a 404 error. When I disable the recipe, it shows up as expected

Re: [pmwiki-devel] Double click for admins only...

2007-03-20 Thread Patrick R. Michaud
On Tue, Mar 20, 2007 at 10:23:03AM +0100, [EMAIL PROTECTED] wrote: On Tue, 20 Mar 2007, Hans wrote: Tuesday, March 20, 2007, 8:56:39 AM, The wrote: However I wanted to put this in my skin.php file so it would be available as a part of the skin, across my various fields. While it works in

Re: [pmwiki-devel] Opening/Saving plain-text files with PmWiki

2007-03-20 Thread Patrick R. Michaud
On Mon, Mar 19, 2007 at 05:03:57PM +0300, Yury I. Kocharyan wrote: Has PmWiki any opportunity to open and save plain-text files without special pmwiki formatting (version, diff, etc)? If not - what is the simpliest way to realize it? PmWiki doesn't do this by default, but it could be done

Re: [pmwiki-devel] Illegal offset error and zap...

2007-03-30 Thread Patrick R. Michaud
On Fri, Mar 30, 2007 at 09:04:09AM -0400, The Editor wrote: I've had a zap user report this error message, but I can't replicate it or identify any possible cause... I've searched the php docs and nothing remotely connected to what ZAP is doing. Illegal offset type in

Re: [pmwiki-devel] Strange keywords and description behavior...

2007-04-05 Thread Patrick R. Michaud
On Thu, Apr 05, 2007 at 10:22:21AM -0400, The Editor wrote: - The quotes are missing around text in $newpage[text] Why would I want quotes here? http://www.php.net/manual/en/language.types.array.php#language.types.array.foo-bar But none of these would seem to explain the results

Re: [pmwiki-devel] breakpage markup

2007-04-12 Thread Patrick R. Michaud
On Thu, Apr 12, 2007 at 03:02:57PM +0100, Hans wrote: Thursday, April 12, 2007, 2:25:57 PM, Patrick wrote: Your pattern probably needs to be /^#foxbegin/me Without a /m flag, the ^ means beginning of string, not beginning of line. The beginning of line is not important. I tried

Re: [pmwiki-devel] strange strpos problem...

2007-04-24 Thread Patrick R. Michaud
On Tue, Apr 24, 2007 at 01:24:27PM -0400, The Editor wrote: I've been struggling with some complicated variable functions and have my head wrapped around a strange problem... Given this function: function ZAPMfunc($params) { if (strpos($params, ) !== false) { return yes;

Re: [pmwiki-devel] strange strpos problem...

2007-04-24 Thread Patrick R. Michaud
On Tue, Apr 24, 2007 at 01:50:02PM -0400, The Editor wrote: Very strange... Here is the line that calls it in another subroutine elsewhere if (function_exists($func)) $value= $func($params); If I do function ZAPMfunc($params) { return gettype($params); I get string Please

Re: [pmwiki-devel] FmtPV[] defined in markup function?

2007-04-26 Thread Patrick R. Michaud
On Thu, Apr 26, 2007 at 07:15:04PM +0100, Hans wrote: How do I, or can I, define a PageVariable from within a function called by a markup directive, and use the page variable on the same page as the directive? In fact I like to define a whole series of PVs. The function will call PageTextVar

Re: [pmwiki-devel] FmtPV[] defined in markup function?

2007-04-26 Thread Patrick R. Michaud
On Thu, Apr 26, 2007 at 07:42:04PM +0100, Hans wrote: Thursday, April 26, 2007, 7:25:42 PM, Patrick wrote: I think I need a much more concrete example. trying to condense the problem: {$TestPV} is failed to be set. Test is just to illustrate. It will be a number calculated inside the

Re: [pmwiki-devel] Quick preg_replace question...

2007-04-27 Thread Patrick R. Michaud
On Fri, Apr 27, 2007 at 12:55:04PM +0100, Hans wrote: Friday, April 27, 2007, 11:47:02 AM, The wrote: Anyway I have it working beautifully, but need to know how to catch 0, 1, or 2 spaces in a pattern? I tried... '/\\n([ ]{0-2})\[([trc]{1})(.*?)\]/e' The normal syntax for specifying 0

Re: [pmwiki-devel] Quick preg_replace question...

2007-04-27 Thread Patrick R. Michaud
On Fri, Apr 27, 2007 at 01:11:04PM +0100, Hans wrote: Friday, April 27, 2007, 11:47:02 AM, The wrote: I've just been developing an advanced tables markup system similar to the one developed by JB, only with a syntax that makes a bit more sense to me. '/\\n([

Re: [pmwiki-devel] Quick preg_replace question...

2007-04-27 Thread Patrick R. Michaud
On Fri, Apr 27, 2007 at 11:56:12AM -0400, The Editor wrote: I'm out of time to test this now but will look into it... Maybe: '/([\n]{0,1})\[([trc]{1})(.*?)\]/e' Just a note that [\n]{0,1} is written shorter (and faster) as \n? . '/(\n?)\[([trc])(.*?)\]/e' It's probably also a good idea

Re: [pmwiki-devel] Quick preg_replace question...

2007-04-27 Thread Patrick R. Michaud
On Fri, Apr 27, 2007 at 12:11:56PM -0400, The Editor wrote: It's probably also a good idea to put a \b after [trc], so that the markup engine won't inadvertently think that [citation] is to be treated the same as [c]. '/(\n?)\[([trc]\\b)(.*?)\]/e' \b will work whether the next character

Re: [pmwiki-devel] Quick preg_replace question...

2007-04-27 Thread Patrick R. Michaud
On Fri, Apr 27, 2007 at 05:52:43PM -0400, The Editor wrote: I opted to try and develop my own version of the PQA function, but have had a bit of trouble getting with this line hanging up the system: $args = ParseArgs($attr); Any ideas what kinds of values might be causing this to hang

Re: [pmwiki-devel] Question about nested expressions...

2007-04-29 Thread Patrick R. Michaud
On Sun, Apr 29, 2007 at 12:45:41PM -0400, The Editor wrote: Thanks so much. It's coming into focus now. I take it these lines actually evaluate the nested functions somehow, is that correct? $code = @$MarkupExpr[$func]; ... $out = eval(return ({$code});); if ($expr == $repl) {

Re: [pmwiki-devel] The (In)Security of IncludeUpload

2007-05-02 Thread Patrick R. Michaud
On Wed, May 02, 2007 at 12:33:02PM +1000, Kathryn Andersen wrote: Having just mentioned the insecurity of my IncludeUpload recipe, I'd appreciate some help in actually making it secure. It's secure enough if one can trust the people who have edit permission, but if it's an open wiki, it is

Re: [pmwiki-devel] page content shows on wrong page

2007-05-02 Thread Patrick R. Michaud
On Wed, May 02, 2007 at 01:04:33PM +0100, Hans wrote: I would like some help to sort out the display of messages. When the FoxAbort function is called, I get this strange result: The wiki HomePage is displayed, with url and title, but the page text is the content of $pagename (the form page,

Re: [pmwiki-devel] Puts pmwiki in a loop

2007-05-02 Thread Patrick R. Michaud
On Tue, May 01, 2007 at 11:18:40AM -0400, The Editor wrote: For what it's worth, I've done this several times myself costing my several hours debugging, thinking it was something in my code, when it was a PTV problem. It seems it also does this with something like test: {$:test} I'm not

Re: [pmwiki-devel] page content shows on wrong page

2007-05-02 Thread Patrick R. Michaud
On Wed, May 02, 2007 at 07:57:05PM +0100, Hans wrote: Can you tell why the following is also working: form action='{\$PageUrl}' method='post' . It displays the right page url. But in the HTML it reads form action='{$PageUrl}' method='post' which looks a bit dodgy. It is

Re: [pmwiki-devel] windows web server...

2007-05-02 Thread Patrick R. Michaud
On Wed, May 02, 2007 at 04:20:48PM -0400, Neil Herber (nospam) wrote: On 2007-05-02 Patrick R. Michaud is rumoured to have said: At the risk of being flippant -- this looks an awful lot like a recipe to me. :-) :-) Well ... yes. It didn't seem like one when I started the mail

Re: [pmwiki-devel] XL for messages

2007-05-04 Thread Patrick R. Michaud
On Fri, May 04, 2007 at 07:21:04PM +0100, Hans wrote: Friday, May 4, 2007, 6:47:18 PM, Hans wrote: What is the most efficient way to provide language translation of message strings within functions? Actually I think I got already what it needs: $MessagesFmt[] = h5

Re: [pmwiki-devel] Group management system...

2007-05-09 Thread Patrick R. Michaud
On Wed, May 09, 2007 at 09:11:44AM -0400, The Editor wrote: Below are the answers I found. I hope Pm or someone can verify... On 5/4/07, The Editor [EMAIL PROTECTED] wrote: 1) When a person logs in, are all group memberships ascertained at that point and stored as a session variable for

Re: [pmwiki-devel] Sessions questions...

2007-05-11 Thread Patrick R. Michaud
On Fri, May 11, 2007 at 11:33:31AM -0400, The Editor wrote: I'm doing some interesting work with sessions but have a couple general questions. To set a session unique to each field, you would use session_id($id); then you would call session_start() then you would read or write

Re: [pmwiki-devel] Parse Args and hyphens...

2007-05-17 Thread Patrick R. Michaud
On Thu, May 17, 2007 at 06:40:34PM +0200, [EMAIL PROTECTED] wrote: On Thu, 17 May 2007, The Editor wrote: I've noticed if I try and use parseargs on something like test='blue' test-one='green' test_two='red' The first and third will work, but the second fails. The hyphen in the

Re: [pmwiki-devel] MatchPageNames

2007-05-22 Thread Patrick R. Michaud
On Tue, May 22, 2007 at 09:13:22PM +0100, Hans wrote: It seems (boolean)MatchPageNames returns 1 if no match to pattern is found. Is this supposed to be like this, or a bug? I would have expected it to return 0 or nothing if no match is found. I need a return of 1 only of a match is found.

Re: [pmwiki-devel] MatchPageNames

2007-05-22 Thread Patrick R. Michaud
On Tue, May 22, 2007 at 10:04:08PM +0100, Hans wrote: Tuesday, May 22, 2007, 9:47:03 PM, Patrick wrote: Any chance you could give an example of code that is showing the wrong value? For instance this: echo (boolean)MatchPageNames('Forum.Test1','-PmWiki.*,-Site.*'); will echo 1.

Re: [pmwiki-devel] MatchPageNames

2007-05-22 Thread Patrick R. Michaud
On Tue, May 22, 2007 at 11:02:18PM +0100, Hans wrote: Tuesday, May 22, 2007, 10:17:44 PM, Patrick wrote: echo (boolean)MatchPageNames('Forum.Test1','-PmWiki.*,-Site.*'); will echo 1. But the target page is not part of the pattern. U, yes it is. The pattern says all pages that

Re: [pmwiki-devel] Is 'RightBar' the right name?

2007-05-23 Thread Patrick R. Michaud
On Wed, May 23, 2007 at 08:25:49AM -0500, Jon Haupt wrote: On 5/23/07, Patrick R. Michaud [EMAIL PROTECTED] wrote: On Wed, May 23, 2007 at 08:44:03AM +0100, Hans wrote: One thing we could argue about is, that SideBar should have been named LeftBar. I didn't use LeftBar because I wanted

Re: [pmwiki-devel] {~varname} vs. {~$:varname} in ZAP

2007-06-14 Thread Patrick R. Michaud
On Thu, Jun 14, 2007 at 09:44:46AM -0500, Ben Stallings wrote: At Dan's request, I'm bringing a disagreement he and I have had by private email to the list for other folks' feedback. In the most recent version of ZAP, he has provided the new markup {~Author$:varname} which retrieves the

Re: [pmwiki-devel] Version Control for Recipes/Skins?

2007-07-05 Thread Patrick R. Michaud
On Fri, Jun 29, 2007 at 09:05:34PM -0400, Stirling Westrup wrote: Some time ago, there was a discussion in the pmwiki-users mailing list of the possibility of setting up a subversion repository for pmwiki recipes and skins, as an aid to those of us who are comfortable with using a CMS. Did

Re: [pmwiki-devel] Proposal: Directives Registry

2007-08-09 Thread Patrick R. Michaud
On Thu, Aug 09, 2007 at 08:46:35AM -0400, Ben Wilson wrote: What I propose is to have PmWiki automatically parse (:directive args:), where 'directive' is a key to a Directive Registry that maps to the correspondnig function, and 'args' are already processed via ParseArgs(). There would be a

Re: [pmwiki-devel] MailForm - EMailForm

2007-08-09 Thread Patrick R. Michaud
On Thu, Aug 09, 2007 at 01:34:36PM -0400, Ben Wilson wrote: On 8/9/07, Martin Kerz [EMAIL PROTECTED] wrote: I packed all the cluttered additions to MailForm together and put it in a new package, thus giving up the two seperate recipes MailForm _and_ EMailForm and merged it into one. If

Re: [pmwiki-devel] MailForm - EMailForm

2007-08-09 Thread Patrick R. Michaud
On Thu, Aug 09, 2007 at 09:18:42PM +0200, Dominique Faure wrote: On 8/9/07, Patrick R. Michaud [EMAIL PROTECTED] wrote: On Thu, Aug 09, 2007 at 02:12:45PM -0400, Ben Wilson wrote: IIRC, there was one feature of the address verification that is either not supported by earlier forms of PHP

Re: [pmwiki-devel] (:if date:) page variables quandary

2007-10-16 Thread Patrick R. Michaud
On Tue, Oct 16, 2007 at 01:58:36PM -0500, Jon Haupt wrote: I am trying to set up a comment box that only appears when the creation time for the post in question was less than 1 month from the current date. The problem is that page variables cannot be used in an (:if date:) directive.

Re: [pmwiki-devel] Variable Expansion Question.

2007-10-23 Thread Patrick R. Michaud
On Tue, Oct 23, 2007 at 08:31:44AM -0400, Stirling Westrup wrote: I'm wondering if anyone has any insight on how Pm avoids recursive loops in his variable expansion routines. I ask because I need to do something similar and my reading of the PmWiki code has given me no insight. PmWiki handles

Re: [pmwiki-devel] File Locking?

2007-10-30 Thread Patrick R. Michaud
On Tue, Oct 30, 2007 at 02:07:48AM -0400, Stirling Westrup wrote: What's the correct way to use PmWiki's Lock() function? I couldn't find any documentation on it. I have an application where someone might post a form that creates a blog entry. The blog group contains blog entries with

Re: [pmwiki-devel] Link Kludge.

2007-10-31 Thread Patrick R. Michaud
On Wed, Oct 31, 2007 at 01:42:55PM -0400, Stirling Westrup wrote: I have a problem, and there doesn't seem to be a simple way of solving it. The markup [[Group/]] creates a link to the home page of Group. This is done via the definition of $DefaultName. What I need, is a way to associate

Re: [pmwiki-devel] objectizing pagelist?

2007-11-08 Thread Patrick R. Michaud
On Wed, Nov 07, 2007 at 05:26:28PM -0500, Stirling Westrup wrote: I've been thinking of writing a recipe to implement the YouSendIt clone I mentioned on the list a few months ago. In my mind, what would be ideal would be to have an (:attachlist...:) and a (:filelist ...:) directive that would

Re: [pmwiki-devel] objectizing pagelist?

2007-11-08 Thread Patrick R. Michaud
On Thu, Nov 08, 2007 at 02:33:17PM -0500, Stirling Westrup wrote: Patrick R. Michaud wrote: Hope this helps explain why I haven't tried to unify pagelist/attachlist in the codebase. Ultimately I find there are just too many differences in the underlying data components to make a single

Re: [pmwiki-devel] Bug in stdmarkup.php

2007-11-13 Thread Patrick R. Michaud
On Tue, Nov 13, 2007 at 05:47:06AM -0500, Stirling Westrup wrote: Near the end of stdmarkup.php is a line that reads: list($t0, $t1) = Drange($match[3]); which should be list($t0, $t1) = DRange($match[3]); Fixed for 2.2.0-beta64, thanks. Pm

Re: [pmwiki-devel] PmWiki router posted to cookbook

2007-12-16 Thread Patrick R. Michaud
On Tue, Nov 20, 2007 at 10:32:06PM -0600, [EMAIL PROTECTED] wrote: A router recipe has been posted to the cookbook at http://www.pmwiki.org/wiki/Cookbook/Router Router allows a website's url structure to be different from PmWiki's group/page structure. Development issue: Router

Re: [pmwiki-devel] strange conversions: a FmtPageName bug

2008-03-08 Thread Patrick R. Michaud
On Sun, Mar 09, 2008 at 12:36:09AM +, Hans wrote: Saturday, March 8, 2008, 11:58:35 PM, Hans wrote: A less aggressive and more precise replacement can be done instead with: foreach($g as $k=$v) $fmt = preg_replace(/$k/,$v $fmt); that does not do it. Perhaps this,

Re: [pmwiki-devel] strange conversions: a FmtPageName bug

2008-03-08 Thread Patrick R. Michaud
On Sat, Mar 08, 2008 at 08:31:43PM -0600, Patrick R. Michaud wrote: On Sun, Mar 09, 2008 at 12:36:09AM +, Hans wrote: Saturday, March 8, 2008, 11:58:35 PM, Hans wrote: A less aggressive and more precise replacement can be done instead with: foreach($g as $k=$v

Re: [pmwiki-devel] strange conversions: a FmtPageName bug

2008-03-09 Thread Patrick R. Michaud
On Sun, Mar 09, 2008 at 11:55:17AM +, Hans wrote: Sunday, March 9, 2008, 2:33:29 AM, Patrick wrote: Also, as a general rule it's unwise to be calling FmtPageName() on strings that are coming from page markup, as this exposes the ability for people to view the values of variables that

Re: [pmwiki-devel] strange conversions: a FmtPageName bug

2008-03-09 Thread Patrick R. Michaud
On Sun, Mar 09, 2008 at 12:32:58PM +, Hans wrote: Out of curiosity: what makes '$t' into a global? It is hard to search the code for this. Any variabes that aren't part of a function are global. This would include variables that are used in the course of initializing PmWiki or any

Re: [pmwiki-devel] Markup rule evaluation sequence

2008-05-22 Thread Patrick R. Michaud
On Fri, May 23, 2008 at 08:40:45AM +1200, [EMAIL PROTECTED] wrote: 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

Re: [pmwiki-devel] PITS/01030

2008-06-27 Thread Patrick R. Michaud
On Thu, Jun 26, 2008 at 07:13:52AM -0500, Greg Grimes wrote: As for not following the proper notification path for this, I am sorry. I am new to the PmWiki development world. I did e-mail Patrick about the issue after Hans told me I should. Patrick responded and said it would be fixed a new

Re: [pmwiki-devel] MakeLink and Automatic category pages

2008-07-07 Thread Patrick R. Michaud
On Mon, Jul 07, 2008 at 12:03:06AM -0400, DaveG wrote: I have two questions: *2] Automatic page creation* The pages I'll be referring to don't exist -- I'm using a GroupFooter. The link format in the MakeLink above (parameter 5) works to remove the '?action=edit', but I still get the text

Re: [pmwiki-devel] MakeLink and Automatic category pages

2008-07-07 Thread Patrick R. Michaud
On Mon, Jul 07, 2008 at 11:32:27AM -0400, DaveG wrote: Patrick R. Michaud wrote: On Mon, Jul 07, 2008 at 12:03:06AM -0400, DaveG wrote: $AutoCreate only creates pages if a page is saved that has a link to the specified group/pagename. In other words, the setting above says that if a page

Re: [pmwiki-devel] markup timing and page variable

2008-07-07 Thread Patrick R. Michaud
On Mon, Jul 07, 2008 at 05:29:21PM +0100, Hans wrote: Can someone tell me please what the best markup timing (when to be processed) is for a markup directive which generates some display according to various calculations done in the markup function - and which should set a resulting value to

Re: [pmwiki-devel] function InputDefault

2008-07-14 Thread Patrick R. Michaud
On Mon, Jul 14, 2008 at 03:36:54PM +0100, Hans wrote: Re: (:input default source=PageName:) Why does the function call Qualify() when assigning PTV values from a source page? If a value includes a page variable it will be expanded to a fully qualified variable, i.e. {$LastModified} to

Re: [pmwiki-devel] function InputDefault

2008-07-14 Thread Patrick R. Michaud
On Mon, Jul 14, 2008 at 11:08:49PM +0100, Hans wrote: While you look at that function, could you please consider also to expand the 'if (@$args['request'])' routine so it can handle single-depth array input from GET or POST? Input forms elements can be part in an array. This is especially

Re: [pmwiki-devel] Markup Processing Order

2008-07-18 Thread Patrick R. Michaud
On Fri, Jul 18, 2008 at 11:29:56AM -0400, DaveG wrote: I've created a markup which calls a function. I'm trying to override $DefaultPageTextFmt, but if I do this inside the markup function the override doesn't occur. Placing the code inside the main body of the recipe works fine, but

Re: [pmwiki-devel] simultanouis form submission problem

2008-09-25 Thread Patrick R. Michaud
On Thu, Sep 25, 2008 at 09:36:02PM +0100, Hans wrote: A form lets a user add a row of data, and this row is identified by an id rownumber, which is written as a PTV, and incremented by 1 with every form submission. Now two (or more) users submit this form at the same time more or less

Re: [pmwiki-devel] Help with PHP Dates

2009-01-04 Thread Patrick R. Michaud
On Fri, Jan 02, 2009 at 05:53:55PM -0500, DaveG wrote: 3] I initially thought to store using the Unix format. However, {(ftime)} doesn't appear to work when fed Unix timestamps. Try placing an '@' in front of the Unix timestamp: {(ftime @1231116927)} January 04, 2009, at 06:55 PM

Re: [pmwiki-devel] PTVs using MarkupExpr, in a Pagelist

2009-01-19 Thread Patrick R. Michaud
On Mon, Jan 19, 2009 at 02:21:58PM -0500, DaveG wrote: Also doesn't work. Apparently the pagelist doesn't execute of count=x..y would returns no results. That includes (:template first:) and (:template last:) sections. Neither are performed if no results. There's been discussion of having a

Re: [pmwiki-devel] php multi-dimensional array construction problem

2009-02-05 Thread Patrick R. Michaud
On Thu, Feb 05, 2009 at 10:40:21AM +, Hans wrote: Perhaps someone can help me out with this problem: I got a string k1:k2:k3::kn and a value val made up of alpha-numeric word strings of any length k1 ..kn, seperated by : The number n of the k members can vary. I like to

Re: [pmwiki-devel] FmtTemplateVars function

2009-02-10 Thread Patrick R. Michaud
On Tue, Feb 10, 2009 at 03:58:33PM +, Hans wrote: I try to use function FmtTemplateVars in a new recipe, and finding some odd behaviour. The function comment reads: ## FmtTemplateVars uses $vars to replace all occurrences of # {$$key} in $text with $vars['key']. function

Re: [pmwiki-devel] FmtTemplateVars function

2009-02-10 Thread Patrick R. Michaud
On Tue, Feb 10, 2009 at 05:39:41PM +, Hans wrote: Tuesday, February 10, 2009, 5:08:25 PM, Patrick wrote: Okay, now I'm very confused -- how/where do PTVs enter into this?! The original message in this thread only talks about page variables {$Foo} and template substitutions {$$foo}, and

Re: [pmwiki-devel] FmtTemplateVars function

2009-02-10 Thread Patrick R. Michaud
On Tue, Feb 10, 2009 at 06:58:06PM +, Hans wrote: I do not want to use (:include:) ;-) If I do use (:include:) to include a template, in which replacement variables then get filled with various values, I can avoid the naming conflict by choosing different key words. I am working on a

Re: [pmwiki-devel] FmtTemplateVars function

2009-02-11 Thread Patrick R. Michaud
On Wed, Feb 11, 2009 at 04:44:08PM +, Hans wrote: Tuesday, February 10, 2009, 7:32:12 PM, Patrick wrote: We can also update FmtTemplateVars to do things based on PTVs -- i.e., {$$:Name} would be an immediate template substitution of the 'Name' PTV for a page. you mean a straight

Re: [pmwiki-devel] how to access MatchCount from pagelist

2009-02-12 Thread Patrick R. Michaud
On Thu, Feb 12, 2009 at 09:41:30PM +0100, Peter Bowers wrote: I looked at this once before and came to the conclusion that either (a) you have to call pagelist twice or (b) you have to copy FPLTemplate() and make some alterations. (This could be done as a recipe since $FPLFormatOpt holds

Re: [pmwiki-devel] how to access MatchCount from pagelist

2009-02-13 Thread Patrick R. Michaud
On Fri, Feb 13, 2009 at 07:58:57AM +0100, Peter Bowers wrote: Hans wrote: Thursday, February 12, 2009, 9:01:09 PM, Patrick wrote: ...or, if I'm wrong and it's not really possible to get to the matchcount easily, you can propose modifications to FPLTemplate() for

Re: [pmwiki-devel] how to access MatchCount from pagelist

2009-02-13 Thread Patrick R. Michaud
On Fri, Feb 13, 2009 at 08:45:14AM +, Hans wrote: It will still not be easy to construct a dynamic link navigation like (Go to page 1 2 3 ) within a custom template. But it just may be possible. FWIW, if I were creating a dynamic link navigation such as this I would use a special

Re: [pmwiki-devel] how to access MatchCount from pagelist

2009-02-13 Thread Patrick R. Michaud
On Fri, Feb 13, 2009 at 10:34:06AM +0100, Peter Bowers wrote: While the math could get a bit inconvenient I think that complexity can entirely be hidden within the code and leave the pagelist parameter set unchanged... I guess I'm assuming a page editor is not going to be specifying a given

Re: [pmwiki-devel] how to access MatchCount from pagelist

2009-02-13 Thread Patrick R. Michaud
On Fri, Feb 13, 2009 at 10:07:49AM +0100, Peter Bowers wrote: Right now pagelist is constructed somewhat as a chain link. FmtPageList calls $fmtfn (usually FPLTemplate()) which calls makepagelist(). No ifs, ands, or buts -- one calls the other which calls the last one. As a result

Re: [pmwiki-devel] how to access MatchCount from pagelist

2009-02-13 Thread Patrick R. Michaud
On Fri, Feb 13, 2009 at 04:06:02PM +, Hans wrote: Friday, February 13, 2009, 3:39:41 PM, Patrick wrote: FWIW, if I were creating a dynamic link navigation such as this I would use a special markup and not try to make a pagelist template do the work. I agree. I have been doing it

Re: [pmwiki-devel] When Readpage fails

2009-03-06 Thread Patrick R. Michaud
On Fri, Mar 06, 2009 at 08:27:42PM +0100, Peter Bowers wrote: What is the normal way of checking whether ReadPage() has been unsuccessful? (Or, by extension, RetrieveAuthPage()) I see lots of this: if (!$page) ... but my reading of ReadPage() seems to indicate that a failed read will

Re: [pmwiki-devel] PostPage in recipe

2009-03-29 Thread Patrick R. Michaud
On Sun, Mar 29, 2009 at 04:13:07PM +0200, Peter Bowers wrote: On Sun, Mar 29, 2009 at 3:57 PM, Hans desi...@softflow.co.uk wrote: but perhaps I was wrong in that conclusion. If someone has successfully run UpdatePage() from config.php I would be very grateful for any pointers. I

Re: [pmwiki-devel] PostPage in recipe

2009-03-31 Thread Patrick R. Michaud
On Tue, Mar 31, 2009 at 12:10:03PM +0200, Peter Bowers wrote: 2009/3/31 Frank Schweickert f.schweick...@uva.nl I added this to http://www.pmwiki.org/wiki/PmWiki/Functions Typically, the functions of pmwiki.php should ''not be called directly'' in a cookbook recipe which is

Re: [pmwiki-devel] PostPage in recipe

2009-03-31 Thread Patrick R. Michaud
On Tue, Mar 31, 2009 at 12:30:31PM +0200, Frank Schweickert wrote: Typically, the functions of pmwiki.php should ''not be called directly'' in a cookbook recipe which is executed as include file in config.php. While this is true for UpdatePage() I'm not

Re: [pmwiki-devel] PostPage in recipe

2009-03-31 Thread Patrick R. Michaud
On Tue, Mar 31, 2009 at 04:14:42PM +0100, Hans wrote: Tuesday, March 31, 2009, 3:27:17 PM, Patrick wrote: The CustomMarkup page isn't sufficient for how to create custom markup expressions? I think there is a misunderstanding of what constitutes markup and what markup exressions. Oops,

Re: [pmwiki-devel] ResolvePageName() before config.php

2009-04-20 Thread Patrick R. Michaud
On Mon, Apr 20, 2009 at 09:49:30AM +0200, Peter Melodye Bowers wrote: On Monday 20 April 2009 08:27:47 Peter Bowers wrote: Wouldn't it make better sense to call ResolvePageName() *before* config.php is included?  Is there a down-side to this? Yes there is. The variables $DefaultPage,

Re: [pmwiki-devel] regex question

2009-08-26 Thread Patrick R. Michaud
On Wed, Aug 26, 2009 at 06:07:02PM +0100, Hans wrote: I need a regex which finds text with open [@ markup bracket in a text string. It should match for instance abcd1...@xyz but not abcd1...@xyz@] Basically I want to remove open [@ character pairs from a text line. Can someone help

Re: [pmwiki-devel] Add guid tag to each item of RSS feeds

2010-01-02 Thread Patrick R. Michaud
On Sat, Jan 02, 2010 at 10:32:58AM -0600, Daniel Roesler wrote: RSS feeds for PmWiki need to have a unique link for each item, so feed readers can identify new edits. I've created a patch (just changed two lines) in /scripts/feeds.php that fixes the problem. It adds a ?guid=1234567890 to the

Re: [pmwiki-devel] Add guid tag to each item of RSS feeds

2010-01-02 Thread Patrick R. Michaud
On Sat, Jan 02, 2010 at 11:33:01AM -0600, Daniel Roesler wrote: I say we have the link element contain {$PageUrl} (like it does now) and add a separate guid element that adds on a unique identifier by default. I'm ok with the uid being ISO instead of Unix, but we really need unique links for

Re: [pmwiki-devel] Support for itunes itpc hyperlinks

2010-04-20 Thread Patrick R. Michaud
On Tue, Apr 20, 2010 at 12:03:11PM -0400, Farhad Khan wrote: I am wondering if anyone has tried to use iTunes hyperlinks before. It has the following itpc format itpc:// feeds.feedburner.com/mypodcast. If I add this in the link [[ ]] markup, the hyperlink is silently dropped. Can someone

Re: [pmwiki-devel] crypt problem on WAMP

2010-06-04 Thread Patrick R. Michaud
On Fri, Jun 04, 2010 at 11:10:07PM +0200, Petko Yotov wrote: Md5() seems to work fine so in the past I was thinking that we could have our function (_crypt?) test for the bug, and if crypt() appears to be broken, automatically use the md5 hash (even if it is less secure). I never had the

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

2011-02-23 Thread Patrick R. Michaud
On Thu, Feb 24, 2011 at 10:17:47AM +1300, John Rankin wrote: The http://www.pmwiki.org/wiki/Cookbook/PublishPDF library has been just under 15 bytes for about a year and each release I look for things to take out, to compensate for additions. The latest version is 14 bytes and I am

Re: [pmwiki-devel] iframes with in the src=url

2011-02-25 Thread Patrick R. Michaud
On Fri, Feb 25, 2011 at 06:30:01PM -0500, Ryan O'Toole wrote: I can think of a few solutions, such as turning off ampersand interpolation within HTML tags. Dunno if that is enablehtml.php type of change, or pmwiki ROS change. Another option would be able to just turn off the interpolation

Re: [pmwiki-devel] Understanding parsing of white space

2011-02-28 Thread Patrick R. Michaud
On Mon, Feb 28, 2011 at 10:18:04PM +1300, Simon wrote: When I get to a blank line (at least in the source) I find the value in $choline is :vspace or 3c3a7673706163653e and len($choline) is 9 can anyone explain to me what is happening? During the course of markup translation, new blank

Re: [pmwiki-devel] pmwiki licensing: AGPL option?

2011-02-28 Thread Patrick R. Michaud
On Tue, Mar 01, 2011 at 09:50:17AM +1300, John Rankin wrote: Is it possible to have an option to download pmwiki under the Affero GPL [1], as well as the GPL? [...] Our preference is to use the AGPL, so that others who may build on our work are required to distribute any changes they make,

Re: [pmwiki-devel] a pagelist (or list of pages) in php

2011-08-06 Thread Patrick R. Michaud
On Sat, Aug 06, 2011 at 12:12:06PM -0400, Mike Stop Continues wrote: Is there a way to get a pagelist without MakePageList()? At bare minimum, I need a simple array of groups, but if I could get a more complete method, it would really help the recipe I'm building. The ListPages() function

Re: [pmwiki-devel] Anchors in includes

2012-04-08 Thread Patrick R. Michaud
On Sun, Apr 08, 2012 at 11:14:54PM +1200, Simon wrote: Thanks for the very prompt reply. I believe that this is a bug then, include does not use the same definition of an anchor token as does the code that parses links and anchors. The problem appears to be the definition of $npat on line 1266

Re: [pmwiki-devel] How can I modify/change header() of outputted pages?

2012-08-07 Thread Patrick R. Michaud
On Tue, Aug 07, 2012 at 06:28:13PM -0700, Steven Leite wrote: Hello Dev's, Need a bit of help. I want to add/inject this php to my page output: header('P3P:CP=IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'); Adding stuff to $HTMLHeaderFmt won't work, as this is

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

2013-06-07 Thread Patrick R. Michaud
On Fri, Jun 07, 2013 at 11:59:27PM +0200, Petko Yotov wrote: So, for the moment there is no ETA, but we should probably document what can be done to hide the warnings. More directly, for the next release of PmWiki, change line 28 from error_reporting(E_ALL ^ E_NOTICE); to something like

Re: [pmwiki-devel] How to disable the # markup?

2013-10-15 Thread Patrick R. Michaud
On Tue, Oct 15, 2013 at 04:29:39AM -0700, Steven Leite wrote: Contact page. Address information: #3-1234 Street Unexpected / Unwanted outcome: 1. 3-1234 Street *Request:** ** **Please tell me how to disable this permanently - I searched Google and PmWiki to no avail. Thanks* In

Re: [pmwiki-devel] current font sizes

2014-01-12 Thread Patrick R. Michaud
On Mon, Jan 13, 2014 at 12:04:32AM +0530, V.Krishn wrote: Noticed that page fontsize on: http://www.pmwiki.org/wiki/PmWiki/ChangeLog now look different on chrome (27.0) and firefox (21) (seemed same earlier) Hope this is not related to css changes in v2.2.59 ? Yes, I was more than a

Re: [pmwiki-devel] current font sizes

2014-01-12 Thread Patrick R. Michaud
On Mon, Jan 13, 2014 at 11:38:53AM +1300, Simon wrote: I would be reluctant to see this changed back. I consider it more problematical having a mixture of fixed and variable width spacing for font-size (the only CSS attribute we are discussing here). IMO, it's definitely more problematical

Re: [pmwiki-devel] current font sizes

2014-01-29 Thread Patrick R. Michaud
On Tue, Jan 28, 2014 at 09:18:32PM -0700, Simon wrote: I think it is unfortunate that we have reverted a change to PmWiki that arguably fixed a bug in PmWiki,css (mixing fixed and variable font-sizes) on unsubstantiated evidence (apologies V Krishn - but without screen shots and browser

Re: [pmwiki-devel] PageStore with groups in subdirectories

2015-01-11 Thread Patrick R. Michaud
On Sun, Jan 11, 2015 at 12:25:11PM +, Omar Cornut wrote: Then I noticed that PageStore via pagefile() appears to support this already. If we changed: $WikiDir = new PageStore('wiki.d/{$FullName}'); to $WikiDir = new PageStore('wiki.d/{$Group}/{$FullName}'); However this is not

  1   2   >