Re: [pmwiki-users] WikiSh - conditional question

2009-09-18 Thread Melodye Bowers
On Thu, Sep 17, 2009 at 12:22 AM, adam overton wrote: > i was wondering if it's possible to do nested conditiionals in WikiSh in > the form: > > {(wikish if test "blam" == "blammo" || ( test "blee" == "blee" && test > "blech" == "blech" ); then; echo "true"; else; echo "false"; fi; )} > > i would

Re: [pmwiki-users] automatic link creation

2009-08-25 Thread Melodye Bowers
On Tue, Aug 25, 2009 at 11:38 PM, adam overton wrote: > hi > i would like to have pmwiki convert certain commonly appearing names > (or terms, or orgs) into a links to the respective person's external > website. > If there is something in common between the people's external web-sites then it co

Re: [pmwiki-users] pmwiki and Active Directory

2009-05-14 Thread Peter & Melodye Bowers
> I have tried to do it without using the chr(39)-things, but > unfortunately it didn't work. > - With the chr(39)-stuff the Main.HomePage was displayed. > - Without the chr(39)-stuff all I got was a blank page, obviously some > sort of syntax error or something in the script. So before you had li

[pmwiki-users] empty vs nonexistent PTV in pagelist

2009-04-07 Thread Peter & Melodye Bowers
Is there any way to differentiate between an empty PTV and a non-existent PTV in a pagelist? If not, what suggestions for an appropriate syntax to differentiate? -Peter ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/ma

Re: [pmwiki-users] Another stab at ratings on PmCalendar page

2009-02-28 Thread Peter & Melodye Bowers
> I forgot to mention that a while ago we discussed this format : > * (+) Excellent, I use it. [[~Petko]] (datestamp) > * (-) Didn't work for me, PHP 7 required. [[~Peter Bowers]] (datestamp) > > That is : asterisk, (special markup keyword), optional comment, signature. > > There were many messag

Re: [pmwiki-users] Trying to add new page variable problem

2009-02-23 Thread Peter & Melodye Bowers
> Hi, I think I get that, but from a more general point of view I am > trying to understand how to use markup like (:sitemap_priority 0.5:), ie > like the (:title:) markup You'll have to set up your own function in the $EditFunctions[] array which will scan the text for this markup and set $page['

Re: [pmwiki-users] setting page attibute acording a publish/drafts ptv

2008-11-27 Thread Peter & Melodye Bowers
You can look at the function wshChmod() in wikish.php - it allows you to change all types of attr's. -Peter > -Original Message- > From: [EMAIL PROTECTED] [mailto:pmwiki-users- > [EMAIL PROTECTED] On Behalf Of noskule > Sent: Thursday, November 27, 2008 2:26 PM > To: Hans > Cc: PmWiki Use

Re: [pmwiki-users] PmWiki and Pagelist as report generator

2008-08-21 Thread Peter & Melodye Bowers
> Producing the individual pages manually using the ordinary pmwiki editor > was fine when there were only two or three a week. However, we're going > to need lots more, and it would be useful to use an input form to write > out the individual pages. > > Is there a way in PmWiki of having a form t

Re: [pmwiki-users] Blank Page

2008-08-21 Thread Peter & Melodye Bowers
> ... pmwiki now prompts for username as > well as password, but seems to ignore whatever is entered into the > "Name" field. This is simply due to the fact that you have partially enabled authuser. In your earlier email you had this: >I looked through the error reports on pmwiki.org, and found

Re: [pmwiki-users] How to add a read password field to the edit form

2008-08-11 Thread Peter & Melodye Bowers
> This would be my first recipe, but I need way more code ... or someone > to do it for me .-) I'm afraid I can't code it for you, but you'll be looking at something like this (I haven't even compiled this, so be aware of what level it is)... ===(snip)=== $EditFunctions[] = 'AllowPublicPage'; ...

Re: [pmwiki-users] form to search page names - one solution

2008-08-05 Thread Peter & Melodye Bowers
> In one page I created this simple form: > > (:input form method=get action={$ScriptUrl}/Main/Search_results:) > (:input text name=search_term:) > (:input end:) > > Then, in the page /Main/Search_results, I grab the variable passed with > the GET method (?search_term=text_entered_in_the_box) and

Re: [pmwiki-users] How to protect against vandalism?

2008-08-05 Thread Peter & Melodye Bowers
>I now have a "please enter qdk below" on my authform. That's great when a >user is trying to edit an open page. But it can be confusing when a >particular page has a different password or if someone is trying to change >attributes rather than edit the page. Is there any way to put this message

Re: [pmwiki-users] Import existing web pages

