Re: [pmwiki-users] Bug or feature? Exiting from action=attr without changing passwords clears them up
Only having to enter a password once per session is a feature. For those who make lots of edits, it's essential. The best way to protect your page when you're away from your machine is to log out. (I think that works on the base installation. It certainly does when there is user authentication.) Try adding "? action=logout" to the URL of any page. That should wipe clear your passwords. BTW, logout should happen automatically after enough time as passed. How much time depends on the configuration. Randy On Jan 15, 2008, at 10:37 PM, Steven Benmosh wrote: Seems to me that when I go to a password protected page (of course with the password) with the ?action=attr option, and then leave the page without changing or clearing any of the passwords on display, I can then re-enter the page in edit mode, without having to put in the password again. I tried closing the tab to pmwiki, and then clear the privacy options in firefox, but it was not until I cleared all cookies that I was asked for the edit password again. I assume this glitch is only on the local machine, but I leave my browser on for days at a time, so this is not such a good thing to happen, security wise. Is that the expected behavior, or is it a bug? If the former, is there something I can do, short of clearing all cookies, to turn it off? Thanks. -- Check out my web site - www.words2u.net ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] Bug or feature? Exiting from action=attr without changing passwords clears them up
Seems to me that when I go to a password protected page (of course with the password) with the ?action=attr option, and then leave the page without changing or clearing any of the passwords on display, I can then re-enter the page in edit mode, without having to put in the password again. I tried closing the tab to pmwiki, and then clear the privacy options in firefox, but it was not until I cleared all cookies that I was asked for the edit password again. I assume this glitch is only on the local machine, but I leave my browser on for days at a time, so this is not such a good thing to happen, security wise. Is that the expected behavior, or is it a bug? If the former, is there something I can do, short of clearing all cookies, to turn it off? Thanks. -- Check out my web site - www.words2u.net ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] Different webfeed content
Hello, First a hopefully simple question, but I have no idea where to look for the answer: How do I get linebreaks in feed content? At the moment I have $FeedFmt['rss']['item']['description'] = 'Change summary: ' . '{$LastModifiedSummary}' . 'Page description: ' . '{$Description}'; but would like a double linebreak before "Page Description". Then the main point: Is it possible to mix in one feed the formats of contents? Meaning the "default" should be that the "description" of the feed item is the summary of the lat change, but if the page turned into a feed item is in a certain group (Blogs, or its subgroups), the "description" is the entire text of the wikipage? I've managed separate feeds, depending on the group of the page the action=rss works on, but I can't think of a way to mix it into one feed. Anke ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] fix for attachments with spaces in the name
nevermind... that didn't help as much as I thought it did. Could it be that the site being behind SSL makes a difference (i.e. an https site rather than http)? FG On Jan 15, 2008 3:57 PM, Frank Graffagnino <[EMAIL PROTECTED]> wrote: > I'm using IE version 6.0.2900. > > Setting the following in config.php seems to help: > > $DownloadDisposition = "attachment"; > > That lets the downloads succeed on IE when I click "Save", but > clicking open still has some weird error finding the file in the temp > folder. Weird. But I'll take being able to save over nothing. > > Should the download disposition be attachment rather than inline? > > FG > > > > On Jan 15, 2008 1:58 PM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > > On Tue, Jan 15, 2008 at 01:09:22PM -0600, Frank Graffagnino wrote: > > > I fixed this by editing "scripts/upload.php" and enclosing the > > > filename argument in the "Content-disposition" field to be enclosed in > > > quotes. This seemed to fix the problem. > > > > Excellent suggestion -- I'll make the change. > > > > > Also, I'm still having problems with downloading using Internet > > > Explorer and direct download disabled. Internet Explorer doesn't like > > > something about the way the header is being transmitted. Anyone > > > successfully downloading files using Internet Explorer with direct > > > download off? > > > > What version of IE are you using? Also, IE likes to ignore the > > Content-Type header and make its own choice about what it is receiving. > > For example, IE often displays files containing html tags as HTML, > > even if the Content-Type header says that the file is "text/plain" > > or some other type. > > > > Pm > > > ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] fix for attachments with spaces in the name
I'm using IE version 6.0.2900. Setting the following in config.php seems to help: $DownloadDisposition = "attachment"; That lets the downloads succeed on IE when I click "Save", but clicking open still has some weird error finding the file in the temp folder. Weird. But I'll take being able to save over nothing. Should the download disposition be attachment rather than inline? FG On Jan 15, 2008 1:58 PM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Tue, Jan 15, 2008 at 01:09:22PM -0600, Frank Graffagnino wrote: > > I fixed this by editing "scripts/upload.php" and enclosing the > > filename argument in the "Content-disposition" field to be enclosed in > > quotes. This seemed to fix the problem. > > Excellent suggestion -- I'll make the change. > > > Also, I'm still having problems with downloading using Internet > > Explorer and direct download disabled. Internet Explorer doesn't like > > something about the way the header is being transmitted. Anyone > > successfully downloading files using Internet Explorer with direct > > download off? > > What version of IE are you using? Also, IE likes to ignore the > Content-Type header and make its own choice about what it is receiving. > For example, IE often displays files containing html tags as HTML, > even if the Content-Type header says that the file is "text/plain" > or some other type. > > Pm > ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Include with a Regular Expression
Perfect! Thanks. I have not studied up enough on the power of pagelist, clearly. In particular I'm going to try to improve my grasp of trails, since that looks pretty useful. ...Eric On Jan 15, 2008 11:22 AM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Tue, Jan 15, 2008 at 09:25:34AM -0600, Eric Celeste wrote: > >I'd like to create a recent changes page that only includes a subset > of > >pages in a given group. For example, a set of pages in the group > start > >with the name "Nico-" and another set start with "Hcm-" and I'd like > to > >have two separate RecentChanges pages so that interested parties need > only > >see those changes. > > A list of the pages listed in RecentChanges that start with "Nico-": > >(:pagelist trail=RecentChanges name=Nico-* :) > > With that you can use pagelist templates to display information > about each page however you want. > > Pm > > ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Issue with RSS feeds on password-protected pages
As far as I can tell the rss password is useless unless you first have read access. I invite anyone who knows how to get an rss feed without first having read access to tell how to do it. If you are concerned about people reading the page, you can start the page with (:if false:) and put the following in your config.php: ## Limit source and diff viewing to editors $HandleAuth['source'] ='edit'; $HandleAuth['diff'] ='edit'; I think that will keep the page fairly confidential, even though everyone has read access. Good luck. Randy On Jan 15, 2008, at 1:41 PM, Benoit Dutilleul wrote: > Hello Randy, > > Thanks to your message. Indeed, immediately after your first > message, I set the page read attribute to @nopass and make it work. > Yet, I would appreciate to know if there is a way to authorize only > RSS feeds and no browsing of the page or "secured" RSS with a > password. > > Let me know if you have any idea. Kind regards, > > Benoit > > ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] ImportText not working as supposed
Patrick, have you had a chance to take a look at this problem? Anno ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] fix for attachments with spaces in the name
On Tue, Jan 15, 2008 at 01:09:22PM -0600, Frank Graffagnino wrote: > I fixed this by editing "scripts/upload.php" and enclosing the > filename argument in the "Content-disposition" field to be enclosed in > quotes. This seemed to fix the problem. Excellent suggestion -- I'll make the change. > Also, I'm still having problems with downloading using Internet > Explorer and direct download disabled. Internet Explorer doesn't like > something about the way the header is being transmitted. Anyone > successfully downloading files using Internet Explorer with direct > download off? What version of IE are you using? Also, IE likes to ignore the Content-Type header and make its own choice about what it is receiving. For example, IE often displays files containing html tags as HTML, even if the Content-Type header says that the file is "text/plain" or some other type. Pm ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Issue with RSS feeds on password-protected pages
Hello Randy, Thanks to your message. Indeed, immediately after your first message, I set the page read attribute to @nopass and make it work. Yet, I would appreciate to know if there is a way to authorize only RSS feeds and no browsing of the page or "secured" RSS with a password. Let me know if you have any idea. Kind regards, Benoit 2008/1/14, Randy <[EMAIL PROTECTED]>: > > Actually, I take it back. The WebFeeds page does say: > > Lastly, it's also possible to configure the webfeeds to obtain the > authentication information from the url directly, as in: > > .../Site/AllRecentChanges?action=rss&authpw=secret > > > So I checked you URL again, and this time it seems to work. > > Now I'm as dazed and confused as Dave! If you did something to fix it, let > us know what it was. > > Randy > > > > -- Wanderer, your footsteps are the road, and nothing more; wanderer, there is no road, the road is made by walking. By walking one makes the road, and upon glancing behind one sees the path that never will be trod again. Wanderer, there is no road-- Only wakes upon the sea. -- Antonio Machado ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] My wiki, she is kaput
>>> "David Spitzley" <[EMAIL PROTECTED]> 1/15/2008 1:42 PM >>> If I insert the print statement anywhere within that loop (aside from within if statements that evaluate as false), it prints the alert and halts as expected. If I insert the print statement after the loop, the page hangs. My first thought was that the hang might be a failure to terminate the foreach loop, so here's the print_r() dump of $InterMapFiles: Array ( [0] => D:\wwwsites\davidaspitzleyorg\www\Test/scripts/intermap.txt [1] => D:\wwwsites\davidaspitzleyorg\www\Test/local/farmmap.txt [2] => $SiteGroup.InterMap [3] => local/localmap.txt ) -- Here's some further information: by making the print statement conditional, I have determined that the loop is able to iterate through [0] and [1], but never makes it to [2], so the non-existence of farmmap.txt may be at fault. David ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] fix for attachments with spaces in the name
I'm using pmwiki-2.2.0-beta45, and noticed when downloading attachments that have spaces in the name, the document would download, but the header would not send down the entire name of the file (only up to the first space). This resulted in firefox showing the file download/save as dialog, but the name of the file was lost after the first space. Not sure if it makes a different, but I have direct download disabled. I fixed this by editing "scripts/upload.php" and enclosing the filename argument in the "Content-disposition" field to be enclosed in quotes. This seemed to fix the problem. I changed: header("Content-disposition: $DownloadDisposition; filename=$upname"); to: header("Content-disposition: $DownloadDisposition; filename=\"$upname\""); Just a heads up. I think this will be a good change to make. Also, I'm still having problems with downloading using Internet Explorer and direct download disabled. Internet Explorer doesn't like something about the way the header is being transmitted. Anyone successfully downloading files using Internet Explorer with direct download off? FG ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] My wiki, she is kaput
>>> "Patrick R. Michaud" <[EMAIL PROTECTED]> 1/11/2008 11:18 PM >>> On your fresh install, you might try inserting the line print("Got here!\n"); exit(); at various places between lines 325 and 357, to see which part of the code is causing the failure. Then we can track it down more precisely. - Very interesting. I did just as you suggested, and pmwiki.php appears to hang just after the termination of the loop beginning on line 325, foreach((array)$InterMapFiles as $f) If I insert the print statement anywhere within that loop (aside from within if statements that evaluate as false), it prints the alert and halts as expected. If I insert the print statement after the loop, the page hangs. My first thought was that the hang might be a failure to terminate the foreach loop, so here's the print_r() dump of $InterMapFiles: Array ( [0] => D:\wwwsites\davidaspitzleyorg\www\Test/scripts/intermap.txt [1] => D:\wwwsites\davidaspitzleyorg\www\Test/local/farmmap.txt [2] => $SiteGroup.InterMap [3] => local/localmap.txt ) Since this is a default install, neither farmmap.txt nor localmap.txt exist, but there is a PmWiki.InterMap in the wikilib.d directory. Any suggestions of where to look next? David ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] 'Draft' mode?
Steven Benmosh wrote: > There is a nice feature in wordpress, which is draft mode - it lets you > work on the page until you are ready, and then you select publish to > expose it to the world, or private which does something else, not sure > what... PmWiki has this feature too, but its new and not yet well-documented. You can start reading about it here: http://www.pmwiki.org/wiki/PmWiki/Drafts ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] 'Draft' mode?
I am working on a wiki site (gps.words2u.net) and a blog site ( blog.words2u.net). The blog is made with wordpress, the wiki is, of course, pmwiki. There is a nice feature in wordpress, which is draft mode - it lets you work on the page until you are ready, and then you select publish to expose it to the world, or private which does something else, not sure what... Is there such a feature in pmwiki? I know I can do it by creating the page without a link, but since I am (or plan to be) using a pagelist command to show all pages in the groups, it will be exposed there anyway. I can of course set a read password, and there is somewhere a setting that hides pages that require read password, but that is quite awkward to do. If there is no such feature, maybe we should consider it as a new feature. At least this is one newbie's opinion. Thanks, Z. -- Check out my web site - www.words2u.net ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Include with a Regular Expression
On Tue, Jan 15, 2008 at 09:25:34AM -0600, Eric Celeste wrote: >I'd like to create a recent changes page that only includes a subset of >pages in a given group. For example, a set of pages in the group start >with the name "Nico-" and another set start with "Hcm-" and I'd like to >have two separate RecentChanges pages so that interested parties need only >see those changes. A list of the pages listed in RecentChanges that start with "Nico-": (:pagelist trail=RecentChanges name=Nico-* :) With that you can use pagelist templates to display information about each page however you want. Pm ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Include with a Regular Expression
On Tue, Jan 15, 2008 at 10:41:05AM -0600, Eric Celeste wrote: >I don't think I can use pagelist since it has no concept of which pages >have recently changed and which have not. Sure it does. You can do: (:pagelist name=Nico-* order=-time fmt=#include count=10:) to display the contents of the ten most recently changed pages that begin with 'Nico-'. You may also be able to do something using (:pagelist trail=RecentChanges fmt=#include count=10:) which displays the contents of the ten most recently changed pages. Even more complex includes are possible by changing the fmt=... parameter to specify a different pagelist template. But I expect (based on what you've said so far) that some combination of pagelist, pagelist templates, and include statements should be able to do exactly what you want. Pm ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Include with a Regular Expression
Eric Celeste wrote: > I don't think I can use pagelist since it has no concept of which pages > have recently changed and which have not. > > I was going to use something like... > > (:include RecentChagnes regex="Nico-":) > > (oversimplified and nonexistent, but this is just an example) to pull > only lines from the RecentChanges page that are pertinent in order to > create a new page with just that subset of the recent changes. There really isn't a good way to extract subsections of a page the way you are thinking. Even if there was, you'd need a much more complex regex as you'd want to end up grabbing the entire line containing a given reference, not just the matching text, and you'd need to ensure you didn't include a change to the wrong page, just because the summary of the change mentioned some other page. What most folks do in circumstances like this is to put some code in their config.php file to change which pages get change-summaries written to. Something like this: $page = PageVar($pagename, '$FullName'); if( preg_match('/^SomeGroup.Nico-/', $page) ) $RecentChangesFmt['SomeGroup.RecentChanges-Nico'] = '* [[{$Group}.{$Name}]] . . . $CurrentTime [=$ChangeSummary=]'; Then you simply use the contents of RecentChanges-Nico when you want those specific pages. ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] LDAP and Group Authentication
On Sat, January 12, 2008 8:34 pm, Gary Spivey wrote: > Attached is a limited file that should give you what you need - it is an > ldif dump on a few people and groups and the ldif headings and such. > > In ExternAuth, I look for session variables that have been set > ($authenticated, $username, and @groups) and then I use these as part of > the page authentication. > > One nice feature in the attributes page is that I have each group listed > as a checkbox - makes adding groups easier. > Hello, I was looking into your externauth.php, but could not find any reference to ldap. Is there any further code somewhere you have in use? Thomas ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Include with a Regular Expression
I don't think I can use pagelist since it has no concept of which pages have recently changed and which have not. I was going to use something like... (:include RecentChagnes regex="Nico-":) (oversimplified and nonexistent, but this is just an example) to pull only lines from the RecentChanges page that are pertinent in order to create a new page with just that subset of the recent changes. If there is not a way to do this I might try writing my own directive similar to include to get the job done. Before I go to that effort, though, I thought I'd see if anyone had done this or had another idea how to pull a subset of recent changes. ...Eric ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
On Jan 15, 2008 4:47 PM, Steve Glover <[EMAIL PROTECTED]> wrote: > When I don't have your snippet in my config.php, the following URL: > > > http://www.ukfederation.org.uk/content/News/RecentChanges?action=rss&group=News&name=2*&order=-name&count=1 > > gives me: > > http://purl.org/dc/elements/1.1/";> > > UK Federation Information Centre | News / RecentChanges > http://www.ukfederation.org.uk/content/News/RecentChanges?action=rss > > News.RecentChanges > Mon, 14 Jan 2008 11:00:58 GMT > > News / 2008-01-14-Re-use-of-persistent-identifiers > > http://www.ukfederation.org.uk/content/News/2008-01-14-Re-use-of-persistent-identifiers > > (:if false:) > Title: Re-use of Persistent Identifiers > More: read more... > > [[#entrybody]] > The UK Access Management Federation for Education and Research ('the > federation') provides a mechanism for Service Providers to manage the > risk of unauthorised disclosure of their content and of any information > which they store about their users. > > [[#extendedbody]] > The federation's "user accountability" provisions (to which the majority > of identity providers already subscribe) require every conforming > Identity Provider > SteveGlover > 2008-01-14T11:00:58Z > Mon, 14 Jan 2008 11:00:58 GMT > > > > It looks that some recipe changes default feeds behaviour because by default, feed item description is filled by page description, not by page markup. Try to comment out some recipes and compare results. > > With your snippet, the same URL give me: > > http://purl.org/dc/elements/1.1/";> > > UK Federation Information Centre | News / RecentChanges > http://www.ukfederation.org.uk/content/News/RecentChanges?action=rss > > News.RecentChanges > Mon, 14 Jan 2008 11:00:58 GMT > > News / 2008-01-14-Re-use-of-persistent-identifiers > > http://www.ukfederation.org.uk/content/News/2008-01-14-Re-use-of-persistent-identifiers > > > SteveGlover > 2008-01-14T11:00:58Z > Mon, 14 Jan 2008 11:00:58 GMT > > > > > Ah (again). I've just noticed that the source above contains > "", which isn't visible directly in the browser > > is correct, it says that text inside CDATA will be ignored (not parsed by XML parser), but rendered by browsers that support RSS (FF 2, IE 7). But in your case there is nothing inside, so you don't see anything. I don't use most of your cookbook recipes, so you have to try it yourself. Roman ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
On Jan 15, 2008 3:09 PM, Brent Zupp <[EMAIL PROTECTED]> wrote: > Thanks Roman! I don't know how that works, but your code appears to > pull in a snippet of content into the rss description--wonderful! A > lot better than what I had before. Thanks for sharing that. > > Elements in FeedFmt array can also be callable functions in form: function FunctionName($pagename, &$page, $tag) { return "<$tag>some output"; In my example page content (wiki markup) is converted to HTML and then surrounded by according to RSS requirements. ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Include with a Regular Expression
Eric Celeste wrote: > I'd like to create a recent changes page that only includes a subset of > pages in a given group. For example, a set of pages in the group start > with the name "Nico-" and another set start with "Hcm-" and I'd like to > have two separate RecentChanges pages so that interested parties need > only see those changes. > > I am wondering if there is any version of the "(:include:)" directive > that understands regular expressions? I didn't see a cookbook to this > effect, but I imagine someone may have run into a need like this before. > If I could just include lines that match a certain pattern, then the > task of building a limited RecentChanges page would be pretty simple. > > Of course, maybe there is a better way of approaching the problem > altogether! > Its not clear how you are planning to use (:include...:) directives to create the RecentChanges pages you want, but you can probably do it by using a (:pagelist...:) command (which can accept wildcards or, with a bit of work, regular expressions) and have the (:include:) directive appear in the display template for the pagelist. ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] Include with a Regular Expression
I'd like to create a recent changes page that only includes a subset of pages in a given group. For example, a set of pages in the group start with the name "Nico-" and another set start with "Hcm-" and I'd like to have two separate RecentChanges pages so that interested parties need only see those changes. I am wondering if there is any version of the "(:include:)" directive that understands regular expressions? I didn't see a cookbook to this effect, but I imagine someone may have run into a need like this before. If I could just include lines that match a certain pattern, then the task of building a limited RecentChanges page would be pretty simple. Of course, maybe there is a better way of approaching the problem altogether! Thanks, ...Eric ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Interacting with MySQL
Rick Cook wrote: > Actually, the table does have an auto-incrementing integer key field. It also > has another field that I am requiring to be a unique email address for each > row of the table. I am actually trying to use the SelectQuery to pick out the > appropriate integer key field if there is a record that already has the email > address entered on the beginning page. Ah, I see. It sounds like an (:update select:) might meet your needs as well as or better than a SelectQuery... it would certainly take up less space on your pages! Just make sure to put it in a method=get form: (:input form method=get action=FormPage:) Edit an existing record: (:update select ContactID from=TableName label=Email null="Create a new record":) (:input submit:) (:input end:) > Any suggestions about how to "not specify" the key value for the case when > the > key value doesn't exist and also specify it when it does? The (`ContactID`) Sure, that's what the null parameter in the update tag above should do -- when the null row is selected, no value is submitted for the ContactID. To do the same thing with SelectQuery, just put a link before or after the list saying, Don't see the email address you're looking for? [[Create a new record -> FormPage]] By "specify," I mean that there's a ?ContactID=XXX in the URL when you go to the page. So the links generated by SelectQuery specify the ContactID, and pretty much any other link you care to create will not specify it. > If I could figure out how to make DataQuery provide the desired > functionality, > DataQuery would be fine with me. Now that I know what you're doing, DataQuery is not a good fit. If you were using the unique field as the primary key, DataQuery would be perfect, but you can't really do that with email addresses... you'd have to either have a calculated field that gets rid of their dots, or use a search form to find the records that match a given address. It sounds like you're better off sticking with UpdateForm on this one. Hope this helps! --Ben S. ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Line chars converted
Many thanks to Petko and all the other responders. Adding include_once($FarmD.'/scripts/xlpage-utf-8.php'); To my config.php fixed it immediately. >Why don't you use just this: >D: >* Apps >** Extract >** Presentation >* Data >** App_Data >... >It will achieve almost perfectly what you want: display a structure of entries. Agreed. This was more a curiosity. (Why does it so *that*?) The source text was the output, as I failed to mention in my original post, from the Tree command in windows. Cheers Dave ** This email is sent for and on behalf of European Metal Recycling Limited ** European Metal Recycling Limited is a company, registered in England and Wales, registered number 2954623, registered office Sirius House, Delta Crescent, Westbrook, Warrington, WA5 7NS, United Kingdom. Confidentiality: This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that Internet email is not a 100% secure communications medium. We advise that you understand and accept this lack of security when emailing us. This footnote also confirms that this email message has been swept for the presence of computer viruses. European Metal Recycling Ltd accepts no responsibility for information, errors or omissions in this e-mail nor for its use or misuse nor for any act committed or omitted in connection with this communication. If you have received this email in error please notify the Technical Support helpdesk immediately by Telephone on +44 (0)1925 71. www.emrltd.com ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
Thanks Roman! I don't know how that works, but your code appears to pull in a snippet of content into the rss description--wonderful! A lot better than what I had before. Thanks for sharing that. Best, Brent On Jan 15, 2008 4:00 AM, Roman <[EMAIL PROTECTED]> wrote: > Here is a snippet from my config: > > $FeedFmt['rss']['item']['description'] = 'FeedText'; > > function FeedText($pagename, &$page, $tag) { > $p = ReadPage($pagename); > $content = MarkupToHTML($pagename, $p['text']); > return "<$tag>"; > } > > Roman > > > > On Jan 12, 2008 6:53 PM, Brent Zupp <[EMAIL PROTECTED] > wrote: > > > > > > > > I'd like to include the text between [[#start]] and [[#end]] anchor > > links I have on my pages for each item in my RSS feed. > > > > I poked around the documentaion and found: > > > > $FeedFmt['rss']['item']['description'] = '$LastModifiedSummary'; > > > > Can I substitute some form of the (:include:) directive for > > $LastModifiedSummary ? > > > > I did some experiments and I couldn't get it to work. > > > > Best, > > -- > > Brent Zupp > > http://www.wanderings.net/ > > > > There is a very fine line between "hobby" and "mental illness." > > ~ Dave Barry > > > > ___ > > pmwiki-users mailing list > > pmwiki-users@pmichaud.com > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > > > > > ___ > pmwiki-users mailing list > pmwiki-users@pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > > -- Brent Zupp http://www.wanderings.net/ There is a very fine line between "hobby" and "mental illness." ~ Dave Barry ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Line chars converted
Dave Jackson wrote: > Hello > > I'm documenting a process and I'd like to include the following mark-up: > > > The folder structure is as follows > > [= > D:. > ├───Apps > │ ├───Extract > │ └───Presentation > ├───Data > │ ├───App_Data > │ ├───Delta_Data > │ ├───External_Data > │ └───Raw_Data > ├───LogArchive > │ ├───2007 > │ │ └───12 > │ │ ├───01 > │ │ ├───02 > > │ └───2008 > │ └───01 > │ ├───01 > > │ └───14 > └───OverNightScripts > > =] > > > When I save the page it transposes the chars into > > > D:. > „¥„Ÿ„Ÿ„ŸApps > „„¥„Ÿ„Ÿ„ŸExtract > „„¤„Ÿ„Ÿ„ŸPresentation > „¥„Ÿ„Ÿ„ŸData > „„¥„Ÿ„Ÿ„ŸApp_Data > „„¥„Ÿ„Ÿ„ŸDelta_Data > „„¥„Ÿ„Ÿ„ŸExternal_Data > „„¤„Ÿ„Ÿ„ŸRaw_Data > „¥„Ÿ„Ÿ„ŸLogArchive > „„¥„Ÿ„Ÿ„Ÿ2007 > „„„¤„Ÿ„Ÿ„Ÿ12 > „„„¥„Ÿ„Ÿ„Ÿ01 > „„„¥„Ÿ„Ÿ„Ÿ02 > > „„¤„Ÿ„Ÿ„Ÿ2008 > „„¤„Ÿ„Ÿ„Ÿ01 > „„¥„Ÿ„Ÿ„Ÿ01 > > „„¤„Ÿ„Ÿ„Ÿ14 > „¤„Ÿ„Ÿ„ŸOverNightScripts > > > (I hope these come out OK). > > I'm running pmwiki-2.1.5 > > I have tried this in the sandbox on pmwiki.org and I get the same effect. > Any ideas? > > Dave Jackson > These characters are clearly not in your character set, which is causing your problems. You can either change to a character set which has them (which pretty-much would have to be UTF-8), or you can use the HTML entity encodings for these symbols, so that your browser knows exactly which characters you are trying to use, regardless of character set. I have a page on my personal PmWiki where I explain which codes to use for what. You can check it out here: http://sti.pooq.com/Tech/UnicodeLineDrawing This will work in any character set, but has the drawback of being much more fussy to work with than just the raw characters. ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Line chars converted
On Tuesday 15 January 2008 12:11:32 Dave Jackson wrote: > I'm documenting a process and I'd like to include the following mark-up: > [= > D:. > ├───Apps > │ ├───Extract > > When I save the page it transposes the chars into > D:. > „¥„Ÿ„Ÿ„ŸApps Hi. You are trying to enter Unicode characters which don't exist in the default iso8859-1 PmWiki codepage. These characters get translated to what your browser thinks it should. To enable all Unicode characters, you can change your wiki's encoding to UTF-8. See: http://pmwiki.org/wiki/Cookbook/UTF-8 and a demonstration: http://galleries.accent.bg/Main/WikiSandbox (this site is with UTF-8 enabled) If your site is English language only, there will be no problem at all. If you have other alphabets like Cyrillic, or Roman extended/accentuated characters like in French, don't do this. Why don't you use just this: D: * Apps ** Extract ** Presentation * Data ** App_Data ... It will achieve almost perfectly what you want: display a structure of entries. Good luck, Petko ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] Less noticable spam prevention
You could do a few simple tests to detect how spammy a wiki edit is and only require the user to enter a captcha if the edit smells spammy. The wordpress plugin "Spam Karma" uses this approach and has been very successful at stopping spam on my blog. ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] PmWiki and Spam
Even if the site should remain as open as possible for editing, IMHO some areas could merely be kept password protected for edition. Therefore, I've defined an edit password for the PITS group. BTW, this could also be documented in a kind of "how-to fight against spam" tutorial for pmwiki. -- Dominique ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
I have just tried it on clean installation and verified with RecentChanges RSS feed and it works as it should (description filled with page content). What was your configuration before, when description contained PmWiki markup? Roman On Jan 15, 2008 1:10 PM, Steve Glover <[EMAIL PROTECTED]> wrote: > On Tue, 2008-01-15 at 13:00 +0100, Roman wrote: > > Here is a snippet from my config: > > > > $FeedFmt['rss']['item']['description'] = 'FeedText'; > > > > function FeedText($pagename, &$page, $tag) { > > $p = ReadPage($pagename); > > $content = MarkupToHTML($pagename, $p['text']); > > return "<$tag>"; > > } > > I'm trying to get rid of PmWiki markup appearing in the RSS feed from my > News.RecentChanges page, but when I use the above (I assume it's meant > to be in my local/config.php), I just get empty tags in > the feed - which at least eliminates users' complaints about the "odd" > mark-up, but doesn't quite do what I'd like it to. > > Has anyone else had this problem, please? > > Thanks > > Steve > > > -- > Steve Glover at email: [EMAIL PROTECTED] > SDSS, EDINA, University of Edinburgh, tel: +44 (0)131-650 2908 > Causewayside House, 160 Causewayside, fax: +44 (0)131-650 3308 > Edinburgh EH9 1PR mobile: +44 (0) 7961 446 902 > > ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Line chars converted
I have utf-8 enabled at my site, and it works better: http://www.fungifun.org/WikiSandbox See http://www.pmwiki.org/wiki/PmWiki/UTF-8 Anno ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
On Tue, 2008-01-15 at 13:00 +0100, Roman wrote: > Here is a snippet from my config: > > $FeedFmt['rss']['item']['description'] = 'FeedText'; > > function FeedText($pagename, &$page, $tag) { > $p = ReadPage($pagename); > $content = MarkupToHTML($pagename, $p['text']); > return "<$tag>"; > } I'm trying to get rid of PmWiki markup appearing in the RSS feed from my News.RecentChanges page, but when I use the above (I assume it's meant to be in my local/config.php), I just get empty tags in the feed - which at least eliminates users' complaints about the "odd" mark-up, but doesn't quite do what I'd like it to. Has anyone else had this problem, please? Thanks Steve -- Steve Glover at email: [EMAIL PROTECTED] SDSS, EDINA, University of Edinburgh, tel: +44 (0)131-650 2908 Causewayside House, 160 Causewayside, fax: +44 (0)131-650 3308 Edinburgh EH9 1PR mobile: +44 (0) 7961 446 902 ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Line chars converted (Dave Jackson)
I suspected as much, The chars in the example I tried to post got transposed. I've put a screenshot of my problem up at http://glossopian.co.uk/pmwiki.php?n=Main.TestMarkup Dave Jackson ** This email is sent for and on behalf of European Metal Recycling Limited ** European Metal Recycling Limited is a company, registered in England and Wales, registered number 2954623, registered office Sirius House, Delta Crescent, Westbrook, Warrington, WA5 7NS, United Kingdom. Confidentiality: This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that Internet email is not a 100% secure communications medium. We advise that you understand and accept this lack of security when emailing us. This footnote also confirms that this email message has been swept for the presence of computer viruses. European Metal Recycling Ltd accepts no responsibility for information, errors or omissions in this e-mail nor for its use or misuse nor for any act committed or omitted in connection with this communication. If you have received this email in error please notify the Technical Support helpdesk immediately by Telephone on +44 (0)1925 71. www.emrltd.com ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Create RSS description using (:include:) ?
Here is a snippet from my config: $FeedFmt['rss']['item']['description'] = 'FeedText'; function FeedText($pagename, &$page, $tag) { $p = ReadPage($pagename); $content = MarkupToHTML($pagename, $p['text']); return "<$tag>"; } Roman On Jan 12, 2008 6:53 PM, Brent Zupp <[EMAIL PROTECTED]> wrote: > I'd like to include the text between [[#start]] and [[#end]] anchor > links I have on my pages for each item in my RSS feed. > > I poked around the documentaion and found: > > $FeedFmt['rss']['item']['description'] = '$LastModifiedSummary'; > > Can I substitute some form of the (:include:) directive for > $LastModifiedSummary ? > > I did some experiments and I couldn't get it to work. > > Best, > -- > Brent Zupp > http://www.wanderings.net/ > > There is a very fine line between "hobby" and "mental illness." > ~ Dave Barry > > ___ > pmwiki-users mailing list > pmwiki-users@pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] PmWiki and Spam
Patrick R. Michaud wrote: >> use the same text text as summary and id. > > What if the resulting block message said "summary and author name > cannot be identical"? Please Patrick, do something, and do it now! Look at the recent changes, your site is going to shit Anno ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
[pmwiki-users] Line chars converted
Hello I'm documenting a process and I'd like to include the following mark-up: The folder structure is as follows [= D:. ├───Apps │ ├───Extract │ └───Presentation ├───Data │ ├───App_Data │ ├───Delta_Data │ ├───External_Data │ └───Raw_Data ├───LogArchive │ ├───2007 │ │ └───12 │ │ ├───01 │ │ ├───02 │ └───2008 │ └───01 │ ├───01 │ └───14 └───OverNightScripts =] When I save the page it transposes the chars into D:. „¥„Ÿ„Ÿ„ŸApps „„¥„Ÿ„Ÿ„ŸExtract „„¤„Ÿ„Ÿ„ŸPresentation „¥„Ÿ„Ÿ„ŸData „„¥„Ÿ„Ÿ„ŸApp_Data „„¥„Ÿ„Ÿ„ŸDelta_Data „„¥„Ÿ„Ÿ„ŸExternal_Data „„¤„Ÿ„Ÿ„ŸRaw_Data „¥„Ÿ„Ÿ„ŸLogArchive „„¥„Ÿ„Ÿ„Ÿ2007 „„„¤„Ÿ„Ÿ„Ÿ12 „„„¥„Ÿ„Ÿ„Ÿ01 „„„¥„Ÿ„Ÿ„Ÿ02 „„¤„Ÿ„Ÿ„Ÿ2008 „„¤„Ÿ„Ÿ„Ÿ01 „„¥„Ÿ„Ÿ„Ÿ01 „„¤„Ÿ„Ÿ„Ÿ14 „¤„Ÿ„Ÿ„ŸOverNightScripts (I hope these come out OK). I'm running pmwiki-2.1.5 I have tried this in the sandbox on pmwiki.org and I get the same effect. Any ideas? Dave Jackson ** This email is sent for and on behalf of European Metal Recycling Limited ** European Metal Recycling Limited is a company, registered in England and Wales, registered number 2954623, registered office Sirius House, Delta Crescent, Westbrook, Warrington, WA5 7NS, United Kingdom. Confidentiality: This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that Internet email is not a 100% secure communications medium. We advise that you understand and accept this lack of security when emailing us. This footnote also confirms that this email message has been swept for the presence of computer viruses. European Metal Recycling Ltd accepts no responsibility for information, errors or omissions in this e-mail nor for its use or misuse nor for any act committed or omitted in connection with this communication. If you have received this email in error please notify the Technical Support helpdesk immediately by Telephone on +44 (0)1925 71. www.emrltd.com ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Your bug fix for $EnablePageListProtect
The problem still exists ... I've set up pmwiki with the latest 2.2.0beta I've substitute the AuthUserLDAP function to one, which works with our NovellDS. I've copied the old config.php into the new wiki. (This is my first upgrade session. I'll hope copying the old config.php isn't a fault ...) I've set $enablePageListProtect=1 I've created a Site in a WikiGroup named "Test.Bike" I've set the DefaultPassword for "read" in the Test.php Results of search for Bike: Test / Bike :-( Who can help? Did I make a mistake? Matthias ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users