2008-08-05 Thread Peter & Melodye Bowers
You could start with these: http://www.pmwiki.org/wiki/Cookbook/ConvertHTML http://search.cpan.org/src/DIBERRI/HTML-WikiConverter-PmWiki-0.51/README I haven't done it myself, but it looks do-able... -Peter > -Original Message- > From: [EMAIL PROTECTED] [mailto:pmwiki-users- > [EMAIL PRO

Re: [pmwiki-users] How to protect against vandalism?

2008-08-05 Thread Peter & Melodye Bowers
> Could someone tell me what variable needs to be changed or what page > needs to be modified to put the message about what password to enter > there in order to have this "open" type of password? Sorry - I knew I would find it the moment I sent out the email, but Mr. Murphy says I would still be

Re: [pmwiki-users] "sticky" checkbox

2008-07-22 Thread Peter & Melodye Bowers
I think you're going to want to set up fox forms and save the results in PTVs. Hope that gets you started in the right direction. Obviously in addition to clicking the checkbox your users are going to have to click on the "submit" button. -Peter _ From: [EMAIL PROTECTED] [mail

Re: [pmwiki-users] pmwiki forms

2008-07-08 Thread Peter & Melodye Bowers
> I want to set up a simple form, and then either compile the results on > a web page, or have the individual form results emailed to me. Do you want just the most recent data on a web page? Or do you want subsequent datasets to be appended to the previous one? Or do you want some sort of avera

Re: [pmwiki-users] Conditional markup with multi-line page variables

2008-06-30 Thread Peter & Melodye Bowers
> That works exactly as it should, but, if ShopList has a multi-line > value, I still get the correct output for my shopping list, but it is > preceded on the screen by the if statement, with ShopList expanded, The (:if ...:) regex includes a [^\n]* when it is matching the condition which excludes

Re: [pmwiki-users] quirk with nested-if

2008-06-30 Thread Peter & Melodye Bowers
> > however, if i then stick (:include UDP.TestInclude:) into > Site.SiteFooter, > > and then load any page on the site, it malfunctions and spits out onto > the > > page part of the conditional (i.e. it doesn't execute it all): OK, a different answer now that I've tested it. I put nested-if in m

Re: [pmwiki-users] quirk with nested-if

2008-06-30 Thread Peter & Melodye Bowers
> however, if i then stick (:include UDP.TestInclude:) into Site.SiteFooter, > and then load any page on the site, it malfunctions and spits out onto the > page part of the conditional (i.e. it doesn't execute it all): When PM decided to put the (:if0 ...:) as a div-like feature into core I stoppe

Re: [pmwiki-users] Problem with $SearchPatterns

2008-06-29 Thread Peter & Melodye Bowers
> One last question: I understand that the ! is the exclude parameter, but > I didn't find if I have to use \\ or \ behind my group? > What's the difference between \ and \\ ? Are both wildcards? In my case > it works and it does not find content which is e.g. in Group P0035, but > I would like to

Re: [pmwiki-users] Block Public Access to Specific Pages?

2008-06-13 Thread Peter & Melodye Bowers
> Is it possible to have a specific page require a password for display? > Assume the whole site is set to require a password for editing. I've > poked around in the "Security" area of the wiki, to no avail. http://www.pmwiki.org/wiki/PmWiki/Passwords You're looking for read passwords. -Peter

Re: [pmwiki-users] WikiSh - check string length

2008-06-08 Thread Peter & Melodye Bowers
roadmap to give a helpful error message if a non-MX token is found immediately after if. -Peter _ From: adam overton [mailto:[EMAIL PROTECTED] Sent: Sunday, June 08, 2008 11:46 AM To: pmwiki-users Cc: Peter & Melodye Bowers Subject: WikiSh - check string length and one more W

Re: [pmwiki-users] more WikiSh noob

2008-06-08 Thread Peter & Melodye Bowers
ginal Message- > From: adam overton [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 08, 2008 10:43 AM > To: pmwiki-users > Cc: Peter & Melodye Bowers > Subject: more WikiSh noob > > hi there > i'm wondering why: > > {(set -s blam = "darnit")}

Re: [pmwiki-users] Markup or method to increment/decrement a PTV ("integer") variable?

2008-06-05 Thread Peter & Melodye Bowers
> Subject: [pmwiki-users] Markup or method to increment/decrement a PTV > ("integer") variable? > Does it exists? How could it be done? > Kind regards, Do you want to change the value temporarily or permanently? Is it just for this load of the page or are you wanting to save it back to the page s

Re: [pmwiki-users] WikiSh noob - -gt & -lt

2008-06-05 Thread Peter & Melodye Bowers
The various control flow elements (conditionals, looping, etc.) within WikiSh are implemented as part of the {(wikish .)} MX rather than being individual MXes themselves. Thus {(if test .)} is undefined as far as WikiSh is concerned. It needs to be {(wikish if test .)} While developing your s

Re: [pmwiki-users] calculation with time

2008-06-05 Thread Peter & Melodye Bowers
> Currently I save this in unix time so I can do math operations very > easily. Unfortunality it isn't a proper format to write time in a form > field. If you want the user to enter it then you are right. However, if it's just a display issue then strftime() should handle it nicely, right (as you

Re: [pmwiki-users] calculation with time

2008-06-05 Thread Peter & Melodye Bowers
If you are talking about in the underlying PHP: > if "current time" < "current time"-"two weeks" If (time() < (time() - (2 * 7 * 24 * 60 * 60))) > if "current time" < "current time"-"two hours" If (time() < (time() - (2 * 60 * 60))) > if "current time" < "current time"-"two minutes

Re: [pmwiki-users] links with mouseover titles

2008-05-28 Thread Peter &amp; Melodye Bowers
> Hans wrote: > > Actually, just checking the code, [[target | text |: tooltip:]] is > evaluated before 'if' conditional markup (to allow conditionals in > tooltips). Perhaps that does give you a hint why it is failing. > > The extra markup is being rendered before that. You could possibly > chan

[pmwiki-users] links with mouseover titles

2008-05-28 Thread Peter &amp; Melodye Bowers
Is there any recipe which will give me capability of using a normal link (without title) but when the user hovers their mouse over it then it would give the real title? I'm wanting to use short links to profile pages in a wikiform application so they need to fit in a relatively narrow column. But

[pmwiki-users] WikiBox: assuming identity/authorization for a remote user

2008-05-27 Thread Peter &amp; Melodye Bowers
I need some input from the group while I am in the process of developing WikiBox. Briefly, an idea of what the WikiBox recipe will do: The idea of this recipe is to allow people to access a pmwiki site by email (either updating pages or retrieving pages or some other administrative tasks). The

Re: [pmwiki-users] Silly, silly newbie question - Table of Contents

2008-05-26 Thread Peter &amp; Melodye Bowers
The list=normal gets rid of pages like RecentChanges, AllRecentChanges, GroupFooter, PageFooter, etc. -Peter _ From: Jesse Reisman [mailto:[EMAIL PROTECTED] Sent: Monday, May 26, 2008 3:07 PM To: Peter & Melodye Bowers Cc: pmwiki-users@pmichaud.com Subject: Re: [pmwiki-users] S

Re: [pmwiki-users] Silly, silly newbie question - Table of Contents

2008-05-25 Thread Peter &amp; Melodye Bowers
Try (:pagelist list=normal:) to exclude all the stuff you usually don't want to see. I believe you can also explicitly exclude multiple groups like this: (:pagelist group=-pmwiki,-groupa,-groupb,-groupc:) -Peter _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jesse

Re: [pmwiki-users] page inclution problem

2008-05-22 Thread Peter &amp; Melodye Bowers
> So is there a way that I get the page included even if I use anchors? It works for me without any problems. See http://www.ccl-al.org/pmwiki/pmwiki.php?n=Test.Include -Peter ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://w

[pmwiki-users] Protecting text from ROS/ROE

2008-05-20 Thread Peter &amp; Melodye Bowers
I use the E-Protect recipe to allow email addresses to be obfuscated. However, I have to explain to users with no experience how to create a [[mailto:[EMAIL PROTECTED] link. E-Protect changes this to look like [[hidden-email:[EMAIL PROTECTED] So if I put in a comment like this in a template page:

Re: [pmwiki-users] Fox mail features: feedback invited

2008-05-19 Thread Peter &amp; Melodye Bowers
> > I don't know if Pm ever added the pop3 mail checking capabilities... > > [...] > > ...you could have your site actually process some of the bounced > > mail to keep your lists clean > > Does it help? > http://www.pmwiki.org/wiki/Cookbook/WikiBox I certainly welcome anyone testing this out, bu

[pmwiki-users] Session difficulties

2008-05-15 Thread Peter &amp; Melodye Bowers
Does anybody have any idea why this code: ===(snip)=== \n"; $_SESSION["foo"] = $s; echo "AFTER: " . $_SESSION["foo"] . "\n"; } ===(snip)=== With the (:setsess 111:) on Page1 and (:setsess 222:) on Page2 would result in this on the FIRST entry into Page1: ===(snip Page1)=== BEFO

[pmwiki-users] Farms: per-wiki config

2008-05-11 Thread Peter &amp; Melodye Bowers
> Is it possible for skins and other per-wiki configs to be managed (ie > changed) by each wiki's individual admin via a passworded web interface? It's still more a proof-of-concept and needs more thought/design and lots more testing, but check out this new recipe: http://www.pmwiki.org/wiki/Coo

Re: [pmwiki-users] Copy and paste do not work properly with MS office 2007

2008-05-08 Thread Peter &amp; Melodye Bowers
> What browser are you using? Can you identify exactly what > text you're attempting to copy and paste so I can try to duplicate > the problem on my system? I can confirm that on Frank's link (below) using FireFox 2.0.0.14 and MSWord 2003 when I copy/pasted the first text below it messed up the

Re: [pmwiki-users] how to use WikiForms

2008-05-07 Thread Peter &amp; Melodye Bowers
> where do i put the form definition? (like in the sample code from the WikiFormSample page) See http://www.pmwiki.org/wiki/Cookbook/WikiForms immediately following the "Discussion" header. > what's the name of the page/link the users than use to create pages? You create your own link

Re: [pmwiki-users] cookbook security advide needed

2008-05-06 Thread Peter &amp; Melodye Bowers
> What is the best way to prevent submitting malicious code like > javascript. Is there a standard or common used filter function for > that. The filter should accept the css syntax bot nothing > more. Example: > > #123456 > 1px solid red > 0.8em > url(http://domain.net/img.jpg) It's kind of

Re: [pmwiki-users] New Recipe: EditMX

2008-05-04 Thread Peter &amp; Melodye Bowers
>> I wondered if you might want to do an ROE (replace on edit) cousin? >> >> http://www.pmwiki.org/wiki/PmWiki/EditVariables#ROEPatterns >> >> (useful for first time page load of templates, I would think). Henrik had an excellent idea of extending this to the $ROEPatterns as well, so I've released

[pmwiki-users] New Recipe: EditMX

2008-05-04 Thread Peter &amp; Melodye Bowers
http://www.pmwiki.org/wiki/Cookbook/EditMX This recipe is of primary use to relatively experienced authors who want to leverage the computer to make the most of their time. It provides a way for an author to use MarkupExpressions as ROS (Replace On Save) patterns, thus inserting the return value

[pmwiki-users] Value saved in $_SESSION is inconsistent

2008-05-01 Thread Peter &amp; Melodye Bowers
When I started saving semi-permanent information in my session I was prepared for all kinds of complications and a steep learning curve. I found, to my pleasant surprise, that all I had to do was make an assignment to the $_SESSION[] array and it would automatically be saved from one page-load to

Re: [pmwiki-users] Formatting in lists

2008-04-30 Thread Peter &amp; Melodye Bowers
> My problem here is that the blipp blipp item starts with 1 > instead of continuing with n+1. Is it not possible to have > source block like this in a list or am I missing something. http://www.pmwiki.org/wiki/PITS/00194 - Petko has a solution that might help you. http://www.pmwiki.org/wiki/PmW

Re: [pmwiki-users] InitialPasswords

2008-04-30 Thread Peter &amp; Melodye Bowers
>How can I set a complete site back to "Initial passwords" as they are at installation time. >That is: clear all special passwords related to pages, groups, etc. that have been added by different users. To get rid of page-specific passwords you've got to get rid of lines in any page-file (wiki.d/

Re: [pmwiki-users] restrict page creation to contain some necessary fields

2008-04-29 Thread Peter &amp; Melodye Bowers
> (1) guest users should be only allowed to add pages with some > fixed parts > (like categories for country, etc). i do know hoe to restrict > theer editing > to a group, but in this group they can create whatever page > they want. > however i need to force/guide users to create pages > con

Re: [pmwiki-users] Ticketing system

2008-04-28 Thread Peter &amp; Melodye Bowers
> Is there a ticketing system/helpdesk recipe for pmwiki? If not, is > there an Open Source one which anybody can recommend which might even > integrate with pmwiki? Although WikiForms has much broader application it appears from most examples in the documentation that it was initially planned in

Re: [pmwiki-users] Custom markup - where to begin?

2008-04-26 Thread Peter &amp; Melodye Bowers
> + Where can I find the documentation for how to write one? I > tried finding > something but apparently didn't manage to find it. This is a question which causes difficulties because it's hard to put a boundary around the answer. I'll try to be brief with the understanding that there ar

Re: [pmwiki-users] Indenting an entire table to line up with text.

2008-04-24 Thread Peter &amp; Melodye Bowers
>> 1. as a wikistyle - put >> $WikiStyle['indent2']['margin-left'] = '80px'; to your config.php >> >> or >> >> 2. as a CSS style - put .indent2 { margin-left:80px; } >> to your CSS (pmwiki.css or other file depending on your skin) >> >> I prefer second option

[pmwiki-users] Look-and-feel

2008-04-24 Thread Peter &amp; Melodye Bowers
I am going to try to "sell" pmwiki to my faculty as a better way to handle our whole web-site (rather than just an add-on wiki section) at an upcoming meeting. One of the most important issues for them is the "look and feel" of it. Understanding that this is a very subjective issue, would it be p

Re: [pmwiki-users] Nested IF

2008-04-24 Thread Peter &amp; Melodye Bowers
> ...I'm now adopting this markup and approach as a PmWiki > CoreCandidate and planning to add it into the core. I will > probably try to do this today or over the weekend. Others are > welcome to implement something like it in recipes, but just be > aware that PmWiki should have its own imple

Re: [pmwiki-users] Nested IF

2008-04-24 Thread Peter &amp; Melodye Bowers
> Thursday, April 24, 2008, 2:24:43 PM, Peter & Melodye Bowers wrote: > > > PS I don't think much of the way this looks in terms of being > understandable > > and intuitive. ... > > Would it be possible to create if markup similar to the div markup, > wh

[pmwiki-users] Nested IF

2008-04-24 Thread Peter &amp; Melodye Bowers
I don't know how often people have need for a nested conditional, but I've put together a recipe that supports it. You can find it here: http://www.pmwiki.org/wiki/Cookbook/NestedIf It uses markup in this form: (:n-if true:)it is true(:n-if false:)it is false(:n-else:)it is not false(:n-ifend:)

Re: [pmwiki-users] Markup for Page Text Variables

2008-04-24 Thread Peter &amp; Melodye Bowers
> Is it possible to either alter markup or create new markup > for PTV's. It would > suit my purposes if I could define a PTV thus: > PTV (Value) > {$:PTV} would then display Value? There is currently a definition of $PageTextVarPatterns like this in pmwiki.php: ===(snip)=== $PageTextVarPatterns

Re: [pmwiki-users] Unit testing pmwiki markup code

2008-04-24 Thread Peter &amp; Melodye Bowers
> Has anyone out there figured out a way to do unit testing for your > pmwiki markup code? If so, what tool do you use? I would be *VERY* interested in something like this. Currently I just have dozens of pages in a wikitrail with expected output hardcoded followed by the actual markup. I have

Re: [pmwiki-users] Unit testing pmwiki markup code

2008-04-24 Thread Peter &amp; Melodye Bowers
> Has anyone out there figured out a way to do unit testing for your > pmwiki markup code? If so, what tool do you use? I would be *VERY* interested in something like this. Currently I just have dozens of pages in a wikitrail with expected output hardcoded followed by the actual markup. I have

Re: [pmwiki-users] Emailform receipe

2008-04-23 Thread Peter &amp; Melodye Bowers
> How to set global setting from the local/config.php file into > the actual > page, so the settings can be customized on the page itself? > > I am using the emailform receipe and it works great, but I'd > like to set > the: > > $EMailFormAddresses['feedback'] = '[EMAIL PROTECTED]'; > $EMailFor

Re: [pmwiki-users] summing variables

2008-04-23 Thread Peter &amp; Melodye Bowers
> > WikiSh has this capability using a syntax like > {$:var${counter}} to work > > with "pseudo-arrays". If you think you would be interested > in this I can > > code it up for you and put it out on the WikiShExamples page. > > This looks like what I'm looking for. It would be very kind > from

Re: [pmwiki-users] summing variables

2008-04-22 Thread Peter &amp; Melodye Bowers
> I have variables like this (:var1:2,5:) (:var2:3,4:) > (:var3:23,78:) ... > (:var35:0,45:). I'd like to know is there an easy way to sum all 35 > variables together? So that I don't need to use for example > {(add {$:var1} > an then all those 35 variables. WikiSh has this capability using a syn

Re: [pmwiki-users] custom markup q.

2008-04-20 Thread Peter &amp; Melodye Bowers
> I'v got a problem with a custom markup. It renders the function > ("MakeCont) instead of executing it it: ... > Rule: > Markup('contentbox', ' '/\\(:contentbox\\s+(.*?)\\s*:\\)(.*?)\\(:contentboxend:\\)/s', > "MakeContentbox(\$pagename, ParseArgs(PSS('$1')))"); I think you need a /e i

Re: [pmwiki-users] LinkCSSToolTip + Pagelist by Title takes long to parse...

2008-04-17 Thread Peter &amp; Melodye Bowers
> > You could create a static pagelist (or static pagelists) > for quick viewing. > > Obviously the problem is if you change a title or delete > or add a page then > > you've got to remember to regenerate the lists. > > I've read and re-read that page. > On one hand it looks interesting, as i

Re: [pmwiki-users] change/delete "HomePage"

2008-04-16 Thread Peter &amp; Melodye Bowers
> redirect does work, but can i hide the line that displays above the page content that says "(redirected from Main.HomePage )"? See http://www.pmwiki.org/wiki/Cookbook/CustomRedirects and also the "Notes" at the bottom and the "See Also"

Re: [pmwiki-users] LinkCSSToolTip + Pagelist by Title takes long to parse...

2008-04-16 Thread Peter &amp; Melodye Bowers
> Very smart, it would seem, but I run into a problem: I need to select > pages by *title* (not name of the page), and it seems that the > pagelist function takes 10 to 20 seconds to parse those 150 pages in > the group, which is far too long as it happens at *every* page load. > Actually, there ar

Re: [pmwiki-users] WikiSh Shopping Cart recipe

2008-04-16 Thread Peter &amp; Melodye Bowers
> Peter & Melodye Bowers wrote: > > Here's a very rough proof-of-concept idea using WikiSh > > 1) The generate form button, which would be the link to the > order page > in a real shop, does not redirect to Shop.Form. How do you > add that? I {(wikish_for

Re: [pmwiki-users] Shopping Cart recipe?

2008-04-15 Thread Peter &amp; Melodye Bowers
> Is there a working shopping cart recipe? Purely proof-of-concept implementation via WikiSh is documented at http://www.pmwiki.org/wiki/Cookbook/WikiShExamples#ShoppingCart -Peter ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmi

Re: [pmwiki-users] Pagelist and whole directory

2008-04-15 Thread Peter &amp; Melodye Bowers
> I am trying to make a pagelist of the pages in a directory/group About > > config.php: $WikiDir = new PageStore('wiki.d/$Group/$Name'); > > How do I make a pagelist that shows all the "About" directory > pmwiki pages I've never put groups in separate directories like this so I may be going in

Re: [pmwiki-users] Subject: link image to obfuscated mailto:

2008-04-15 Thread Peter &amp; Melodye Bowers
> This question below was never answered, but i'm searching for the > same solution. i want to protect email addresses on our wiki from > spam-bots, and i see in the Cookbook the following options: > > Cookbook.Eprotect > Cookbook.ObfuscateEmail > Cook

[pmwiki-users] Security via PmWiki

2008-04-12 Thread Peter &amp; Melodye Bowers
I've got a friend looking for recommendations for secure web forms. He's pretty concerned that the security be pretty high for his company. My only experience in web stuff is PmWiki in the last few months. I believe what he's trying to do from a functional standpoint could be easily done from wi

Re: [pmwiki-users] Categories

2008-04-11 Thread Peter &amp; Melodye Bowers
> I have looked at: http://www.pmwiki.org/wiki/PmWiki/Categories and > many other categories pages. I don't seem to find a way of > displaying [dynamically] the list of the categories in the left > sidebar? In Site.SideBar: (:pagelist group=Category list=normal:) Obviously you can change the pag

Re: [pmwiki-users] Using the cgi-bin directory

2008-04-09 Thread Peter &amp; Melodye Bowers
>But if you are concerned about security, encrypt your password - then >it doesn't matter if others can see it. Just add "?action=crypt" to >the URL of any page on any pmwiki website to get a form to generate an >encrypted version of your password. > >Use encrypted passwords in your config.ph

Re: [pmwiki-users] PopUp from Search Results?

2008-04-07 Thread Peter &amp; Melodye Bowers
> When I get the search results back they are in "camelcode" > form which I > would like to change but The part I really want to change > is to make > those links "popwin" window links also. Right now they open > as a normal > page. Check out http://www.pmwiki.org/wiki/PmWiki/PageListTe

Re: [pmwiki-users] Documentation of built-in forms markup

2008-04-06 Thread Peter &amp; Melodye Bowers
>It happened to me several times that I could not find link to built-in >forms markup at http://www.pmwiki.org/wiki/PmWiki/DocumentationIndex >page. So I edited that page and added link to >http://www.pmwiki.org/wiki/PmWiki/Forms. Later I noticed that there is >another page with almost identica

Re: [pmwiki-users] How to feed MakePageList() with my own list of pages?

2008-04-05 Thread Peter &amp; Melodye Bowers
> and I want (:pagelist:) to use the list I generated as it's starting > point, not to filter results of ListPages() executed in the > PageListSources() step of $PageListFilters - also because one of my > main goals here is speed. This is well out of the areas of pmwiki I've played in before, but

Re: [pmwiki-users] UpdatePage processing markup again

2008-04-03 Thread Peter &amp; Melodye Bowers
> > My problem is in my specific situation I could very easily > end up with a > > race condition where PageA contains an MX that writes to > PageB and PageB > > contains an MX that writes to PageA. > > I think you mean a "recursive condition" as opposed to a "race > condition"? PmWiki normally

Re: [pmwiki-users] index.php question

2008-04-02 Thread Peter &amp; Melodye Bowers
>When you edit index.php is it suppose to make the exact same >edit on pmwiki.php?? If not how to fix it. See http://www.pmwiki.org/wiki/PmWiki/Installation at the bottom in the question/answer as well as http://www.pmwiki.org/wiki/Cookbook/CleanUrls#index_file. If I'm understanding your quest

[pmwiki-users] UpdatePage processing markup again

2008-04-02 Thread Peter &amp; Melodye Bowers
I just discovered that one of the $EditFunctions within UpdatePage() (SaveAttributes() to be specific) calls MarkupToHTML() as part of the process of saving a page. Obviously all markup expressions get processed along with all other markup within MarkupToHTML(). My problem is in my specific situa

Re: [pmwiki-users] Execute & render markup from a php function

2008-04-02 Thread Peter &amp; Melodye Bowers
> I'm looking for a function to execute & render markup. > ie : I would like to run {(plist groups=* -Site*.* > sep=\n)}and get the > result in a variable, .. > > Today, I need to execute 'powertools' markup, but markup > could be anything > else > something like : > > $mymarkup= '{(plist gro

Re: [pmwiki-users] httpvariables & markupexpressions

2008-04-02 Thread Peter &amp; Melodye Bowers
> hi list > I try to use getvars within markup expressions. This seams > not to work: > See: > http://netstreams.org/devel/cms/pmwiki/pmwiki.php?n=Main.WikiSandbox > > Anyone an idea what's the problem here? I'm afraid this may be of limited help -- but at least it may put the information in f

Re: [pmwiki-users] [powertools] questions, ...

2008-03-30 Thread Peter &amp; Melodye Bowers
> > and do we need both LF and CRLF? > > I was running into LF and CRLF problems a few weeks ago and > found a PHP > constant PHP_EOL which I've found to be very helpful. I take back what I said. It appears that PmWiki never (?) puts CRLF into a page (or more specifically never replaces the %

Re: [pmwiki-users] anti-spam multi-page-restore tool

2008-03-30 Thread Peter &amp; Melodye Bowers
> Just because this bugs me a bit... I have trouble imagining > using WikiSh on any site that allows a substantial number of > non-admins to edit pages. I think it's just far too easy for > someone to inadvertently or maliciously exploit WikiSh and > cause serious damage to the site (or server). >

Re: [pmwiki-users] anti-spam multi-page-restore tool

2008-03-30 Thread Peter &amp; Melodye Bowers
>For example -- suppose I'm webmaster for a soccer club and want to be >able to offer team websites to the teams of the club. I create a >GenericTeam group with a couple basic pages to get them started. >Then when the 'SpeedyDemons' want a team site, all I do is go to >the WikiMaster utility,

[pmwiki-users] anti-spam multi-page-restore tool

2008-03-29 Thread Peter &amp; Melodye Bowers
I am envisioning an anti-spam tool to help restore pages after an attack. I'm wondering if someone else has already done something similar. My thought is to specify a starting/ending date/time (a range) and have all pages modified during that time display their text on a single page. Each page

Re: [pmwiki-users] [powertools] questions, ...

2008-03-28 Thread Peter &amp; Melodye Bowers
> and do we need both LF and CRLF? I was running into LF and CRLF problems a few weeks ago and found a PHP constant PHP_EOL which I've found to be very helpful. It takes care of this issue entirely. Just use it in place of "\n" and the code then ports nicely between linux boxes and windows boxes

Re: [pmwiki-users] (:pagelist ...:) returning plain text result like "?action=source" does

2008-03-27 Thread Peter &amp; Melodye Bowers
> > {(wikish pagelist group=Alb name=0100* wrap=inline > fmt=#bygroup | cat > >>GroupA.Foo)} > > is Wikish compatible with both windows & unix ? Yes. WikiSh is a recipe like any other, written in PHP. It uses the usual pmwiki functions to maintain consistency with reading, writing, enforcing a

Re: [pmwiki-users] (:pagelist ...:) returning plain text result like "?action=source" does

2008-03-27 Thread Peter &amp; Melodye Bowers
> > Would like to play with (:pagelist:) but want the result to > > be returned as > > "plain text" like "?action=source" does produce a "pure" > text result. > ... > markup. So unless there's some way to get inside pagelist > itself and convince it to output markup (maybe something with > f

Re: [pmwiki-users] back to an old story : conditional for attachments (fwd)

2008-03-27 Thread Peter &amp; Melodye Bowers
> Try this: add to config file: > > $Conditions['attachexists'] = 'UploadFileExist($pagename, $condparm)'; Hans's solution is now documented in Cookbook/ConditionalMarkupSamples. However, I'm thinking that page may be out of date. Isn't (:if exists ...:) and some of the others part of core now?

Re: [pmwiki-users] (:pagelist ...:) returning plain text result like "?action=source" does

2008-03-27 Thread Peter &amp; Melodye Bowers
> Would like to play with (:pagelist:) but want the result to > be returned as > "plain text" like "?action=source" does produce a "pure" text result. It appears that pagelist outputs straight html rather than an intermediate markup (I'm testing this from the powertools pagelist, but I'm thinkin

[pmwiki-users] Totalcounter freeze

2008-03-27 Thread Peter &amp; Melodye Bowers
I periodically get totalcounter freezing up on me (exceeding the 30 second execution timeout while at line 1136 in totalcounter.php). This seems to happen every couple months (this could be way off - just a gut feel). Getting rid of the wiki.d/totalcounter.stat file solves the problem but also los

Re: [pmwiki-users] Reorganising our PMWiki?

2008-03-24 Thread Peter &amp; Melodye Bowers
> > Is there an easy way of moving pages from one > > group/category to another? Can we just rename the > > files? eg GroupA.Page1 to GroupB.Page1 > > There once was a recipe, which I didn't try myself, for > renaming pages, > which would also do all the links. I believe the recipe you are ref

Re: [pmwiki-users] MatchPagenames() usage

2008-03-23 Thread Peter &amp; Melodye Bowers
> Is this by design or by accident? Why would you ever want 2 inclusive > patterns combined by boolean "and"? I think I answered my own question via pagelist.php and notify.php. It seems that the "and" is used when someone specifies group and name separately. The group inclusion becomes "GroupA

[pmwiki-users] MatchPagenames() usage

2008-03-23 Thread Peter &amp; Melodye Bowers
I just added a comment to the Cookbook/Functions page regarding the MatchPagenames(), but I want to confirm it and then see if it's by design or a bug... Here's the entire entry for MatchPageNames() - my comment is the 2nd paragraph: ===(snip)=== MatchPageNames($list, $patterns) Returns a mat

Re: [pmwiki-users] Error encountered with upgrade to 2.2 beta 65

2008-03-23 Thread Peter &amp; Melodye Bowers
> So suddenly none of my websites can post external links (with > the string > "http://"; anywhere in the page), and hundreds if not > thousands of pages > that have this protocol embedded are suddenly uneditable. Obviously this is a hosting problem and they should fix it, but a workaround is

Re: [pmwiki-users] wiki page creation

2008-03-22 Thread Peter &amp; Melodye Bowers
> Is there an easy way to automatically create a bunch of > wiki pages from a text file, which consists of a list of sections, > and each section shall become a new wiki page? > > The sections are mainly of plain text with some wiki markup, > the beginning of each section is determined by some tex

Re: [pmwiki-users] wiki page creation

2008-03-22 Thread Peter &amp; Melodye Bowers
> Is there an easy way to automatically create a bunch of > wiki pages from a text file, which consists of a list of sections, > and each section shall become a new wiki page? > > The sections are mainly of plain text with some wiki markup, > the beginning of each section is determined by some tex

Re: [pmwiki-users] Validating and appending data from Forms and Displaying

2008-03-21 Thread Peter &amp; Melodye Bowers
>if test ${address} ~= /[EMAIL PROTECTED]/ >then > echo "Yep, looks like an email address" Note that the regex above to validate the email address form is not even close to what it needs to be. If you're going to use it "live" it would need to be significantly more robust... -Peter

Re: [pmwiki-users] Validating and appending data from Forms and Displaying

2008-03-21 Thread Peter &amp; Melodye Bowers
> I would like to create a sign-up sheet for an event. Before moving to > PmWiki I used a perl script for this form with a simple csv file > containing all the allowed emails. I simply recorded the registered > emails in another csv file and dynamically generated a page listing > those registered.

Re: [pmwiki-users] Validating and appending data from Forms and Displaying

2008-03-20 Thread Peter &amp; Melodye Bowers
> I would like to create a sign-up sheet for an event. Before moving to > PmWiki I used a perl script for this form with a simple csv file > containing all the allowed emails. I simply recorded the registered > emails in another csv file and dynamically generated a page listing > those registered.

Re: [pmwiki-users] Putting a Colon in a Definition List?

2008-03-14 Thread Peter &amp; Melodye Bowers
But I'm still curious as to whether one can define entities or not. I tried using the HTML entity: &58; (if your email program parses that in to an actual colon... I wrote "ampersand 58 semicolon") but it merely output the code (i.e. it literally output "&58;") Try putting a pound (hash) symbol

Re: [pmwiki-users] Diff/merge-friendly PageStore format (linebreaks)

2008-03-13 Thread Peter &amp; Melodye Bowers
> > > But a few months ago someone posted a script on this list > > that they used to > > > move page text into text files for shell-tool processing. > > I just took a > > > > This would be interesting as a filter for the diff tool to be at > > least able to compare data. FYI I've put some li

Re: [pmwiki-users] Diff/merge-friendly PageStore format (linebreaks)

2008-03-12 Thread Peter &amp; Melodye Bowers
> > But a few months ago someone posted a script on this list > that they used to > > move page text into text files for shell-tool processing. > I just took a > > This would be interesting as a filter for the diff tool to be at > least able to compare data. Try this: ===(snip - wiki2txt - s

  1   2   >