From dominique.faure at gmail.com Fri Dec 1 01:16:43 2006 From: dominique.faure at gmail.com (Dominique Faure) Date: Fri, 1 Dec 2006 08:16:43 +0100 Subject: [pmwiki-users] Announcement: OptionMenu recipe Message-ID: <599dbcaf0611302316h7f4a6d46u3f4564b10874a546@mail.gmail.com> Hi, I just added the (previously unreleased) recipe OptionMenu to the master Cookbook. This recipe provides an extra output formating option to the pagelist directive consisting of an option menu of selected pages, as you may have already encountered navigating multipage articles on some news/magazine sites. Patrick, could you please enable it on pmwiki.org (at least, on it's own page)? thanks. Dom From Flori-Fischer at gmx.net Fri Dec 1 02:23:22 2006 From: Flori-Fischer at gmx.net (Florian Fischer) Date: Fri, 01 Dec 2006 09:23:22 +0100 Subject: [pmwiki-users] drafts question. How to grant publish rights? Message-ID: <20061201082322.257430@gmx.net> Hello, at the moment i'm struggling through my drafts-configuration. Untill now i had users who where only allowed to save drafts and these drafts where published by the admin. At the moment i'm having the following configuration: Since i use it only in one group i use a group.php file with the content: References: <456EC964.8000503@manor-farm.org> Message-ID: >$GUIButtonDirUrlFmt = "/var/lib/pmwiki/pub/guiedit"; This should be a URL, like http://..... From lists at manor-farm.org Fri Dec 1 04:33:23 2006 From: lists at manor-farm.org (Ian Barton) Date: Fri, 01 Dec 2006 10:33:23 +0000 Subject: [pmwiki-users] No GUIButtons In-Reply-To: References: <456EC964.8000503@manor-farm.org> Message-ID: <457004F3.6070103@manor-farm.org> Anno wrote: > >$GUIButtonDirUrlFmt = "/var/lib/pmwiki/pub/guiedit"; > > This should be a URL, like http://..... Thanks, I have changed it, but it didn't fix the problem. Inspecting the generated page source I can see the problem: The url of guiedit.js should be: http://www.banter.local/estate/pub/guiedit/guiedit.js Where does pmwiki find the url for java script files? I thought it might be a skin problem, but it still happens with the default skin. In my local/config.php I have $ScriptUrl = 'http://www.banter.local/estate'; $PubDirUrl = 'http://www.banter.local/estate/pub'; Ian. From nicholas_buttle at yahoo.com Fri Dec 1 06:08:30 2006 From: nicholas_buttle at yahoo.com (Nicholas Buttle) Date: Fri, 1 Dec 2006 04:08:30 -0800 (PST) Subject: [pmwiki-users] image based menus not working. (attached images) Message-ID: <20061201120830.85435.qmail@web31011.mail.mud.yahoo.com> Hi Can anyone explain the two screenshots? The first is when the page is first loaded and the test rollover image files don't show. The second is when I click on 'edit' and hey presto the images show in the sidebar. If anyone can help... TIA Nicholas ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture-3.jpg Type: image/jpeg Size: 22934 bytes Desc: 3359619164-Picture-3.jpg Url : /pipermail/pmwiki-users/attachments/20061201/ee1fc69c/attachment.jpg -------------- next part -------------- A non-text attachment was scrubbed... Name: Picture-4.jpg Type: image/jpeg Size: 42318 bytes Desc: 2796135481-Picture-4.jpg Url : /pipermail/pmwiki-users/attachments/20061201/ee1fc69c/attachment-0001.jpg From lists at manor-farm.org Fri Dec 1 06:58:21 2006 From: lists at manor-farm.org (Ian Barton) Date: Fri, 01 Dec 2006 12:58:21 +0000 Subject: [pmwiki-users] No GUIButtons In-Reply-To: <457004F3.6070103@manor-farm.org> References: <456EC964.8000503@manor-farm.org> <457004F3.6070103@manor-farm.org> Message-ID: <457026ED.9030807@manor-farm.org> > Anno wrote: >> >$GUIButtonDirUrlFmt = "/var/lib/pmwiki/pub/guiedit"; >> >> This should be a URL, like http://..... > Thanks, I have changed it, but it didn't fix the problem. Inspecting the > generated page source I can see the problem: > > href='http://www.banter.local/estate/pub/skins/monobook/monobook.css' /> > > > The url of guiedit.js should be: > http://www.banter.local/estate/pub/guiedit/guiedit.js > > Where does pmwiki find the url for java script files? I thought it might > be a skin problem, but it still happens with the default skin. > > In my local/config.php I have > > $ScriptUrl = 'http://www.banter.local/estate'; > $PubDirUrl = 'http://www.banter.local/estate/pub'; > OK fixed it now. For the record I had to explicitly set my $FarmPubDirUrl in local/config.php. Ian. From connard at dsg-inc.com Fri Dec 1 07:05:54 2006 From: connard at dsg-inc.com (Scott Connard) Date: Fri, 1 Dec 2006 08:05:54 -0500 Subject: [pmwiki-users] drafts question. How to grant publish rights? Message-ID: Florian wrote; > at the moment i'm struggling through my drafts-configuration. > Untill now i had users who where only allowed to save drafts and > these drafts where published by the admin. At the moment i'm having > the following configuration: Since i use it only in one group i use > a group.php file with the content: > > # turn on draft edits > $EnableDrafts = 1; > # use special edit form with button swapping > $PageEditForm = 'Group.EditForm'; > # create a publish password for Drafts > $DefaultPasswords['publish'] = crypt('publish'); > $AuthCascade['publish'] = 'edit'; > $PageAttributes['passwdpublish'] = '$[Set new publish password:]'; > > No i want to introduce another userlayer, people responsable for > publishing drafts but no admin. I'm using Userauth. I tried to > grant publish rights by publish_group-Group or publish, but since > publish isn't an action itself (At least i think so ;-)) this > doesn't work. > > Any ideas how to grant publish rights? I use AuthUser and this is all I had to use to add a "publish" action. Anybody in the @publisher group has publishing permission but not admin permission. Unfortunately, I am not user UserAuth, so I'm not sure what changes are necessary for that recipe. $HandleAuth['publish'] = 'publish'; $DefaultPasswords['publish'] = '@publisher'; $AuthCascade['publish'] = 'edit'; $PageAttributes['passwdpublish'] = '$[Set new publish password:]'; Scott Connard. -------------- next part -------------- An HTML attachment was scrubbed... URL: /pipermail/pmwiki-users/attachments/20061201/cbb87425/attachment.html From pmichaud at pobox.com Fri Dec 1 07:47:41 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Fri, 1 Dec 2006 07:47:41 -0600 Subject: [pmwiki-users] No GUIButtons In-Reply-To: <457026ED.9030807@manor-farm.org> References: <456EC964.8000503@manor-farm.org> <457004F3.6070103@manor-farm.org> <457026ED.9030807@manor-farm.org> Message-ID: <20061201134741.GA6119@host.pmichaud.com> On Fri, Dec 01, 2006 at 12:58:21PM +0000, Ian Barton wrote: > > > Anno wrote: > >> >$GUIButtonDirUrlFmt = "/var/lib/pmwiki/pub/guiedit"; > >> > >> This should be a URL, like http://..... > > Thanks, I have changed it, but it didn't fix the problem. Inspecting the > > generated page source I can see the problem: > > > > > href='http://www.banter.local/estate/pub/skins/monobook/monobook.css' /> > > > > > > The url of guiedit.js should be: > > http://www.banter.local/estate/pub/guiedit/guiedit.js > > > > Where does pmwiki find the url for java script files? I thought it might > > be a skin problem, but it still happens with the default skin. > > > > In my local/config.php I have > > > > $ScriptUrl = 'http://www.banter.local/estate'; > > $PubDirUrl = 'http://www.banter.local/estate/pub'; > > > OK fixed it now. For the record I had to explicitly set my > $FarmPubDirUrl in local/config.php. Strange. PmWiki will normally set $FarmPubDirUrl to be the same as $PubDirUrl, unless something else is setting it first. So you shouldn't have to set $FarmPubDirUrl if $PubDirUrl is already correct. Is $FarmPubDirUrl being set somewhere else -- perhaps in a recipe somewhere or farmconfig.php ? Pm From pmichaud at pobox.com Fri Dec 1 07:51:17 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Fri, 1 Dec 2006 07:51:17 -0600 Subject: [pmwiki-users] image based menus not working. (attached images) In-Reply-To: <20061201120830.85435.qmail@web31011.mail.mud.yahoo.com> References: <20061201120830.85435.qmail@web31011.mail.mud.yahoo.com> Message-ID: <20061201135117.GB6119@host.pmichaud.com> On Fri, Dec 01, 2006 at 04:08:30AM -0800, Nicholas Buttle wrote: > Can anyone explain the two screenshots? The first is > when the page is first loaded and the test rollover > image files don't show. The second is when I click on > 'edit' and hey presto the images show in the sidebar. > > If anyone can help... The problem is simply that attachments aren't (yet) tied to the page in which they're written. So, the edit page is grabbing the attachment from a different group than the browse page. Try qualifying the attachment with a group -- i.e., using Attach:GroupName./item1-plain.gif Pm From Andrew.Gordon at unisys.com Fri Dec 1 09:02:27 2006 From: Andrew.Gordon at unisys.com (Gordon, Andrew) Date: Fri, 1 Dec 2006 09:02:27 -0600 Subject: [pmwiki-users] Can a user provide one password that allows both read and edit access? Message-ID: <3B47B246F5809C42929EF62AB9174C850686CD8D@USEA-EXCH2.na.uis.unisys.com> All, Can a user sign on with a password that allows both read and edit access? If so how is that specified? Thank you Best regards Andy Andrew Gordon Director Open Source Solutions - Federal CTO Office Federal 703-439-5491 (Office) -------------- next part -------------- An HTML attachment was scrubbed... URL: /pipermail/pmwiki-users/attachments/20061201/7f4b94fa/attachment.html From Flori-Fischer at gmx.net Fri Dec 1 10:00:48 2006 From: Flori-Fischer at gmx.net (Florian Fischer) Date: Fri, 01 Dec 2006 17:00:48 +0100 Subject: [pmwiki-users] drafts question. How to grant publish rights? In-Reply-To: References: Message-ID: <20061201160048.21260@gmx.net> -------- Original-Nachricht -------- Datum: Fri, 1 Dec 2006 08:05:54 -0500 Von: Scott Connard An: Florian Fischer Betreff: Re: [pmwiki-users] drafts question. How to grant publish rights? > Florian wrote; > > at the moment i'm struggling through my drafts-configuration. > > Untill now i had users who where only allowed to save drafts and > > these drafts where published by the admin. At the moment i'm having > > the following configuration: Since i use it only in one group i use > > a group.php file with the content: > > > > > # turn on draft edits > > $EnableDrafts = 1; > > # use special edit form with button swapping > > $PageEditForm = 'Group.EditForm'; > > # create a publish password for Drafts > > $DefaultPasswords['publish'] = crypt('publish'); > > $AuthCascade['publish'] = 'edit'; > > $PageAttributes['passwdpublish'] = '$[Set new publish password:]'; > > > > No i want to introduce another userlayer, people responsable for > > publishing drafts but no admin. I'm using Userauth. I tried to > > grant publish rights by publish_group-Group or publish, but since > > publish isn't an action itself (At least i think so ;-)) this > > doesn't work. > > > > Any ideas how to grant publish rights? > > I use AuthUser and this is all I had to use to add a "publish" > action. Anybody in the @publisher group has publishing permission > but not admin permission. Unfortunately, I am not user UserAuth, so > I'm not sure what changes are necessary for that recipe. > > $HandleAuth['publish'] = 'publish'; > $DefaultPasswords['publish'] = '@publisher'; > $AuthCascade['publish'] = 'edit'; > $PageAttributes['passwdpublish'] = '$[Set new publish password:]'; > > Scott Connard. Thanks for your response, but i'd like to understand this a little better. Am i right that publish is an action like edit or diff or.. ? I tried to check the code, but i could not find where this action is defined. at least not in drafts.php. I could not find the word 'publish' anywhere.Maybe i was searching in the wrong files :-) I included $HandleAuth['publish'] = 'publish'; into my group.php but this didn't work neither. I just don't get where publish is defined. Any ideas? > -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From nicholas_buttle at yahoo.com Fri Dec 1 10:03:18 2006 From: nicholas_buttle at yahoo.com (Nicholas Buttle) Date: Fri, 1 Dec 2006 08:03:18 -0800 (PST) Subject: [pmwiki-users] a la carte.... Message-ID: <255408.63007.qm@web31015.mail.mud.yahoo.com> The powers that be have decided that rollovers don't look good enough...so I'm trying to include some javascript that will allow me to have a 3 state image based menu using onmouseup/down/out.... oh hell!!! what's the matter with bloody text????? attached is a zip file with 3 images and an html file. please have a look and if you can see any way of using this as my menus in the sidebar please give a hand. help me out with this one and I'll tidy it up and upload it as a cookbook. Several folks have mailed me saying they'd like to use something similar on their pmwiki. Thanks to the group Nicholas ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: Archive.zip Type: application/zip Size: 12862 bytes Desc: 335776803-Archive.zip Url : /pipermail/pmwiki-users/attachments/20061201/10a49f0a/attachment.zip From gmane at auxbuss.com Fri Dec 1 10:18:16 2006 From: gmane at auxbuss.com (marc) Date: Fri, 1 Dec 2006 16:18:16 -0000 Subject: [pmwiki-users] Calculations References: <20061130082537.77633525@tadpole> Message-ID: said... > I need to do a table with logical calculations. These values come > from an internal website. I could get these values through some perl > script. > > || Value 1|| Value 2|| Value 3|| Value 4|| if Value1 > Value2 then > 'Value 2 + Value3' or if Value1 - Value2 <= 0 then Value 3 or... > > I have 11 conditions (ifs). A case statement would be even better. > > The other things is the next day, the new day's value would become > the 1st row, and the last 20 or 30 rows would be below. > > It's almost like a very simplified spreadsheet. How can I do that? See if this helps: http://www.pmwiki.org/wiki/Cookbook/PageVariableExtensions otherwise, I guess we should build something. -- Best, Marc From gmane at auxbuss.com Fri Dec 1 10:18:18 2006 From: gmane at auxbuss.com (marc) Date: Fri, 1 Dec 2006 16:18:18 -0000 Subject: [pmwiki-users] Installation question by newbie References: Message-ID: Doug O'Harra said... > I had already set those variables to this: > > $ScriptUrl = 'http://www.site.com/pmwiki/pmwiki.php'; > $PubDirUrl = 'http://www.site.com/pmwiki/pub'; You might not need to set $ScriptUrl at all unless you are doing funky things with mod_rewrite. In any case, it should look like: $ScriptUrl = 'http://www.site.com/pmwiki'; without the /pmwiki.php. See PathVariables in the docs for a description. -- Best, Marc From sandy at onebit.ca Fri Dec 1 10:31:07 2006 From: sandy at onebit.ca (Sandy) Date: Fri, 01 Dec 2006 11:31:07 -0500 Subject: [pmwiki-users] Can a user provide one password that allows both read and edit access? In-Reply-To: <3B47B246F5809C42929EF62AB9174C850686CD8D@USEA-EXCH2.na.uis.unisys.com> References: <3B47B246F5809C42929EF62AB9174C850686CD8D@USEA-EXCH2.na.uis.unisys.com> Message-ID: Gordon, Andrew wrote: > Can a user sign on with a password that allows both read and edit > access? If so how is that specified? Thank you Yes, you can. The default is that everyone, signed-in or not, has read access, but from your question I suspect you don't want that. I'll assume you're using the default permission system, which is password only. The most reliable way is to explicitly give that person permission to do both, in either config.php (for wiki-wide) or ?action=attr (for group or page). Just enter the same password for both authorities and you're done! You would expect authority to edit to also give authority to read, but there are cases where you want people to only edit and not read. E.g. of that special case, Link on PageA is [[PageAComments?action=edit]] This will bring up the edit form for PageAComments, but the user won't be able to see earlier comments. The default may in fact be that edit access includes read access, but I'm not sure, and seeing as it's easy enough to explicitly give both, that's what I do. Another way is to use two separate passwords, and then give passwords as it asks. It will remember your earlier access as well as your new one -- so you're logged in as two people. Yes, everything is cleared with action=logout or if you close all browser windows. Think clearing cookies will also do it. If you're using AuthUser, then instead of giving a password authority, you type id:username in the place you'd normally enter the password. I don't know if you can log in as two people at once this way, and I don't know about the other authentication systems. Hope this helps, Sandy From gmane at auxbuss.com Fri Dec 1 10:35:49 2006 From: gmane at auxbuss.com (marc) Date: Fri, 1 Dec 2006 16:35:49 -0000 Subject: [pmwiki-users] password reminders, and remembering usernames References: <20061130003054.26791.qmail@web25014.mail.ukl.yahoo.com> Message-ID: R Creighton said... > I'd like to make login a little easier for some of my > users who aren't particularly experienced with computers > (and who sometimes forget their username and/or password). > > Is there a way of doing one or other of these things: > > 1. Setting cookies so that the username is always remembered > on any given machine (unless the user specifically requests > otherwise). (I imagine/hope this ought to be simple, and > would be a tremendous help, but I don't know how to achieve it.) A decent browser will do this for you - remember login details, that is. Keep in mind that some browsers are set to delete all cookies when the browser is closed, unless they are explicitly protected. > 2. Setting up a system whereby emails are stored, and if > someone has forgotten their password, they can automatically > have it reset and sent to that email. (I guess this is more > complicated - but does anyone know of such a system being > implemented? I couldn't see anything like that in CookBook.) Yes, I have my own code for this based around authuser. I think AuthUserDbase-2.0.0 can do this. -- Best, Marc From haganfox at users.sourceforge.net Fri Dec 1 12:21:00 2006 From: haganfox at users.sourceforge.net (Hagan Fox) Date: Fri, 1 Dec 2006 18:21:00 +0000 (UTC) Subject: [pmwiki-users] =?utf-8?q?Can_a_user_provide_one_password_that_all?= =?utf-8?q?ows_both=09read_and_edit_access=3F?= References: <3B47B246F5809C42929EF62AB9174C850686CD8D@USEA-EXCH2.na.uis.unisys.com> Message-ID: Gordon, Andrew unisys.com> writes: > Can a user sign on with a password that allows both read and > edit access? If so how is that specified? Thank you You can use something like $DefaultPasswords['admin'] = '$1$wjKeu2kQ$vGSx0232a68U95KBF5RaF.'; $DefaultPasswords['edit'] = '$1$0CShQ0de$XW9ern3xLcT8xOtBjLhLe0'; $DefaultPasswords['read'] = '@_site_edit'; in config.php, where the crypted passwords come from ?action=crypt . Hagan From scott at skhanselman.com Fri Dec 1 12:33:35 2006 From: scott at skhanselman.com (Scott) Date: Fri, 1 Dec 2006 18:33:35 +0000 (UTC) Subject: [pmwiki-users] Pagelists Performance Message-ID: Hi, I've finally set up my PmWiki site and have 11909 wiki pages (each about 200-300 kb in size, but will get bigger in the future). I'm using (:pagelist name=-*.HomePage count=10 fmt=#simplename:) for a pagelists section on my main homepage. The page takes anywhere from 15 to 25 seconds to load (as seen with the PageGeneration script). All other pages load very quickly as long as there are no pagelists. After doing some research I found the SearchIndex recipe/script. My main page with the pagelists didn't seem to benefit from the index file that was created. So I've stopped using that script for now. The best I saw using this script was down to 13 seconds. So back to the searching again I found that I might want to do the PerGroupSubDirectories, but I would like some comments that would help me decide to make the switch to the sub directory structure. I remember reading somewhere that some college had 200,000 wiki pages and it was running fine. I don't want to abandon pagelists, but I'm concerned about the processing time. Will sub directories help with pagelists? Thanks for you comments, Scott From haganfox at users.sourceforge.net Fri Dec 1 12:38:27 2006 From: haganfox at users.sourceforge.net (Hagan Fox) Date: Fri, 1 Dec 2006 18:38:27 +0000 (UTC) Subject: [pmwiki-users] Installation question by newbie References: Message-ID: Doug O'Harra gci.net> writes: > > I installed pmwiki on my website in its own pmwiki directory/folder inside > the www folder. It appears to work great and I started to customize. I can > load my nascent pmwiki homepage from www.mywebsite.com/pmwiki/pmwiki.php > with no problem. > > Then, following installation directions, I created an index.php file with > the code: > > ?> > > If I keep file index.php inside the www.mywebsite.com/pmwiki folder and > enter url www.mywebsite.com/pmwiki/index.php, it loads the newest version of > the homepage with the latest customized configuration. Identical to what > gets loaded by www.mywebsite.com/pmwiki/pmwiki.php. Just as you'd expect. (I > think.) > > However, if I move that index.php file inside the www directory/folder where > it can serve as a default for my website[...] It sounds like what your are trying to do is: Shortening or Altering the Path and Eliminating "pmwiki.php" See http://www.pmwiki.org/wiki/Cookbook/CleanUrls#index_file . Hagan From sandy at onebit.ca Fri Dec 1 12:45:28 2006 From: sandy at onebit.ca (Sandy) Date: Fri, 01 Dec 2006 13:45:28 -0500 Subject: [pmwiki-users] a la carte.... In-Reply-To: <255408.63007.qm@web31015.mail.mud.yahoo.com> References: <255408.63007.qm@web31015.mail.mud.yahoo.com> Message-ID: Nicholas Buttle wrote: > The powers that be have decided that rollovers don't > look good enough...so I'm trying to include some > javascript that will allow me to have a 3 state image > based menu using onmouseup/down/out.... > > oh hell!!! what's the matter with bloody text????? > > attached is a zip file with 3 images and an html file. > > please have a look and if you can see any way of using > this as my menus in the sidebar please give a hand. > > help me out with this one and I'll tidy it up and > upload it as a cookbook. Several folks have mailed me > saying they'd like to use something similar on their > pmwiki. > > Thanks to the group > > Nicholas > Have your bosses talk to my parents at the lake on dial-up, or anyone on an older system. Not only does it waste your time programming, but it may lose them customers. (Seriously, they switched banks because it took too long to pay their bills through the old one; they took great joy in pointing out that the pictures of "Buy this retirement product and you'll retire to this paradise" meant "Buy this package, retire to this paradise where they don't have DSL, and find another bank.") More practical, http://www.w3schools.com/css/tryit.asp?filename=trycss_link Note: a:hover MUST come after a:link and a:visited in the CSS definition in order to be effective. Note: a:active MUST come after a:hover in the CSS definition in order to be effective. Change background and text colors, sizes, borders (maybe indent and outdent). Make the text nothing but spaces and use an image for the background. (Still images to download, but at least no JavaS.) Might not be the sequence they were asking for, but it might be fancy enough they'll go for it. Cheers! Sandy From doharra at gci.net Fri Dec 1 12:54:14 2006 From: doharra at gci.net (Doug O'Harra) Date: Fri, 01 Dec 2006 09:54:14 -0900 Subject: [pmwiki-users] Installation question by newbie In-Reply-To: Message-ID: Hi Marc, I tried it. Same result. The index.php inside the www.site.com/pmwiki directory brings up the correct file. But the www.site.com/index.php brings up the default Main.HomePage without any of my changes. I also tried changing the $ScriptUrl to -- $ScriptUrl = 'http://www.site.com'; Again, the same result. It's as though the index.php file cannot find the pmwiki/local/config.php from the www directory, even the path is spelled out in the include. So I tried something else and got an unexpected result. I put a copy of the config.php file in the www directory, but didn't change anything else. (The original copy is still in the pmwiki/local directory.) The www.site.com/index.php loaded the correct site for the first time! But it also had these error messages pasted across the top: Warning: main(scripts/urlapprove.php): failed to open stream: No such file or directory in /big/dom/xsite/www/config.php on line 123 Warning: main(): Failed opening 'scripts/urlapprove.php' for inclusion (include_path='.:/usr/local/lib/php-pear') in /big/dom/xsite/www/config.php on line 123 Warning: Cannot modify header information - headers already sent by (output started at /big/dom/xsite/www/config.php:123) in /big/dom/xsite/www/pmwiki/pmwiki.php on line 884 Does this suggest a diagnosis for what I'm doing wrong? I very much appreciate this help. Doug On 12/1/06 7:18 AM, "marc" wrote: > Doug O'Harra said... >> I had already set those variables to this: >> >> $ScriptUrl = 'http://www.site.com/pmwiki/pmwiki.php'; >> $PubDirUrl = 'http://www.site.com/pmwiki/pub'; > > You might not need to set $ScriptUrl at all unless you are doing funky > things with mod_rewrite. In any case, it should look like: > > $ScriptUrl = 'http://www.site.com/pmwiki'; > > without the /pmwiki.php. See PathVariables in the docs for a > description. From pmichaud at pobox.com Fri Dec 1 13:02:15 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Fri, 1 Dec 2006 13:02:15 -0600 Subject: [pmwiki-users] Pagelists Performance In-Reply-To: References: Message-ID: <20061201190215.GA16305@host.pmichaud.com> On Fri, Dec 01, 2006 at 06:33:35PM +0000, Scott wrote: > I've finally set up my PmWiki site and have 11909 wiki pages (each about 200-300 > kb in size, but will get bigger in the future). I'm using (:pagelist > name=-*.HomePage count=10 fmt=#simplename:) for a pagelists section on my main > homepage. The page takes anywhere from 15 to 25 seconds to load (as seen with > the PageGeneration script). All other pages load very quickly as long as there > are no pagelists. The likely reason (:pagelist:) is taking so long is that PmWiki is having to check read permissions on each page. Have you tried setting $EnablePageListProtect = 0; This tells PmWiki that it's okay to display the names of pages even if they are protected by a read password. As such, (:pagelist:) can avoid having to check the permissions on each page. Also, I find this particular query somewhat odd -- do you really just want the first ten pages (count=10) out of the entire wiki, regardless of group name or any other attribute? > After doing some research I found the SearchIndex recipe/script. My main page > with the pagelists didn't seem to benefit from the index file that was created. That's correct -- since there aren't any search terms in the pagelist command, indexing the page's contents won't really help. Beyond that, PmWiki's built-in indexing capabilities supercedes anything that the SearchIndex recipe provides. > So back to the searching again I found that I might want to do the > PerGroupSubDirectories, but I would like some comments that would help me decide > to make the switch to the sub directory structure. > ... > I don't want to abandon pagelists, but I'm concerned about the processing time. > Will sub directories help with pagelists? Simply switching to a per-group structure probably won't help much in improving the speed of (:pagelist:), as PmWiki will still need to scan all of the files to determine which files to display. > I remember reading somewhere that some college had 200,000 wiki pages and it was > running fine. Yes, however, they don't use (:pagelist:), or if they do, then it's generally limited to a single wikigroup. Pm From pmichaud at pobox.com Fri Dec 1 13:13:09 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Fri, 1 Dec 2006 13:13:09 -0600 Subject: [pmwiki-users] Can a user provide one password that allows both read and edit access? In-Reply-To: <3B47B246F5809C42929EF62AB9174C850686CD8D@USEA-EXCH2.na.uis.unisys.com> References: <3B47B246F5809C42929EF62AB9174C850686CD8D@USEA-EXCH2.na.uis.unisys.com> Message-ID: <20061201191309.GB16305@host.pmichaud.com> On Fri, Dec 01, 2006 at 09:02:27AM -0600, Gordon, Andrew wrote: > > Can a user sign on with a password that allows both read and edit access? > If so how is that specified? Thank you Simply duplicate the edit password in the read password field. For example, if you want to use 'rose' as a read password, and 'eggplant' as a password for both reading and editing, then set the read password to be both 'rose' and 'eggplant', and the edit password as just 'eggplant'. If doing this for the site-wide passwords, you would do: $DefaultPasswords['read'] = array(crypt('rose'), crypt('eggplant')); $DefaultPasswords['edit'] = crypt('eggplant'); If doing this for a group or page via ?action=attr: Set new read password: rose eggplant Set new edit password: eggplant Pm From mogulguy at yahoo.com Fri Dec 1 13:20:20 2006 From: mogulguy at yahoo.com (Martin Fick) Date: Fri, 1 Dec 2006 11:20:20 -0800 (PST) Subject: [pmwiki-users] Pagelists Performance In-Reply-To: Message-ID: <246404.69029.qm@web36115.mail.mud.yahoo.com> --- Scott wrote: > I've finally set up my PmWiki site and have 11909 > wiki pages (each about 200-300 > kb in size, but will get bigger in the future). I'm > using (:pagelist > name=-*.HomePage count=10 fmt=#simplename:) for a > pagelists section on my main > homepage. The page takes anywhere from 15 to 25 > seconds to load (as seen with > the PageGeneration script). All other pages load > very quickly as long as there > are no pagelists. >From the pagelist directive above, it does not look like your directive will exercise anything more than the 'ls' section of pagelists and sorting. What version of pmwiki are you using? It looks like the current versions might actually have some serious speed increases in this specific area of performing the 'ls' over older versions. If instead, sorting is your problem (which I suspect it is), I'm not sure that there is anything you can do about it. To give yourself some ideas for metrics, maybe try running a few simple command line commands (you are on unix?) in your wiki.d directory: ls|head and ls|sort|head to see how long they last? I believe the last command should be close to what you are doing in your pagelist. > After doing some research I found the SearchIndex > recipe/script. My main page > with the pagelists didn't seem to benefit from the > index file that was created. > So I've stopped using that script for now. The best > I saw using this script was > down to 13 seconds. This makes sense since as mentioned above, I think that you are only stressing the ls command and indexing should not help that. > So back to the searching again I found that I might > want to do the > PerGroupSubDirectories, but I would like some > comments that would help me decide > to make the switch to the sub directory structure. I don't think it will help, -Martin ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com From doharra at gci.net Fri Dec 1 13:51:18 2006 From: doharra at gci.net (Doug O'Harra) Date: Fri, 01 Dec 2006 10:51:18 -0900 Subject: [pmwiki-users] Installation question by newbie In-Reply-To: Message-ID: Thank you Hagan! After reading the cookbook at: http://www.pmwiki.org/wiki/Cookbook/CleanUrls#index_file I added this: Doug The new index include then On 12/1/06 9:38 AM, "Hagan Fox" wrote: > Doug O'Harra gci.net> writes: >> > >> I installed pmwiki on my website in its own pmwiki directory/folder inside >> the www folder. It appears to work great and I started to customize. I can >> load my nascent pmwiki homepage from www.mywebsite.com/pmwiki/pmwiki.php >> with no problem. >> >> Then, following installation directions, I created an index.php file with >> the code: >> >> > ?> >> >> If I keep file index.php inside the www.mywebsite.com/pmwiki folder and >> enter url www.mywebsite.com/pmwiki/index.php, it loads the newest version of >> the homepage with the latest customized configuration. Identical to what >> gets loaded by www.mywebsite.com/pmwiki/pmwiki.php. Just as you'd expect. (I >> think.) >> >> However, if I move that index.php file inside the www directory/folder where >> it can serve as a default for my website[...] > > It sounds like what your are trying to do is: > > Shortening or Altering the Path and Eliminating "pmwiki.php" > > See http://www.pmwiki.org/wiki/Cookbook/CleanUrls#index_file . > > Hagan > > > _______________________________________________ > pmwiki-users mailing list > pmwiki-users at pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users From pmwiki at 911networks.com Fri Dec 1 14:01:49 2006 From: pmwiki at 911networks.com (pmwiki at 911networks.com) Date: Fri, 1 Dec 2006 12:01:49 -0800 Subject: [pmwiki-users] Calculations In-Reply-To: References: <20061130082537.77633525@tadpole> Message-ID: <20061201120149.34ed3c63@tadpole> On Fri, 1 Dec 2006 16:18:16 -0000 marc wrote: > said... > > > I need to do a table with logical calculations. These values come > > from an internal website. I could get these values through some > > perl script. > > > > || Value 1|| Value 2|| Value 3|| Value 4|| if Value1 > Value2 then > > 'Value 2 + Value3' or if Value1 - Value2 <= 0 then Value 3 or... > > > > I have 11 conditions (ifs). A case statement would be even better. > > > > The other things is the next day, the new day's value would become > > the 1st row, and the last 20 or 30 rows would be below. > > > > It's almost like a very simplified spreadsheet. How can I do > > that? > > See if this helps: > > http://www.pmwiki.org/wiki/Cookbook/PageVariableExtensions > > otherwise, I guess we should build something. > 1. I just looked at it. It's a good start but is there a way of doing a case statement? I have 11 ifs. 2. Is there a way of addressing the rows & columns of a table? and say like: if (R2C1 > R2C5) or (R2C1+R2C3 > R2C6) or (R2C2 > R2C7) ... then 'Yes' else 'No' -- Thanks http://www.sqlhacks.com The SQL knowledge base From scott at skhanselman.com Fri Dec 1 14:12:31 2006 From: scott at skhanselman.com (Scott) Date: Fri, 1 Dec 2006 20:12:31 +0000 (UTC) Subject: [pmwiki-users] Pagelists Performance References: <20061201190215.GA16305@host.pmichaud.com> Message-ID: Thanks for the response. Oops, I looked at my pagelist and it's actually (:pagelist count=10 fmt=#simplename order=random:). Just wanted to display a random set of pages for the users to see on the main page. Originally, I was thinking that the last ten pages that were updated might be a nice pagelist, but decided on the random instead. So I tried $EnablePageListProtect = 0; and it has dropped the page time to 7-8 seconds. I think I'm OK with the 7 seconds for this pagelist and may evaluate whether to keep them. Thanks for the comments about the sub groups. Scott From scott at skhanselman.com Fri Dec 1 14:27:02 2006 From: scott at skhanselman.com (Scott) Date: Fri, 1 Dec 2006 20:27:02 +0000 (UTC) Subject: [pmwiki-users] Pagelists Performance References: <246404.69029.qm@web36115.mail.mud.yahoo.com> Message-ID: I'm using 2.1.11. I also mistakenly posted the wrong pagelist. I'm using (:pagelist count=10 fmt=#simplename order=random:). I tried PM's $EnablePageListProtect = 0; and has dropped the page time to 7-8 seconds. I use Linux, but I don't have cli access to my web server space. If I find a way to, I'll try your suggested commands. Thanks, Scott From mogulguy at yahoo.com Fri Dec 1 15:02:06 2006 From: mogulguy at yahoo.com (Martin Fick) Date: Fri, 1 Dec 2006 13:02:06 -0800 (PST) Subject: [pmwiki-users] Calculations In-Reply-To: <20061201120149.34ed3c63@tadpole> Message-ID: <160062.90992.qm@web36110.mail.mud.yahoo.com> --- pmwiki at 911networks.com wrote: > 2. Is there a way of addressing the rows & columns > of a table? and say like: > if (R2C1 > R2C5) or (R2C1+R2C3 > R2C6) or (R2C2 > > R2C7) ... then 'Yes' else 'No' I do plan on adding that ability (or something like it) to the wikipath recipe eventually. If I get some free time I will look into it this weekend, -Martin ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com From pmichaud at pobox.com Fri Dec 1 16:34:30 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Fri, 1 Dec 2006 16:34:30 -0600 Subject: [pmwiki-users] Pagelists Performance In-Reply-To: References: <20061201190215.GA16305@host.pmichaud.com> Message-ID: <20061201223430.GA8117@host.pmichaud.com> On Fri, Dec 01, 2006 at 08:12:31PM +0000, Scott wrote: > Thanks for the response. > > Oops, I looked at my pagelist and it's actually (:pagelist count=10 > fmt=#simplename order=random:). Just wanted to display a random set of pages > for the users to see on the main page. Originally, I was thinking that the > last ten pages that were updated might be a nice pagelist, but decided on the > random instead. Oh, if that's the case, you might get a huge performance increase by doing the following instead: (:pagelist trail=Site.AllRecentChanges fmt=#simplename order=random count=10) Thus, instead of scanning the entire wiki.d/ directory for pagenames, it can simply read Site.AllRecentChanges and grab pagenames from there. It'll randomly sort that list and display the first ten. Pm From abarrett at eecs.berkeley.edu Fri Dec 1 16:41:04 2006 From: abarrett at eecs.berkeley.edu (April Barrett) Date: Fri, 01 Dec 2006 14:41:04 -0800 Subject: [pmwiki-users] image name without having to type it on Message-ID: <4570AF80.1010601@eecs.berkeley.edu> Hello: I have successfully created a way to have a table added underneath another table to make it appear as rows using http://www.pmwiki.org/wiki/Cookbook/AddDeleteLine2. The first column of the row contains and image and some text. Is there a way to have the image name automatically uploaded instead of having the user type in the name? That way the image would appear using "Attach:Image-example.jpg" automatically using the name of whatever file was uploaded. The code: ************************* !!! '''Enter a New Company:''' (:linebreaks:) (:input form method=post enctype=multipart/form-data :) (:input hidden name=n value={$FullName}:) (:input hidden name=action value=postupload:) File to upload: (:input file name='uploadfile':) Name of upload: (:input text name='upname':) (IMPORTANT: if the file name is intel-logo.jpg, you must type in intel-logo.jpg in this field or the image will not show) (:adl form entry:) (:table:) (:cellnr:)Company Profile: (:cell:)(:input textarea profile rows=10 cols=34:) (:cellnr:)Company URL: (:cell:)(:input text curl size=45:) (:cellnr:)Faculty Affiliation: (:cell:)(:input text faculty size=45:) (:cellnr:)Faculty Title: (:cell:)(:input text ftitle size=45:) (:cellnr:)Faculty URL: (:cell:)(:input text furl size=45:) (:cellnr:)Outcome: (:cell:)(:input text outcome size=45:) (:cellnr:)(:input submit ok Enter:) (:adl templatepage [[MultiLineTemplate]]:) (:adl end:) ************************* Using the template: ************************* !!! (:table border=0 cellspacing=0 cellpadding=15:) (:cellnr width=33% align=left:) [[{curl} | (Attach:){uploadfile}]] {profile} [[{curl} | {curl}]] (:cell width=33% align=left:) [[{furl} | {faculty}]], {ftitle} (:cell width=33% align=left:) {outcome} (:tableend:) ---- ************************* thanks. From sti at pooq.com Fri Dec 1 17:43:46 2006 From: sti at pooq.com (Stirling Westrup) Date: Fri, 01 Dec 2006 18:43:46 -0500 Subject: [pmwiki-users] Calculations In-Reply-To: <20061130082537.77633525@tadpole> References: <20061130082537.77633525@tadpole> Message-ID: <4570BE32.6060806@pooq.com> pmwiki at 911networks.com wrote: > Hi, I sent this a coupler of days ago, and got no reply. Any > suggestion? Thanks > > ================================================================ > > I need to do a table with logical calculations. These values come > from an internal website. I could get these values through some perl > script. > > || Value 1|| Value 2|| Value 3|| Value 4|| if Value1 > Value2 then > 'Value 2 + Value3' or if Value1 - Value2 <= 0 then Value 3 or... > > I have 11 conditions (ifs). A case statement would be even better. > > The other things is the next day, the new day's value would become > the 1st row, and the last 20 or 30 rows would be below. > > It's almost like a very simplified spreadsheet. How can I do that? > > ================================================================ Any attempt to do this using existing markup (or recipes) will get really ugly really fast. I think you'll have to write a recipe of your own for this. From mail at randgaenge.net Fri Dec 1 18:31:49 2006 From: mail at randgaenge.net (Thomas N. Burg) Date: Sat, 2 Dec 2006 01:31:49 +0100 Subject: [pmwiki-users] htgroup Message-ID: <9E188C01-0E36-4C95-AA08-251F2B0990D7@randgaenge.net> Hi, a brief question. I know how the create the htgroup file but how do I tell a page/group that only a certain group has access. With users I do it like "id:tom id:eve" (for 2 users) and how does in work with groups? Thanks for any help Thomas From pmwiki at 911networks.com Fri Dec 1 18:58:43 2006 From: pmwiki at 911networks.com (pmwiki at 911networks.com) Date: Fri, 1 Dec 2006 16:58:43 -0800 Subject: [pmwiki-users] Shaded tables Message-ID: <20061201165843.45d5015a@tadpole> Hi, Is it possible to have a shaded table? Row1 dark background Row2 light background Row3 dark background? -- Thanks http://www.sqlhacks.com The SQL knowledge base From haganfox at users.sourceforge.net Fri Dec 1 19:07:36 2006 From: haganfox at users.sourceforge.net (Hagan Fox) Date: Sat, 2 Dec 2006 01:07:36 +0000 (UTC) Subject: [pmwiki-users] htgroup References: <9E188C01-0E36-4C95-AA08-251F2B0990D7@randgaenge.net> Message-ID: Thomas N. Burg randgaenge.net> writes: > > Hi, > > a brief question. I know how the create the htgroup file but how do I > tell a page/group that only a certain group has access. With users I > do it like "id:tom id:eve" (for 2 users) and how does in work with > groups? >From http://www.pmwiki.org/wiki/Site/AuthUser Authorization groups are specified with a leading "@" sign. Define either the login accounts belonging to a group or the groups for a login account: @writers: alice, bob carol: @editors, @writers @admins: alice, dave Then use "@group" as a password in ?action=attr or $DefaultPasswords. Hagan From sti at pooq.com Fri Dec 1 19:43:42 2006 From: sti at pooq.com (Stirling Westrup) Date: Fri, 01 Dec 2006 20:43:42 -0500 Subject: [pmwiki-users] Shaded tables In-Reply-To: <20061201165843.45d5015a@tadpole> References: <20061201165843.45d5015a@tadpole> Message-ID: <4570DA4E.6050704@pooq.com> pmwiki at 911networks.com wrote: > Hi, > > Is it possible to have a shaded table? > > Row1 dark background > Row2 light background > Row3 dark background? > Yes, check out http://www.pmwiki.org/wiki/Cookbook/FormattingTables From rik at cs.sunysb.edu Fri Dec 1 23:46:49 2006 From: rik at cs.sunysb.edu (Rik Sarkar) Date: Sat, 2 Dec 2006 00:46:49 -0500 (EST) Subject: [pmwiki-users] Generating incorrect URLs Message-ID: Hi, I installed pmwiki on a server, the url for the script being : http://www.site.edu/~user/pmwiki/pmwiki.php When I go to this url, it shows the startup page, but all the urls in the page, insted of being complete, contain only a suffix of it, something like this : http://~user/pmwiki/pmwiki.php or, http://~user/pmwiki/pmwiki.php?n=PmWiki.InitialSetupTasks I tried on internet explorer, where it gives something slightly stranger : http:///~user/pmwiki/pmwiki.php or, http:///~rik/pmwiki/pmwiki.php?n=PmWiki.InitialSetupTasks That is, takes an extra slash after http. Please advise how to get around this. Can I set the site url somewhere so that all the relative urls are taken with respect to that ? Or some other hack ? (I do not have root, so can't do anything to the server iteself). Thanks, Rik. From mik.admin at nurfuerspam.de Sat Dec 2 05:13:43 2006 From: mik.admin at nurfuerspam.de (Michael Brenner) Date: Sat, 2 Dec 2006 12:13:43 +0100 Subject: [pmwiki-users] Generating incorrect URLs In-Reply-To: References: Message-ID: <200612021213.44799.mik.admin@nurfuerspam.de> Hi Rik, PmWiki creates linkes based on the following variable[#1]. First step is lookup if the HTTP_HOST-variable is set bei the server [#3]. If that's the problem try to set it by hand in local/config.php [#2]. #1 $ScriptUrl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; #2 in local/config.php ... $ScriptUrl = 'http://www.site.edu/'.$_SERVER['SCRIPT_NAME']; $PubDirUrl = preg_replace('#/[^/]*$#','/pub',$ScriptUrl,1); ... #3 http://de.php.net/manual/en/function.phpinfo.php Am Samstag, 2. Dezember 2006 06:46 schrieb Rik Sarkar: > Hi, I installed pmwiki on a server, the url for the script being : > http://www.site.edu/~user/pmwiki/pmwiki.php > > When I go to this url, it shows the startup page, but all the urls in the > page, insted of being complete, contain only a suffix of it, something > like this : > > http://~user/pmwiki/pmwiki.php or, > http://~user/pmwiki/pmwiki.php?n=PmWiki.InitialSetupTasks > > I tried on internet explorer, where it gives something slightly stranger : > http:///~user/pmwiki/pmwiki.php or, > http:///~rik/pmwiki/pmwiki.php?n=PmWiki.InitialSetupTasks > > That is, takes an extra slash after http. > > Please advise how to get around this. Can I set the site url somewhere so > that all the relative urls are taken with respect to that ? Or some other > hack ? (I do not have root, so can't do anything to the server iteself). > > Thanks, > > Rik. > > > _______________________________________________ > pmwiki-users mailing list > pmwiki-users at pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users From crisses at kinhost.org Sat Dec 2 06:00:56 2006 From: crisses at kinhost.org (Crisses) Date: Sat, 2 Dec 2006 07:00:56 -0500 Subject: [pmwiki-users] installing on Apple iDisk? In-Reply-To: References: Message-ID: On Nov 27, 2006, at 4:08 PM, Jeb Eddy wrote: > > >>> Only static Web pages are supported; that is, there is no support >>> for CGI, PHP, SSI and so on. > > Well Hans, > > Thanks so much for this info. Perhaps a quick note could be added to > the PmWiki Installation instructions so that other beginners with > dot-Mac accounts will not tilt at this windmill? > You may add a note to any page on pmwiki.org. If a page is passworded because it's a common target for wiki vandals, it's likely the password is "quick" -- so feel free to make a small note that the .mac/iDisk won't accept PmWiki since PHP is not supported. If you are able to set up your Mac computer to be running apache/php, there are things you can do to upload flat files to your .mac/iDisk from a wiki you run on your computer at home. If you're a Mac user that runs Fink or is able to compile apps on your Mac command line, you would use wget (a webpage snatching command for Terminal) when you make changes to your local wiki, use wget to create html flat files into a directory, sync that directory with your iDisk/.mac web server account when you make changes. You wouldn't be able to support any dynamic PmWiki features (email form processing, comments, page ratings, etc.), but it is one way to have an easily updated website that syncs to your .mac account. Then again, to get that functionality without the geekery you could use iWeb from the iLife package too, and it's probably much less technical to do so. I suggest an inexpensive web hosting service and a program such as Cyberduck for uploading your files to the web hosting service. Crisses fellow Mac user & geek From crisses at kinhost.org Sat Dec 2 06:23:11 2006 From: crisses at kinhost.org (Crisses) Date: Sat, 2 Dec 2006 07:23:11 -0500 Subject: [pmwiki-users] gallery use of randomquote In-Reply-To: <576438.85588.qm@web31011.mail.mud.yahoo.com> References: <576438.85588.qm@web31011.mail.mud.yahoo.com> Message-ID: <82E7A538-4ED9-4A5B-836F-9EEBDA663EBD@kinhost.org> On Nov 28, 2006, at 11:45 AM, Nicholas Buttle wrote: > hi > > I've got random images on my main page working by the > following method > > 1. Create a Group 'Gallery' > 2. Create a Page within the Gallery group called > 'Latest' > 3. (:include {Gallery/Latest$RandomSection}:) > 4. Copy the images from the Gallery.Latest uploads > folder into the Main.HomePage folder. > > Is there any way I can avoid the last step? > > > So I want the generated code > > src='http://localhost/wikimenu1/uploads/Main.HomePage/1.jpg > > to be > > src='http://localhost/wikimenu1/uploads/Gallery.Latest/1.jpg > > Thanks to anyone who has the time to help > > Nicholas > > Hi, Nicholas, I'm afraid I don't know a good answer for this, but I saw that no one answered your question. Can someone help?? Alternatively, maybe I need more information to understand what you're trying to do. If you want a random page from the Gallery group, I would look at Pagelists with a pagelist format (fmt=) of include or a customized format, instead of includes themselves. Crisses From crisses at kinhost.org Sat Dec 2 06:52:26 2006 From: crisses at kinhost.org (Crisses) Date: Sat, 2 Dec 2006 07:52:26 -0500 Subject: [pmwiki-users] drafts question. How to grant publish rights? In-Reply-To: <20061201160048.21260@gmx.net> References: <20061201160048.21260@gmx.net> Message-ID: <92C57D4D-6574-4D0A-938A-63147E65ABEE@kinhost.org> >> >> I use AuthUser and this is all I had to use to add a "publish" >> action. Anybody in the @publisher group has publishing permission >> but not admin permission. Unfortunately, I am not user UserAuth, so >> I'm not sure what changes are necessary for that recipe. >> >> $HandleAuth['publish'] = 'publish'; >> $DefaultPasswords['publish'] = '@publisher'; >> $AuthCascade['publish'] = 'edit'; >> $PageAttributes['passwdpublish'] = '$[Set new publish password:]'; >> >> Scott Connard. > > Thanks for your response, but i'd like to understand this a little > better. Am i right that publish is an action like edit or diff > or.. ? I tried to check the code, but i could not find where this > action is defined. at least not in drafts.php. I could not find the > word 'publish' anywhere.Maybe i was searching in the wrong files :-) > > I included $HandleAuth['publish'] = 'publish'; into my group.php > but this didn't work neither. > > I just don't get where publish is defined. > > Any ideas? Scott added a new level of authentication: the "publish" layer of authentication. It is probably all part of AuthUser. How are you setting up publishing? If you have a page that is say Group-Drafts/ArticleName, then is published to Group/ArticleName, you would give the @publish group of users permission to edit Group -- they would not get administrator privileges, it would be permission to edit the group. I'm not sure if UserAuth allows this, but I know that basic PmWiki authentication and AuthUser does. Crisses From aczaszyn at telus.net Sat Dec 2 09:52:20 2006 From: aczaszyn at telus.net (Aleksander Czaszynski) Date: Sat, 2 Dec 2006 07:52:20 -0800 Subject: [pmwiki-users] ZAP documentation In-Reply-To: References: Message-ID: <200612020752.20892.aczaszyn@telus.net> Caveman, The layout is very good, but for new users you need to put more examples/demos of each feature . ZAP will rule the PMWiki world!!! Aleks On Thursday 30 November 2006 19:22, The Editor wrote: > After a few complaints about the quality of the ZAP documentation, I > decided to redo the layout of the documentation section at > www.zapsite.org. Not sure I like how it looks now though I am sure it > is better. > > If anyone has any feedback, or especially suggestions for improving > it, I would be grateful. > > Cheers, > Caveman > > _______________________________________________ > pmwiki-users mailing list > pmwiki-users at pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users From dso at moosoft.com Sat Dec 2 16:23:56 2006 From: dso at moosoft.com (dso) Date: Sat, 02 Dec 2006 15:23:56 -0700 Subject: [pmwiki-users] zapdata questions Message-ID: <4571FCFC.1020305@moosoft.com> I am having trouble getting a zapdata form to work. First is with the conditional. The page just shows the conditional instead of evaluating it. The second is even without the conditional the dbsearch recipe does not seem to get the data. Also, how can set one of the radio buttons to be selected by default? Thanks for any help! (:messages:) (:zapdata:) (:zapform:) (:if !equal {$type} '') (:dbsearch key={$key} type={$type}:) (:ifend:) Search for: (:input text key {$key}:){$key}\\ Partial: (:input radio type {$type} value="partial":) Exact: (:input radio type {$type} value="exact":)\\ (:input submit value="Search":) (:zapend:) From editor at fast.st Sat Dec 2 18:19:31 2006 From: editor at fast.st (The Editor) Date: Sat, 2 Dec 2006 19:19:31 -0500 Subject: [pmwiki-users] zapdata questions In-Reply-To: <4571FCFC.1020305@moosoft.com> References: <4571FCFC.1020305@moosoft.com> Message-ID: On 12/2/06, dso wrote: > I am having trouble getting a zapdata form to work. First is with the > conditional. The page just shows the conditional instead of evaluating > it. Looks like you are missing an ending : in the conditional. > The second is even without the conditional the dbsearch recipe does > not seem to get the data. It could have to do with the order of markup processing. Do you know where on the markup table dbsearch is done? It will need to be done after page variables are processed. Kan you see {$key} and {$type} elsewhere on the page (as in after the search for input box? > Also, how can set one of the radio buttons to > be selected by default? Thanks for any help! Not easily. PmWiki doesn't have any way to do it, without using conditionals... If value = whatever, set as checked or not checked. > (:messages:) > (:zapdata:) > (:zapform:) > > (:if !equal {$type} '') > (:dbsearch key={$key} type={$type}:) > (:ifend:) > > Search for: (:input text key {$key}:){$key}\\ > Partial: (:input radio type {$type} value="partial":) > Exact: (:input radio type {$type} value="exact":)\\ There may be another problem here. Normally the fourth parameter is value. These lines should be rewritten to: Partial: (:input radio type "partial":) Exact: (:input radio type "exact":)\\ > (:input submit value="Search":) > (:zapend:) Cheers, Caveman From rik at cs.sunysb.edu Sat Dec 2 18:40:13 2006 From: rik at cs.sunysb.edu (Rik Sarkar) Date: Sat, 2 Dec 2006 19:40:13 -0500 (EST) Subject: [pmwiki-users] Generating incorrect URLs In-Reply-To: <200612021213.44799.mik.admin@nurfuerspam.de> References: <200612021213.44799.mik.admin@nurfuerspam.de> Message-ID: Hi Michael, Your guess was correct, the server is not setting HTTP_HOST, it works if that is set. However, I am still stuck with it, because it does not work when I set it in local/config.php. It works only when set in pmwiki.php. Possibly, it is not reading the config.php. Also, I am getting errors from the mkdirp($dir) function saying that it can't create wiki.d directory, though the directory exists with full access. system('pwd') returns the correct value, and the error goes away if I append the return value of system('pwd') at the beginning of $dir. After this, it lets me modify existing pages, but I can't create new pages. When a new page is saved, fixperms() gives an error saying 'no such file'. The file actually gets created in the file system and has the data, and it shows up correctly on subsequent edit attempts, but does not get linked in the parent page. It looks to to me that at certain points, the script is not being able to find the local directories like 'local' and 'wiki.d'. But I am not entirely sure. Any suggestion would be helpful. Thanks! Rik. On Sat, 2 Dec 2006, Michael Brenner wrote: > Hi Rik, > > PmWiki creates linkes based on the following variable[#1]. First step is > lookup if the HTTP_HOST-variable is set bei the server [#3]. If that's the > problem try to set it by hand in local/config.php [#2]. > > #1 > $ScriptUrl = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME']; > > #2 in local/config.php > ... > $ScriptUrl = 'http://www.site.edu/'.$_SERVER['SCRIPT_NAME']; > $PubDirUrl = preg_replace('#/[^/]*$#','/pub',$ScriptUrl,1); > ... > > #3 > http://de.php.net/manual/en/function.phpinfo.php > Am Samstag, 2. Dezember 2006 06:46 schrieb Rik Sarkar: > > Hi, I installed pmwiki on a server, the url for the script being : > > http://www.site.edu/~user/pmwiki/pmwiki.php > > > > When I go to this url, it shows the startup page, but all the urls in the > > page, insted of being complete, contain only a suffix of it, something > > like this : > > > > http://~user/pmwiki/pmwiki.php or, > > http://~user/pmwiki/pmwiki.php?n=PmWiki.InitialSetupTasks > > > > I tried on internet explorer, where it gives something slightly stranger : > > http:///~user/pmwiki/pmwiki.php or, > > http:///~rik/pmwiki/pmwiki.php?n=PmWiki.InitialSetupTasks > > > > That is, takes an extra slash after http. > > > > Please advise how to get around this. Can I set the site url somewhere so > > that all the relative urls are taken with respect to that ? Or some other > > hack ? (I do not have root, so can't do anything to the server iteself). > > > > Thanks, > > > > Rik. > > > > > > _______________________________________________ > > pmwiki-users mailing list > > pmwiki-users at pmichaud.com > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > > _______________________________________________ > pmwiki-users mailing list > pmwiki-users at pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > From editor at fast.st Sat Dec 2 19:15:44 2006 From: editor at fast.st (The Editor) Date: Sat, 2 Dec 2006 20:15:44 -0500 Subject: [pmwiki-users] pattern matching: Message-ID: I'm working on a "special" project and trying to get this pattern match to work and it almost works, but I seem to be having some problems with :, -, and . in the [ ]. preg_replace('|\{([\-\.A-Za-z0-9:_]+)\}|e', "Function($1)", $text); I'm trying to get this to match expressions like the following: {TEXT:Group.Name-36_End} Any help would be appreciated. Cheers, Caveman From dzosborn at gmail.com Sat Dec 2 20:56:47 2006 From: dzosborn at gmail.com (Donald Z. Osborn) Date: Sat, 2 Dec 2006 21:56:47 -0500 Subject: [pmwiki-users] BeeblebroxNetGila in FireFox & MSIE6 In-Reply-To: <680e31740611220358w7c67042ew81e644fad6396009@mail.gmail.com> References: <680e31740611091210k7a3a376mfc9e05685433df50@mail.gmail.com> <680e31740611091444i6f155af8i964ef01a00e0d682@mail.gmail.com> <680e31740611220358w7c67042ew81e644fad6396009@mail.gmail.com> Message-ID: <680e31740612021856x632c760ej1e2c22273a6196ad@mail.gmail.com> Still haven't sorted this out, but it looks even worse in MSIE7 with some lost functionality. I tried removing items that use extra javascripts (statcounter, animations on the chance that was somehow interfering with something (I'm down to wild guesses now) but MSIE doesn not like my use of Beeblebrox Gila (Firefox is fully functional - no problem at all). Is Haran on this list? (The link from http://www.pmwiki.org/wiki/Cookbook/BeeblebroxNetGila is dead) Can anyone look at a page like http://www.panafril10n.org/wikidoc/pmwiki.php/PanAfrLoc/MajorLanguages in MSIE and hazard a guess as to why it is so messed up? I may end up having to change skins or get all potential users to change browsers. TIA... Don On 11/22/06, Donald Z. Osborn wrote: > > I still am having a problem with the Beeblebrox skin in MSIE (no problem > in Firefox). If anyone can take a look and hazard a guess what it might be, > that would be a great help. (URL below). TIA. Don > > On 11/9/06, Donald Z. Osborn wrote: > > > > Sorry to bother you all on this. Apparently it's something I did but > > without touching the main config.php file or the gila.tmpl > > > > I have several wikigroup-specific config files - (name).php - but can't > > see how those would affect this (switched one from BBG skin to PmWIki but > > again that's a separate (name).php > > > > Added content and images. Is there any way that an animated gif (with > > whatever script runs it) would interact with anything? (I added a couple of > > flags to see.) > > > > (All this must get me in the running for dumb questions of the week) > > > > Don > > > > > > > > On 11/9/06, Donald Z. Osborn < dzosborn at gmail.com> wrote: > > > > > > If anyone with MSIE could comment on the rendering of > > > BeeblebroxNetGila for this site I'd be most grateful. I am sure I checked it > > > out earlier without seeing a problem. Display in Firefox is quite ideal. > > > > > > http://www.panafril10n.org/wikidoc/pmwiki.php/PanAfrLoc/ (I'm still in > > > the process of various work on content, presentation and structure) > > > > > > TIA... > > > > > > Don > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: /pipermail/pmwiki-users/attachments/20061202/988d4e56/attachment.html From drfredc at verizon.net Sat Dec 2 21:02:03 2006 From: drfredc at verizon.net (Dr Fred C) Date: Sat, 02 Dec 2006 19:02:03 -0800 Subject: [pmwiki-users] BeeblebroxNetGila in FireFox & MSIE6 In-Reply-To: <680e31740612021856x632c760ej1e2c22273a6196ad@mail.gmail.com> References: <680e31740611091210k7a3a376mfc9e05685433df50@mail.gmail.com> <680e31740611091444i6f155af8i964ef01a00e0d682@mail.gmail.com> <680e31740611220358w7c67042ew81e644fad6396009@mail.gmail.com> <680e31740612021856x632c760ej1e2c22273a6196ad@mail.gmail.com> Message-ID: <45723E2B.9010103@verizon.net> An HTML attachment was scrubbed... URL: /pipermail/pmwiki-users/attachments/20061202/4d07b049/attachment.html From dzosborn at gmail.com Sat Dec 2 21:16:38 2006 From: dzosborn at gmail.com (Donald Z. Osborn) Date: Sat, 2 Dec 2006 22:16:38 -0500 Subject: [pmwiki-users] BeeblebroxNetGila in FireFox & MSIE6 In-Reply-To: <45723E2B.9010103@verizon.net> References: <680e31740611091210k7a3a376mfc9e05685433df50@mail.gmail.com> <680e31740611091444i6f155af8i964ef01a00e0d682@mail.gmail.com> <680e31740611220358w7c67042ew81e644fad6396009@mail.gmail.com> <680e31740612021856x632c760ej1e2c22273a6196ad@mail.gmail.com> <45723E2B.9010103@verizon.net> Message-ID: <680e31740612021916l73cc49b8y2a889b768edfb2e3@mail.gmail.com> Well if I had to design a scenario to promote Firefox (which I've been given to understand is more compliant with W3C guidelines), this would be ta way to do it (if I could figure out what I did). Unfortunately however I need a predictable look across browsers and have lost that. The thing is that the Beeblebrox gila skin on pmwiki.org displays fine in MSIE. And it did for my wiki too until last month. Whatever I did I can't figure it out (or else I just can't undo it). I'm not sure what I should be looking for. I suppose I could reinstall the skin but that means redoing customizations. Mainly at this point it would help if someone had an educated guess (or better) as to what might cause this anomaly. TIA. Don On 12/2/06, Dr Fred C wrote: > > Sounds like Beeblebrox has been MicroShafted. > > Donald Z. Osborn wrote: > > Still haven't sorted this out, but it looks even worse in MSIE7 with some > lost functionality. I tried removing items that use extra javascripts > (statcounter, animations on the chance that was somehow interfering with > something (I'm down to wild guesses now) but MSIE doesn not like my use of > Beeblebrox Gila (Firefox is fully functional - no problem at all). > > Is Haran on this list? (The link from > http://www.pmwiki.org/wiki/Cookbook/BeeblebroxNetGila is dead) > > Can anyone look at a page like > http://www.panafril10n.org/wikidoc/pmwiki.php/PanAfrLoc/MajorLanguages in > MSIE and hazard a guess as to why it is so messed up? > > I may end up having to change skins or get all potential users to change > browsers. > > TIA... > > Don > > On 11/22/06, Donald Z. Osborn wrote: > > > > I still am having a problem with the Beeblebrox skin in MSIE (no problem > > in Firefox). If anyone can take a look and hazard a guess what it might be, > > that would be a great help. (URL below). TIA. Don > > > > On 11/9/06, Donald Z. Osborn wrote: > > > > > > Sorry to bother you all on this. Apparently it's something I did but > > > without touching the main config.php file or the gila.tmpl > > > > > > I have several wikigroup-specific config files - (name).php - but > > > can't see how those would affect this (switched one from BBG skin to PmWIki > > > but again that's a separate (name).php > > > > > > Added content and images. Is there any way that an animated gif (with > > > whatever script runs it) would interact with anything? (I added a couple of > > > flags to see.) > > > > > > (All this must get me in the running for dumb questions of the week) > > > > > > Don > > > > > > > > > > > > On 11/9/06, Donald Z. Osborn < dzosborn at gmail.com> wrote: > > > > > > > > If anyone with MSIE could comment on the rendering of > > > > BeeblebroxNetGila for this site I'd be most grateful. I am sure I checked it > > > > out earlier without seeing a problem. Display in Firefox is quite ideal. > > > > > > > > http://www.panafril10n.org/wikidoc/pmwiki.php/PanAfrLoc/ (I'm still > > > > in the process of various work on content, presentation and structure) > > > > > > > > TIA... > > > > > > > > Don > > > > > > > > > > > > > ------------------------------ > > _______________________________________________ > pmwiki-users mailing list > pmwiki-users at pmichaud.comhttp://www.pmichaud.com/mailman/listinfo/pmwiki-users > > ------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.430 / Virus Database: 268.15.4/563 - Release Date: 12/2/2006 9:59 AM > > > > -- > > Always, Dr Fred C > drfredc at drfredc.com > > -------------- next part -------------- An HTML attachment was scrubbed... URL: /pipermail/pmwiki-users/attachments/20061202/1c2138d2/attachment.html From robin at kallisti.net.nz Sat Dec 2 21:31:45 2006 From: robin at kallisti.net.nz (Robin Sheat) Date: Sun, 3 Dec 2006 16:31:45 +1300 Subject: [pmwiki-users] BeeblebroxNetGila in FireFox & MSIE6 In-Reply-To: <680e31740612021916l73cc49b8y2a889b768edfb2e3@mail.gmail.com> References: <680e31740611091210k7a3a376mfc9e05685433df50@mail.gmail.com> <45723E2B.9010103@verizon.net> <680e31740612021916l73cc49b8y2a889b768edfb2e3@mail.gmail.com> Message-ID: <200612031631.46101.robin@kallisti.net.nz> On Sunday 03 December 2006 16:16, Donald Z. Osborn wrote: > The thing is that the Beeblebrox gila skin on pmwiki.org displays fine in > MSIE. And it did for my wiki too until last month. Whatever I did I can't > figure it out (or else I just can't undo it). I'm not sure what I should be > looking for. I suppose I could reinstall the skin but that means redoing > customizations. Can you not download the original one, and diff it against your current one, and see what the differences are. Then test them one at a time to see which one is causing the problem. Robin. From dzosborn at gmail.com Sat Dec 2 21:44:13 2006 From: dzosborn at gmail.com (Donald Z. Osborn) Date: Sat, 2 Dec 2006 22:44:13 -0500 Subject: [pmwiki-users] BeeblebroxNetGila in FireFox & MSIE6 In-Reply-To: <200612031631.46101.robin@kallisti.net.nz> References: <680e31740611091210k7a3a376mfc9e05685433df50@mail.gmail.com> <45723E2B.9010103@verizon.net> <680e31740612021916l73cc49b8y2a889b768edfb2e3@mail.gmail.com> <200612031631.46101.robin@kallisti.net.nz> Message-ID: <680e31740612021944o22904383s2ff2a6195132bd0c@mail.gmail.com> I'll try that. I was wondering if a javascript might mess things up somehow, but removing one from the gila.tmpl (a counter script) did not make a difference, nor did removing animated flags from wiki page content. Other than that I haven't messed much with the config files or the skin files, but maybe I did something by accident without noticing. Don On 12/2/06, Robin Sheat wrote: > > On Sunday 03 December 2006 16:16, Donald Z. Osborn wrote: > > The thing is that the Beeblebrox gila skin on pmwiki.org displays fine > in > > MSIE. And it did for my wiki too until last month. Whatever I did I > can't > > figure it out (or else I just can't undo it). I'm not sure what I should > be > > looking for. I suppose I could reinstall the skin but that means redoing > > customizations. > Can you not download the original one, and diff it against your current > one, > and see what the differences are. Then test them one at a time to see > which > one is causing the problem. > > Robin. > > _______________________________________________ > pmwiki-users mailing list > pmwiki-users at pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: /pipermail/pmwiki-users/attachments/20061202/b391f20b/attachment.html From crisses at kinhost.org Sat Dec 2 22:36:21 2006 From: crisses at kinhost.org (Crisses) Date: Sat, 2 Dec 2006 23:36:21 -0500 Subject: [pmwiki-users] Page Rank recipe updated (pagerankstars.php) Message-ID: <169AFF79-D1ED-4A3C-8CB3-50A9F635CA8C@kinhost.org> Added in numeric type checking on entered data. Please update your recipe if you're using it. Crisses -- Souls are not defined by sexuality or color or race or anything else -- Souls are probably best defined by the feeling I get when I know I have done something good for someone else. -- found on a scrap of paper in my memorabilia folder, probably 10+ years old. It's my handwriting. I may even have come up with it. -------------- next part -------------- An HTML attachment was scrubbed... URL: /pipermail/pmwiki-users/attachments/20061202/55f082fd/attachment.html From katir at hindu.org Sat Dec 2 23:29:42 2006 From: katir at hindu.org (Sivakatirswami) Date: Sat, 02 Dec 2006 19:29:42 -1000 Subject: [pmwiki-users] Option Input on Forms (pulldown menu) Message-ID: <457260C6.80504@hindu.org> I'm using ZAPdata (trying to) But I understand the form input it build on top of PMwiki forms. I'm missing something basic: what is the form mark up for an option button that inserts a value from a preset drop down menu... final output of course looks like this (three different such input buttons)   Status:   Owner: But I don't see PMwiki form input control defined for this in the Basic Forms documentation at Pmwiki. ?? Sivakatirswami www.himalayanacademy.com From mtrumpol at cacegypt.org Sun Dec 3 03:07:24 2006 From: mtrumpol at cacegypt.org (Mark Trumpold) Date: Sun, 03 Dec 2006 11:07:24 +0200 Subject: [pmwiki-users] Upgrade Message-ID: Hi All Last time I upgraded it screwed everything up and took days to reset permissions. I want to avoid resetting permissions again as I have to talk to my host. I have it working nicely but would like to upgrade to the latest. I have downloaded and unzipped the 2.2.0 PM. So can I replace on my host only the: Pmwiki.php Scripts directories Are there other essential files that is needed? Thanks Mark From gmane at auxbuss.com Sun Dec 3 05:45:22 2006 From: gmane at auxbuss.com (marc) Date: Sun, 3 Dec 2006 11:45:22 -0000 Subject: [pmwiki-users] Losing the www. in site URL Message-ID: I have a site where I'm losing the initial www. on the URLs displayed in the browser's URL input field. So, www.example.com/pmwiki/Main displays as example.com/pmwiki/Main. Thus I click a link to http://www.example.com/pmwiki and get http://example.com/pmwiki/ This truncation is the same across the PmWiki part of the site. I tend to use: $ScriptUrl = 'http://'. $_SERVER['HTTP_HOST'] .'/pmwiki'; $PubDirUrl = 'http://'. $_SERVER['HTTP_HOST'] .'/pmwiki/pub'; in my local/config.php, so that I can use the same config/php locally for testing as on the live site. Checking the site I can see that: $_SERVER['HTTP_HOST']:www.example.com Nevertheless, I changed the above to: $ScriptUrl = 'http://www.example.com/pmwiki'; $PubDirUrl = 'http://www.example.com/pmwiki/pub'; What happened is that: a link to http://www.example.com/pmwiki displays http://example.com/pmwiki/ but the links are of the expected form: http://www.example.com/pmwiki/Main/WikiSandbox Does anyone know why the www. should be 'lost' initially? And why changing from $_SERVER['HTTP_HOST'] causes a change of behaviour? Thanks. -- Best, Marc From editor at fast.st Sun Dec 3 06:49:40 2006 From: editor at fast.st (The Editor) Date: Sun, 3 Dec 2006 07:49:40 -0500 Subject: [pmwiki-users] Option Input on Forms (pulldown menu) In-Reply-To: <457260C6.80504@hindu.org> References: <457260C6.80504@hindu.org> Message-ID: On 12/3/06, Sivakatirswami wrote: > I'm using ZAPdata (trying to) But I understand the form input it build > on top of PMwiki forms. > > I'm missing something basic: what is the form mark up for an option > button that inserts a value from a preset drop down menu... final output > of course looks like this (three different such input buttons) > >   Status:   Owner: > > But I don't see PMwiki form input control defined for this in the Basic > Forms documentation at Pmwiki. > > ?? > > Sivakatirswami > www.himalayanacademy.com Try etc. But actually, there is a way to construct these automatically, using pagelists. Basically, you create a Group, with one page for each task: TaskList.Task1 TaskList.Task2 etc. Then construct the select box dynamically like this: (:select name="todo-category":) (:pagelist group=TaskList name=-RecentChanges fmt="#selectlist":) (:selectend:) Lastly, you need to insert this in your Site.LocalTemplates page. ---- !!!fmt=#selectlist A simple list of select options. [@ [[#selectlist]] (:option value="{=$Name}":)(:keep {=$Name}:) [[#selectlistend]] @] ---- I made some modifications to what I have on my site to adapt to your needs (without testing the changes), but this should. If you set it up this way, all you need to do update the pull down menu (anywhere in the site it is found), you just create a new page TaskList.Task3. Voila it will appear in all this lists, just how you want. My suggestion was going to be that you create groups for ToDo's and Coders, and use pull down menu's like this for your data input. By the way, you can also make your Sidebars dynamic this way. Put something like this in the sidebar: CODERS: (:pagelist group=Coders name=-RecentChanges fmt="#simple":) (#simple is a standard pagelist that comes with PmWiki so you don't need to define it) The actual pages can be blank for now (just create them), but the next step will be to put groupfooters in each of those groups so you can click on a page and it will automatically create the pagelist of the tasks you want to show for that individual, status, or project. And then I think you will be about done with what you had in mind. Oh and we will have to put an upgrade from in your Todo group. (My recommendation is still one todo group, using threading to number the tasks). For this part, you could look at 1) the ZAP forum snippet for how to do threading. 2) the ZAP profiles snippet for how to do update forms 3) the ZAP pagelistfun snippet for some options on how to list tasks 4) and very important, do some reading on PmWiki about PageTextVariables and how to sort a Pagelist by them. Hope this helps you make some progress. One step at a time. Cheers Caveman From mini at nada.kth.se Sun Dec 3 07:09:34 2006 From: mini at nada.kth.se (Mikael Nilsson) Date: Sun, 03 Dec 2006 14:09:34 +0100 Subject: [pmwiki-users] AuthUser and DefaultGroup and farmconfig Message-ID: <1165151374.23426.5.camel@daneel> I'm sure this must have been asked before. I'm having a problem with a DefaultGroup and DefaultName setting that will not stick. I think I know why - essentially, the first call to ResolvePageName is made in authuser.php, which I call *before* setting any of them. Now, I'm sharing admins across a set of fields in a farm, and they are configured in farmconfig.php, and thus the call to authuser.php is made there. The DefaultGroup/Name is set in a field's config.php, thus after authuser.php is called, resulting in the default page being wrong Any hints on what to do? /Mikael -- Plus ?a change, plus c'est la m?me chose From gmane at auxbuss.com Sun Dec 3 07:28:43 2006 From: gmane at auxbuss.com (marc) Date: Sun, 3 Dec 2006 13:28:43 -0000 Subject: [pmwiki-users] AuthUser and DefaultGroup and farmconfig References: <1165151374.23426.5.camel@daneel> Message-ID: Mikael Nilsson said... > I'm sure this must have been asked before. > > I'm having a problem with a DefaultGroup and DefaultName setting that > will not stick. I think I know why - essentially, the first call to > ResolvePageName is made in authuser.php, which I call *before* setting > any of them. > > Now, I'm sharing admins across a set of fields in a farm, and they are > configured in farmconfig.php, and thus the call to authuser.php is made > there. > > The DefaultGroup/Name is set in a field's config.php, thus after > authuser.php is called, resulting in the default page being wrong > > Any hints on what to do? What I did (following Pm's advice) was create a file that performs the name changes, then include it before calling authuser.php. This file can sit in field/local That is, in farmconfig.php if (file_exists("local/fieldconfig.php")) include_once("local/fieldconfig.php"); include_once("$FarmD/scripts/authuser.php"); And field/local/fieldconfig.php looks something like: References: <1165151374.23426.5.camel@daneel> Message-ID: <1165152592.23426.7.camel@daneel> s?n 2006-12-03 klockan 14:09 +0100 skrev Mikael Nilsson: > I'm sure this must have been asked before. > > I'm having a problem with a DefaultGroup and DefaultName setting that > will not stick. I think I know why - essentially, the first call to > ResolvePageName is made in authuser.php, which I call *before* setting > any of them. > > Now, I'm sharing admins across a set of fields in a farm, and they are > configured in farmconfig.php, and thus the call to authuser.php is made > there. > > The DefaultGroup/Name is set in a field's config.php, thus after > authuser.php is called, resulting in the default page being wrong > > Any hints on what to do? I solved my own issue by calling include_once('local/config.php'); at the bottom of farmconfig.php, but just before the authuser call. Hope that's a good way to solve it. /Mikael -- Plus ?a change, plus c'est la m?me chose From mini at nada.kth.se Sun Dec 3 07:31:38 2006 From: mini at nada.kth.se (Mikael Nilsson) Date: Sun, 03 Dec 2006 14:31:38 +0100 Subject: [pmwiki-users] AuthUser and DefaultGroup and farmconfig In-Reply-To: References: <1165151374.23426.5.camel@daneel> Message-ID: <1165152698.23426.9.camel@daneel> s?n 2006-12-03 klockan 13:28 +0000 skrev marc: > Mikael Nilsson said... > > I'm sure this must have been asked before. > > > > I'm having a problem with a DefaultGroup and DefaultName setting that > > will not stick. I think I know why - essentially, the first call to > > ResolvePageName is made in authuser.php, which I call *before* setting > > any of them. > > > > Now, I'm sharing admins across a set of fields in a farm, and they are > > configured in farmconfig.php, and thus the call to authuser.php is made > > there. > > > > The DefaultGroup/Name is set in a field's config.php, thus after > > authuser.php is called, resulting in the default page being wrong > > > > Any hints on what to do? > > What I did (following Pm's advice) was create a file that performs the > name changes, then include it before calling authuser.php. This file can > sit in field/local > > That is, in farmconfig.php > > if (file_exists("local/fieldconfig.php")) > include_once("local/fieldconfig.php"); > > include_once("$FarmD/scripts/authuser.php"); Right, that's similar to my solution. Any reason not to include config.php in that fashion? /Mikael -- Plus ?a change, plus c'est la m?me chose From gmane at auxbuss.com Sun Dec 3 07:33:31 2006 From: gmane at auxbuss.com (marc) Date: Sun, 3 Dec 2006 13:33:31 -0000 Subject: [pmwiki-users] Losing the www. in site URL References: Message-ID: marc said... > I have a site where I'm losing the initial www. on the URLs displayed in > the browser's URL input field. So, www.example.com/pmwiki/Main displays > as example.com/pmwiki/Main. > > Thus I click a link to > http://www.example.com/pmwiki > and get > http://example.com/pmwiki/ > > This truncation is the same across the PmWiki part of the site. > > I tend to use: > > $ScriptUrl = 'http://'. $_SERVER['HTTP_HOST'] .'/pmwiki'; > $PubDirUrl = 'http://'. $_SERVER['HTTP_HOST'] .'/pmwiki/pub'; > > in my local/config.php, so that I can use the same config/php locally > for testing as on the live site. Checking the site I can see that: > $_SERVER['HTTP_HOST']:www.example.com > > Nevertheless, I changed the above to: > > $ScriptUrl = 'http://www.example.com/pmwiki'; > $PubDirUrl = 'http://www.example.com/pmwiki/pub'; > > What happened is that: > > a link to > http://www.example.com/pmwiki > displays > http://example.com/pmwiki/ > > but the links are of the expected form: > > http://www.example.com/pmwiki/Main/WikiSandbox > > Does anyone know why the www. should be 'lost' initially? > > And why changing from $_SERVER['HTTP_HOST'] causes a change of > behaviour? > > Thanks. Some more diagnostic info. The URL http://www.example.com/pmwiki -> http://example.com/pmwiki/ http://www.example.com/pmwiki/ -> http://www.example.com/pmwiki/ The former produces $_SERVER['HTTP_HOST'] = example.com the latter $_SERVER['HTTP_HOST'] = www.example.com I can't recreate this locally, only on a hosted site. Try these: http://auxbuss.com/phpinfo.php http://www.auxbuss.com/phpinfo.php The root .htaccess is: RewriteEngine on RewriteCond %{HTTP_HOST} ^auxbuss.com$ [NC] RewriteRule ^(.*)$ http://www.auxbuss.com/$1 [R=301] http://auxbuss.com/pmwiki/phpinfo.php http://www.auxbuss.com/pmwiki/phpinfo.php /pmwiki .htaccess is: RewriteEngine on RewriteBase /pmwiki # Send requests without parameters to pmwiki.php. RewriteRule ^$ index.php [L] # Send requests for index.php to pmwiki.php. RewriteRule ^index\.php$ pmwiki.php [L] # Send requests to pmwiki.php, appending the query string part. RewriteRule ^([^/a-z].*) index.php?n=$1 [QSA,L] -- Best, Marc From commentgg at hotmail.com Sun Dec 3 07:55:09 2006 From: commentgg at hotmail.com (J. Meijer) Date: Sun, 3 Dec 2006 13:55:09 +0000 Subject: [pmwiki-users] pattern matching: Message-ID: On 12/2/06, The Editor wrote: I'm working on a "special" project and trying to get this pattern match to work and it almost works, but I seem to be having some problems with :, -, and . in the [ ]. preg_replace('|\{([\-\.A-Za-z0-9:_]+)\}|e', "Function($1)", $text); I'm trying to get this to match expressions like the following: {TEXT:Group.Name-36_End} Any help would be appreciated. Cheers, Caveman ---------- Hi Caveman, I'm not at my desk, so I'm unable to test the following. The problem with your regex seems to be with delimiters: I don't think the pipe | symbol is allowed to be used. It's used within regexes. Furthermore, you don't need to escape anything but the delimiters inside a regex. That includes the charset ] end-delimiter. You did place the '-' at the start so it doesn't get interpreted as a a-z range. Your regex becomes simpler: preg_replace('!\{([-.A-Za-z0-9:_]+)\}!e', "Function($1)", $text); Hopefully this'll get you going again. ps Do you really want such a free form regex?? You'd normally want to decompose into elements.. and so strictly match each element. /jm _________________________________________________________________ All-in-one security and maintenance for your PC.? Get a free 90-day trial! http://www.windowsonecare.com/purchase/trial.aspx?sc_cid=wl_wlmail From mail at randgaenge.net Sun Dec 3 09:13:25 2006 From: mail at randgaenge.net (Thomas N. Burg) Date: Sun, 3 Dec 2006 16:13:25 +0100 Subject: [pmwiki-users] htgroup again Message-ID: <61E92C59-C910-4FC7-AF46-AA0A855FEAEE@randgaenge.net> > > > > Hi, > > > > a brief question. I know how the create the htgroup file but how > do I > > tell a page/group that only a certain group has access. With users I > > do it like "id:tom id:eve" (for 2 users) and how does in work with > > groups? > > >From http://www.pmwiki.org/wiki/Site/AuthUser > > Authorization groups are specified with a leading "@" sign. > Define either the login accounts belonging to a group or the > groups for a login account: > > @writers: alice, bob > carol: @editors, @writers > @admins: alice, dave > > Then use "@group" as a password in ?action=attr or > $DefaultPasswords. > > Hagan Hi Hagan, don't quite understand that. Example: I created a group called: city, that contains 25 users with their own login and pwd Now going to GoupAttributes?action=attr before the availbility of htgroup I did paste all the ids in to the form which is a horrible exercise if memberships changes. Now what's the proper waay to do it at this place with groups? Thanks Thomas From tmdowling at gmail.com Sun Dec 3 10:31:43 2006 From: tmdowling at gmail.com (Tegan Dowling) Date: Sun, 3 Dec 2006 10:31:43 -0600 Subject: [pmwiki-users] [pmwiki-devel] code snippet request for documentation's sake In-Reply-To: <5C3FE31E-04D6-433E-AC41-E8626978D9F3@kinhost.org> References: <5C3FE31E-04D6-433E-AC41-E8626978D9F3@kinhost.org> Message-ID: <5c8455a0612030831w9315293hdf5056ab538e3436@mail.gmail.com> Do you mean (:if enabled AuthPw:) * You're logged in(:ifend:) ? On 12/2/06, Crisses wrote: > > > I need this for a recipe & for documenting how people should handle things > in recipes. > > When programming, if you need to check whether someone is logged in? > > If you want to check if they're logged in and ask them to please do so? > > > I already got a code snippet for checking authentication against page > permissions, what I want is a simple true/false on whether someone is > currently logged in. I saw some items in PmWiki.php, but wasn't sure if > they were what I was looking for. > > > Thanks! > > > Crisses > _______________________________________________ > pmwiki-devel mailing list > pmwiki-devel at pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-devel > > > From tmdowling at gmail.com Sun Dec 3 10:39:11 2006 From: tmdowling at gmail.com (Tegan Dowling) Date: Sun, 3 Dec 2006 10:39:11 -0600 Subject: [pmwiki-users] Upgrade In-Reply-To: References: Message-ID: <5c8455a0612030839o4de48874nb68297d098b7479a@mail.gmail.com> On 12/3/06, Mark Trumpold wrote: > Hi All > > Last time I upgraded it screwed everything up and took days to reset > permissions. I want to avoid resetting permissions again as I have to talk > to my host. > > I have it working nicely but would like to upgrade to the latest. I have > downloaded and unzipped the 2.2.0 PM. > > So can I replace on my host only the: > Pmwiki.php > Scripts directories > > Are there other essential files that is needed? > The contents of wikilib.d? From gmane at auxbuss.com Sun Dec 3 12:06:34 2006 From: gmane at auxbuss.com (marc) Date: Sun, 3 Dec 2006 18:06:34 -0000 Subject: [pmwiki-users] Losing the www. in site URL References: Message-ID: marc said... > The root .htaccess is: > > RewriteEngine on > RewriteCond %{HTTP_HOST} ^auxbuss.com$ [NC] > RewriteRule ^(.*)$ http://www.auxbuss.com/$1 [R=301] I'm almost there; one of the four cases doesn't work. Leaving the root .htaccess as above, but adding two line to pmwiki/.htaccess like this: RewriteEngine on RewriteCond %{HTTP_HOST} ^auxbuss.com$ [NC] RewriteRule ^(.*)$ http://www.auxbuss.com/pmwiki/$1 [R=301] RewriteBase /pmwiki # Send requests without parameters to pmwiki.php. RewriteRule ^$ index.php [L] # Send requests for index.php to pmwiki.php. RewriteRule ^index\.php$ pmwiki.php [L] # Send requests to pmwiki.php, appending the query string part. RewriteRule ^([^/a-z].*) index.php?n=$1 [QSA,L] The following URLs work as expected: http://www.auxbuss.com/pmwiki/ http://www.auxbuss.com/pmwiki http://auxbuss.com/pmwiki/ But this one fails: http://auxbuss.com/pmwiki with http://www.auxbuss.com/pmwiki//home/domains/auxbuss.com/web/pmwiki or locally http://www.blah.com/pmwiki//var/www/pmwiki I presume that this is due to the /pmwiki in http://auxbuss.com/pmwiki being treated as a file reference in some way. However, in that case, I would expect a RewriteRule in the root .htaccess to respond, but nothing I tried worked. Anyone able to help, please? -- Best, Marc From editor at fast.st Sun Dec 3 12:38:13 2006 From: editor at fast.st (The Editor) Date: Sun, 3 Dec 2006 13:38:13 -0500 Subject: [pmwiki-users] pattern matching: In-Reply-To: References: Message-ID: On 12/3/06, J. Meijer wrote: > > On 12/2/06, The Editor wrote: > I'm working on a "special" project and trying to get this pattern > match to work and it almost works, but I seem to be having some > problems with :, -, and . in the [ ]. > > preg_replace('|\{@ ([\-\.A-Za-z0-9:_]+)\}|e', "Function($1)", $text); > > I'm trying to get this to match expressions like the following: > > {@ TEXT:Group.Name-36_End} > > Any help would be appreciated. > > Cheers, > Caveman > > ---------- > > > Hi Caveman, > > I'm not at my desk, so I'm unable to test the following. > > The problem with your regex seems to be with delimiters: I don't think the pipe | symbol is allowed to be used. It's used within regexes. Furthermore, you don't need to escape anything but the delimiters inside a regex. That includes the charset ] end-delimiter. You did place the '-' at the start so it doesn't get interpreted as a a-z range. > > Your regex becomes simpler: > > preg_replace('!\{@ ([-.A-Za-z0-9:_]+)\}!e', "Function($1)", $text); > > Hopefully this'll get you going again. > > ps Do you really want such a free form regex?? You'd normally want to decompose into elements.. and so strictly match each element. Thanks so much jm, But I'm still having troubles with some of the things. Here's the best I've been able to get so far, but I can't seem to get past it... '!\{@ ([_A-Za-z0-9]+)\}!e' 1) Whenever I put - into the [], whether it's escaped or not, $1 goes to 0 instead of the substring it's supposed to be. Bad. 2) Whenever I put ^ into the [] (not at beginning), whether it's escaped or not, $1 goes to null instead of the substring it's supposed to be. More bad. 3) Whenever I put : into the [], whether it's escaped or not, I get the white screen of death (php error--still getting no error messags). Worse still. 4) Whenever I put . into the [] whether it's escaped or not, $1 shows up with everything but the . in the output. A little bad. The only thing I can seem to get to work is the _. I've been scouring the web, trying to find tutorials and help, I'm learning a lot but none of the tutorials explain this kind of behavior. Am I missing something? Cheers, Caveman From design5 at softflow.co.uk Sun Dec 3 12:51:29 2006 From: design5 at softflow.co.uk (Hans) Date: Sun, 3 Dec 2006 18:51:29 +0000 Subject: [pmwiki-users] pattern matching: In-Reply-To: References: Message-ID: <23528477.20061203185129@softflow.co.uk> Sunday, December 3, 2006, 1:15:44 AM, The wrote: > preg_replace('|\{([\-\.A-Za-z0-9:_]+)\}|e', "Function($1)", $text); > I'm trying to get this to match expressions like the following: > {TEXT:Group.Name-36_End} Can you say more what kind of pattern you are looking for, i.e. in exact words, or more examples of what it should match and what it should not match? (its easy to match anything, but what should it exclude?) Hans From aczaszyn at telus.net Sun Dec 3 13:01:34 2006 From: aczaszyn at telus.net (Aleksander Czaszynski) Date: Sun, 3 Dec 2006 11:01:34 -0800 Subject: [pmwiki-users] Does webadmin work for Linux? In-Reply-To: References: Message-ID: <200612031101.34208.aczaszyn@telus.net> Hi All I tried to install "webadmin" on Linux box and it doesn't work. Does someone work with webadmin on Linux? Is this code only for windows. For windows it works fine Aleks From lighans at gmail.com Sun Dec 3 13:07:25 2006 From: lighans at gmail.com (Hans Huijgen) Date: Sun, 3 Dec 2006 20:07:25 +0100 Subject: [pmwiki-users] Does webadmin work for Linux? In-Reply-To: <200612031101.34208.aczaszyn@telus.net> References: <200612031101.34208.aczaszyn@telus.net> Message-ID: didn't work for me because my host is with PHP 5.0. I use filethingie if I don't use FTP. 2006/12/3, Aleksander Czaszynski : > > Hi All > I tried to install "webadmin" on Linux box and it doesn't work. > Does someone work with webadmin on Linux? > Is this code only for windows. > For windows it works fine -- Groetjes Hans http://www.fali.nl From lu.gmane at wischik.com Sun Dec 3 14:59:20 2006 From: lu.gmane at wischik.com (Lucian Wischik) Date: Sun, 3 Dec 2006 20:59:20 +0000 (UTC) Subject: [pmwiki-users] urlapprove doesn't work on (:included:) pages Message-ID: The urlapprove recipe doesn't work on the sidebar, as explained here: http://www.pmwiki.org/wiki/PmWiki/UrlApprovals More generally it seems not to work on any included page. This is a pain! Obviously it would be good in a future version of pmwiki for ?action=approvesites to scan ALL included pages, including the sidebar, and approve the links on all of them. That seems complicated to code. So I wonder if a smaller extension to ?action=approvesites is possible. When we're at a particular page Group/Page, in my wiki I happen to know that Comments/Group-Page will be (:included:). So when I receive Group/Page?action=approvesites, I'd also like to automatically do Comments/Group-Page?action=approvesites. Is this possible, please? Can anyone advis how to achieve it? Thanks in advance for any help. -- Lucian From immunophenotype at gmail.com Sun Dec 3 15:09:09 2006 From: immunophenotype at gmail.com (phenotype) Date: Sun, 3 Dec 2006 16:09:09 -0500 Subject: [pmwiki-users] SSL: Pmwiki pages containing some unencrypted information? Message-ID: Hi folks, I've just used the cookbook recipe that forces SSL on every page on my wiki, but Camino (and I imagine other Mozilla-based browsers) complains that there is a mix of encrypted and unencrypted information on every wiki page. Does anyone know what might be causing this error, and what I can do to fix it? I'm using using a self-signed certificate in Apache 2.0 on Linux, I believe. Thanks a lot! From robin at kallisti.net.nz Sun Dec 3 16:57:30 2006 From: robin at kallisti.net.nz (Robin Sheat) Date: Mon, 4 Dec 2006 11:57:30 +1300 Subject: [pmwiki-users] SSL: Pmwiki pages containing some unencrypted information? In-Reply-To: References: Message-ID: <200612041157.30288.robin@kallisti.net.nz> On Monday 04 December 2006 10:09, phenotype wrote: > I've just used the cookbook recipe that forces SSL on every page on ? > my wiki, but Camino (and I imagine other Mozilla-based browsers) ? > complains that there is a mix of encrypted and unencrypted ? > information on every wiki page. Does anyone know what might be ? > causing this error, and what I can do to fix it? A quick way to check is to view the source, and do a search for 'http:' in the page. That should find anything not linking to https://... My guess would be images. Robin. From mtrumpol at cacegypt.org Mon Dec 4 03:01:38 2006 From: mtrumpol at cacegypt.org (Mark Trumpold) Date: Mon, 04 Dec 2006 11:01:38 +0200 Subject: [pmwiki-users] Groupfooter or template? Message-ID: Hi All I am trying to set my wiki up so that on every page appears, editable sections under Horizontal rules and a Heading ------ References (Edit) ----- External Links (Edit) ----- Comments I have the section edit already set but if I do a group footer I do not get an editable section for 'references' or even if I edit page then the 'references' doesn't show. I would like to have this as the students need to reference their work Thanks Mark From design5 at softflow.co.uk Mon Dec 4 03:12:39 2006 From: design5 at softflow.co.uk (Hans) Date: Mon, 4 Dec 2006 09:12:39 +0000 Subject: [pmwiki-users] Groupfooter or template? In-Reply-To: References: Message-ID: <1137729504.20061204091239@softflow.co.uk> Monday, December 4, 2006, 9:01:38 AM, Mark wrote: > I have the section edit already set but if I do a group footer I do not get > an editable section for 'references' or even if I edit page then the > 'references' doesn't show. I would like to have this as the students need to > reference their work What exactly did you put in GroupFooter? Hans From design5 at softflow.co.uk Mon Dec 4 03:21:38 2006 From: design5 at softflow.co.uk (Hans) Date: Mon, 4 Dec 2006 09:21:38 +0000 Subject: [pmwiki-users] Upgrade In-Reply-To: References: Message-ID: <255473120.20061204092138@softflow.co.uk> Sunday, December 3, 2006, 9:07:24 AM, Mark wrote: > I have it working nicely but would like to upgrade to the latest. I have > downloaded and unzipped the 2.2.0 PM. > So can I replace on my host only the: > Pmwiki.php > Scripts directories > Are there other essential files that is needed? The biggest change to the 2.20 beta versions is the use of relative page variables. This change did affect skins which include wiki pages for their page layout. For instance the pmwiki default skin using Site.PageActions. I recommend for any pmwiki upgrade to upload all the files in all the directories coming with the distribution, overwriting the files from the previous installation. But if you had lots of trouble last time it may not be too wise to upgrade to a beta version, since some features may change still. if you want to use the beta, be prepared to spend time and change things as they arise. Otherwise stick to what you got and wait till the current beta series is finished and emerges as a stable version 2.2.0 Hans From mtrumpol at cacegypt.org Mon Dec 4 03:21:15 2006 From: mtrumpol at cacegypt.org (Mark Trumpold) Date: Mon, 04 Dec 2006 11:21:15 +0200 Subject: [pmwiki-users] Groupfooter or template? In-Reply-To: <1137729504.20061204091239@softflow.co.uk> Message-ID: Hi Hans Well, I placed a horizontal rule, a heading (!!!!!) and they showed up but you couldn't edit the section below the heading like the rest of the page. Also, if you try to edit the page then they didn't show up. I have a section edit script running that allows you to edit a section after a heading. I currently have your comment box there Mark On 4/12/06 11:12 AM, "Hans" wrote: > Monday, December 4, 2006, 9:01:38 AM, Mark wrote: > >> I have the section edit already set but if I do a group footer I do not get >> an editable section for 'references' or even if I edit page then the >> 'references' doesn't show. I would like to have this as the students need to >> reference their work > > What exactly did you put in GroupFooter? > > > Hans > From design5 at softflow.co.uk Mon Dec 4 04:05:09 2006 From: design5 at softflow.co.uk (Hans) Date: Mon, 4 Dec 2006 10:05:09 +0000 Subject: [pmwiki-users] Groupfooter or template? In-Reply-To: References: <1137729504.20061204091239@softflow.co.uk> Message-ID: <765822639.20061204100509@softflow.co.uk> Monday, December 4, 2006, 9:21:15 AM, Mark wrote: > Well, I placed a horizontal rule, a heading (!!!!!) and they showed up but > you couldn't edit the section below the heading like the rest of the page. > Also, if you try to edit the page then they didn't show up. > I have a section edit script running that allows you to edit a section after > a heading. > I currently have your comment box there Just tested sectionedit.php with commentboxplus.php and they work fine together. In the page I put: !!!section one bla bla !!!section two bla bla !!!comments In the GroupFooter I put: [[<<]] (:commentboxchrono:) All sections are individually editable, as well as all message posts individually, since they have a heading with !!!!! in each. Hans From mini at nada.kth.se Mon Dec 4 04:09:38 2006 From: mini at nada.kth.se (Mikael Nilsson) Date: Mon, 04 Dec 2006 11:09:38 +0100 Subject: [pmwiki-users] SSI, apache2.0 and pmwiki In-Reply-To: <1163529291.6351.3.camel@daneel> References: <1162839498.6798.21.camel@daneel> <1163529291.6351.3.camel@daneel> Message-ID: <1165226979.6621.15.camel@daneel> For the archives, I solved my issue by restructuring the site so that I could manage the templates by PHP includes from the wiki side, and by SSI includes from the static side. Nice that SSI understands php pages... /Mikael tis 2006-11-14 klockan 19:34 +0100 skrev Mikael Nilsson: > Does anybody have *any* idea? > > I don't like the idea of having to recreate my templates system... > > /Mikael > > > m?n 2006-11-06 klockan 19:58 +0100 skrev Mikael Nilsson: > > Hi! > > > > I'm having trouble since upgrading to apache 2.0. > > > > Our site, at http://kmr.nada.kth.se is a mix of old, static html pages > > rendered using SSI templates and pmwiki, using the same templates. > > > > For the static pages, it works like this: > > > > 1. HTML page SSI-includes header.html and footer.html > > 2. header SSI-includes navbar.html > > 3. navbar SSI-includes blog.php and news.php > > 4. blog/news.php uses magpierss to render RSS-imported feeds to the > > left > > > > This works well. I integrated this site with pmwiki, doing like so: > > > > pmwiki loads kmrwiki.tmpl > > kmrwiki.tmpl calls function includeheader and includefooter (defined > > in config.php) > > includeheader calls PHP include() on header.html > > > > then the rest as above. > > > > So, I have a recursive SSI/PHP setup. > > > > Now, everything worked with apache 1.3. Pmwiki rendered fine, the static > > pages were synced, changes in the SSI templates were visible on wiki > > pages, blog feed was visible in both cases etc. > > > > Now, after an upgrade to apache 2, everything works EXCEPT I cannot > > login. See the front page at http://kmr.nada.kth.se (which is a wiki > > page), which works. But clicking edit, I get truncated output, see > > http://kmr.nada.kth.se/wiki/Main/Front?action=edit > > > > I tracked this down to step 3 - including *ANY* PHP file from within an > > SSI file did not work, not even an empty one! Thus, removing the > > blog.php and news.php, replacing them with a call to an empty text.php > > still exhibited the same problem. > > > > Note that this all works *perfectly* well for rendering the pages (as > > you can see on the front page), and if I disable the php includes, > > login, and re-enable them again, I can edit without issues. So the > > problem is *only* with the login page itself. Everything else works. > > > > Any ideas? I tried upgrading to pmwiki-2.2.0-beta15, but no change. > > > > /Mikael > > > > -- Plus ?a change, plus c'est la m?me chose From kat_lists at katspace.homelinux.org Mon Dec 4 05:08:29 2006 From: kat_lists at katspace.homelinux.org (Kathryn Andersen) Date: Mon, 4 Dec 2006 22:08:29 +1100 Subject: [pmwiki-users] Groupfooter or template? In-Reply-To: References: Message-ID: <20061204110829.GA14115@katla.katspace.homelinux.org> On Mon, Dec 04, 2006 at 11:01:38AM +0200, Mark Trumpold wrote: > Hi All > > I am trying to set my wiki up so that on every page appears, editable > sections under Horizontal rules and a Heading > > ------ > References (Edit) > > ----- > External Links (Edit) > > ----- > Comments > > > > I have the section edit already set but if I do a group footer I do not get > an editable section for 'references' or even if I edit page then the > 'references' doesn't show. I would like to have this as the students need to > reference their work Er, if you're putting the above into the GroupFooter, then of course they can't be edited as part of the page, because they're part of the GroupFooter. You need to use a template. The group footer is for things that you want to appear at the bottom of every page, things that *don't* need to be edited. Kathryn Andersen -- _--_|\ | Kathryn Andersen / \ | \_.--.*/ | GenFicCrit mailing list v | ------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe From mtrumpol at cacegypt.org Mon Dec 4 05:15:15 2006 From: mtrumpol at cacegypt.org (Mark Trumpold) Date: Mon, 04 Dec 2006 13:15:15 +0200 Subject: [pmwiki-users] Comments #2 revisted Message-ID: Hi Hans and all Thanks Hans for working with all this, you have been great. Since 2.2.O is a beta and there may be changes in the pipe line. Coupled with my kids use this daily I don't want to keep upgrading pmwiki, so I will wait until 2.2.0 is done upgrading and then upgrade So can I make a small link next to the edit and view links on a content page that takes to discussion page for that content page only. Can I also, update the comment page with a box stating that a discussion/comments about this content page are underway and thus you need to visit the discussion/comments page Thanks Mark. From design5 at softflow.co.uk Mon Dec 4 05:36:30 2006 From: design5 at softflow.co.uk (Hans) Date: Mon, 4 Dec 2006 11:36:30 +0000 Subject: [pmwiki-users] Comments #2 revisted In-Reply-To: References: Message-ID: <1611750072.20061204113630@softflow.co.uk> Monday, December 4, 2006, 11:15:15 AM, Mark wrote: > So can I make a small link next to the edit and view links on a content page > that takes to discussion page for that content page only. Can I also, update > the comment page with a box stating that a discussion/comments about this > content page are underway and thus you need to visit the discussion/comments > page Go to Site.PageActions (you are using pmwiki default skin) and edit this page and add a new link: *[[{FullName}-Discussion| Discuss]] which creates a link to page PageName-Discussion, a new page for discussing PageName. To tie PageName-Discussion to PageName, two possibilities are: a) create a link back. b) include PageName at the top of the discussion page. For a) add to config.php: $BaseNamePatterns['/-Discussion$/'] = ''; Then you can use as a link from PageName-discussion to PageName: Back to [[{$BaseName}]] {$BaseName} is a page variable which strips the -Discussion part off the page name, i.e. any part defined in $BaseNamePatterns. For b) add to config.php: $BaseNamePatterns['/-Discussion$/'] = ''; add to discussion page (:include {$BaseName}:) Lastly, you could make the link to the discussion page more intelligent, by writing it on Site.PageActions like this: (:if exist {$FullName}-Discussion:) *[[{$FullName}-Discussion| Discuss]] (:if !exist {$FullName}-Discussion:) *[[{$FullName}-Discussion| Create Discussion]](:if:) but you still may have to content with aquestion mark beside the link to a non-existent page. Note that if you eventually upgrade to pmwiki 2.2.0 you would need to change all occurences of {$FullName} into {*$FullName} Hans From design5 at softflow.co.uk Mon Dec 4 05:42:32 2006 From: design5 at softflow.co.uk (Hans) Date: Mon, 4 Dec 2006 11:42:32 +0000 Subject: [pmwiki-users] Comments #2 revisted In-Reply-To: <1611750072.20061204113630@softflow.co.uk> References: <1611750072.20061204113630@softflow.co.uk> Message-ID: <1312269570.20061204114232@softflow.co.uk> Monday, December 4, 2006, 11:36:30 AM, Hans wrote: > (:if exist {$FullName}-Discussion:) > *[[{$FullName}-Discussion| Discuss]] > (:if !exist {$FullName}-Discussion:) > *[[{$FullName}-Discussion| Create Discussion]](:if:) Sorry, it should be 'exists' instead of 'exist' in the above: (:if exists {$FullName}-Discussion:) *[[{$FullName}-Discussion| Discuss]] (:if !exists {$FullName}-Discussion:) *[[{$FullName}-Discussion| Create Discussion]](:if:) Hans From gmane at auxbuss.com Mon Dec 4 06:18:08 2006 From: gmane at auxbuss.com (marc) Date: Mon, 4 Dec 2006 12:18:08 -0000 Subject: [pmwiki-users] Losing the www. in site URL References: Message-ID: marc said... > marc said... > > > The root .htaccess is: > > > > RewriteEngine on > > RewriteCond %{HTTP_HOST} ^auxbuss.com$ [NC] > > RewriteRule ^(.*)$ http://www.auxbuss.com/$1 [R=301] > > I'm almost there; one of the four cases doesn't work. > > Leaving the root .htaccess as above, but adding two line to > pmwiki/.htaccess like this: > > RewriteEngine on > RewriteCond %{HTTP_HOST} ^auxbuss.com$ [NC] > RewriteRule ^(.*)$ http://www.auxbuss.com/pmwiki/$1 [R=301] > RewriteBase /pmwiki > # Send requests without parameters to pmwiki.php. > RewriteRule ^$ index.php [L] > # Send requests for index.php to pmwiki.php. > RewriteRule ^index\.php$ pmwiki.php [L] > # Send requests to pmwiki.php, appending the query string part. > RewriteRule ^([^/a-z].*) index.php?n=$1 [QSA,L] > > The following URLs work as expected: > > http://www.auxbuss.com/pmwiki/ > http://www.auxbuss.com/pmwiki > http://auxbuss.com/pmwiki/ > > But this one fails: > > http://auxbuss.com/pmwiki > > with > http://www.auxbuss.com/pmwiki//home/domains/auxbuss.com/web/pmwiki > or locally > http://www.blah.com/pmwiki//var/www/pmwiki > > I presume that this is due to the /pmwiki in http://auxbuss.com/pmwiki > being treated as a file reference in some way. However, in that case, I > would expect a RewriteRule in the root .htaccess to respond, but nothing > I tried worked. > > Anyone able to help, please? Spike this one. I will explain, hopefully more simply, in another thread, -- Best, Marc From gmane at auxbuss.com Mon Dec 4 06:18:09 2006 From: gmane at auxbuss.com (marc) Date: Mon, 4 Dec 2006 12:18:09 -0000 Subject: [pmwiki-users] Clean URLs .htaccess mod_rewrite problem Message-ID: Hi, Installation is a default Pmwiki, latest version. I'm trying, but failing, to route these (with no trailing slashes) http://www.auxbuss.com/pmwiki -> http://www.auxbuss.com/pmwiki/ http://auxbuss.com/pmwiki -> http://www.auxbuss.com/pmwiki/ The same URLS with trailing slashes work fine. Namely, http://www.auxbuss.com/pmwiki/ -> http://www.auxbuss.com/pmwiki/ http://auxbuss.com/pmwiki/ -> http://www.auxbuss.com/pmwiki/ www/pmwiki/.htaccess is: RewriteEngine on # if no trailing slash RewriteCond $1 !/$ # but is a directory when we add a trailing slash RewriteCond %{REQUEST_FILENAME}/ -d # then add slash and redirect RewriteRule (.+) http://www.auxbuss.com/$1/ [R=301,L] RewriteCond %{HTTP_HOST} ^auxbuss.com$ [NC] RewriteRule ^(.*)$ http://www.auxbuss.com/pmwiki/$1 [R=301] RewriteBase /pmwiki # Send requests without parameters to pmwiki.php. RewriteRule ^$ index.php [L] # Send requests for index.php to pmwiki.php. RewriteRule ^index\.php$ pmwiki.php [L] # Send requests to pmwiki.php, appending the query string part. RewriteRule ^([^/a-z].*) index.php?n=$1 [QSA,L] Without the first condition/rule set ({REQUEST_FILENAME}, etc.) http://www.auxbuss.com/pmwiki -> http://www.auxbuss.com/pmwiki/ works okay, because it the first condition/rule set that isn't correct. The erroneous result is: http://www.auxbuss.com//home/domains/auxbuss.com/web/pmwiki/ In other words the mod_rewrite %{REQUEST_FILENAME} variable is being used for the $1 in the rewrite rule instead of 'pmwiki', as I want. Can someone please advise on the correct way to do this. Thanks. -- Best, Marc From mike at widowitz.com Mon Dec 4 07:09:52 2006 From: mike at widowitz.com (Mike) Date: Mon, 04 Dec 2006 14:09:52 +0100 Subject: [pmwiki-users] Edit with Preview Message-ID: <45741E20.3010008@widowitz.com> Hello, for a very specific reason, I'd like to add a button "Edit with Preview" to the action items (View, Edit, Print) of my PmWiki. I.e., I want the result of clicking "Edit" and then "Preview" with just one click. Is there any way to achieve that? Thanks, Mike From gmane at auxbuss.com Mon Dec 4 07:27:01 2006 From: gmane at auxbuss.com (marc) Date: Mon, 4 Dec 2006 13:27:01 -0000 Subject: [pmwiki-users] Clean URLs .htaccess mod_rewrite problem References: Message-ID: marc said... > Hi, > > Installation is a default Pmwiki, latest version. > > I'm trying, but failing, to route these (with no trailing slashes) > > http://www.auxbuss.com/pmwiki -> http://www.auxbuss.com/pmwiki/ > http://auxbuss.com/pmwiki -> http://www.auxbuss.com/pmwiki/ > > The same URLS with trailing slashes work fine. Namely, > > http://www.auxbuss.com/pmwiki/ -> http://www.auxbuss.com/pmwiki/ > http://auxbuss.com/pmwiki/ -> http://www.auxbuss.com/pmwiki/ > > www/pmwiki/.htaccess is: > > RewriteEngine on > > # if no trailing slash > RewriteCond $1 !/$ > # but is a directory when we add a trailing slash > RewriteCond %{REQUEST_FILENAME}/ -d > # then add slash and redirect > RewriteRule (.+) http://www.auxbuss.com/$1/ [R=301,L] > > RewriteCond %{HTTP_HOST} ^auxbuss.com$ [NC] > RewriteRule ^(.*)$ http://www.auxbuss.com/pmwiki/$1 [R=301] > RewriteBase /pmwiki > # Send requests without parameters to pmwiki.php. > RewriteRule ^$ index.php [L] > # Send requests for index.php to pmwiki.php. > RewriteRule ^index\.php$ pmwiki.php [L] > # Send requests to pmwiki.php, appending the query string part. > RewriteRule ^([^/a-z].*) index.php?n=$1 [QSA,L] > > > Without the first condition/rule set ({REQUEST_FILENAME}, etc.) > http://www.auxbuss.com/pmwiki -> http://www.auxbuss.com/pmwiki/ > works okay, because it the first condition/rule set that isn't correct. > > The erroneous result is: > > http://www.auxbuss.com//home/domains/auxbuss.com/web/pmwiki/ > > In other words the mod_rewrite %{REQUEST_FILENAME} variable is being > used for the $1 in the rewrite rule instead of 'pmwiki', as I want. > > Can someone please advise on the correct way to do this. Thanks. For everyone who has been thrilled to follow this tale, I thought you might like to know that I found the solution. RewriteCond $1 !/$ RewriteCond %{REQUEST_FILENAME}/ -d RewriteRule (.+) $1/ [N] This is okay for each field too, in a regular farm setup. Should this go in the docs? -- Best, Marc From mark at ruthtrumpold.id.au Mon Dec 4 08:36:37 2006 From: mark at ruthtrumpold.id.au (Mark Trumpold) Date: Mon, 04 Dec 2006 16:36:37 +0200 Subject: [pmwiki-users] Get rid of Message-ID: Hi all I have a 'comments' link that has shown up while trying to set something up, now I cant get rid of it. Its at the bottom of the page next to edit, history, print ... and the date modified. Where is it? So I can remove it. Thanks Mark From design5 at softflow.co.uk Mon Dec 4 08:39:52 2006 From: design5 at softflow.co.uk (Hans) Date: Mon, 4 Dec 2006 14:39:52 +0000 Subject: [pmwiki-users] Get rid of In-Reply-To: References: Message-ID: <1796663898.20061204143952@softflow.co.uk> Monday, December 4, 2006, 2:36:37 PM, Mark wrote: > I have a 'comments' link that has shown up while trying to set something up, > now I cant get rid of it. Its at the bottom of the page next to edit, > history, print ... and the date modified. Where is it? So I can remove it. in the skin template I suppose (using my best parapsychological powers here...) Hans From dominique.faure at gmail.com Mon Dec 4 09:04:42 2006 From: dominique.faure at gmail.com (Dominique Faure) Date: Mon, 4 Dec 2006 16:04:42 +0100 Subject: [pmwiki-users] Edit with Preview In-Reply-To: <45741E20.3010008@widowitz.com> References: <45741E20.3010008@widowitz.com> Message-ID: <599dbcaf0612040704vee14179mb2fe54b00b47d30a@mail.gmail.com> On 12/4/06, Mike wrote: > Hello, > for a very specific reason, I'd like to add a button "Edit with Preview" > to the action items (View, Edit, Print) of my PmWiki. I.e., I want the > result of clicking "Edit" and then "Preview" with just one click. Is > there any way to achieve that? > just add: if ($action == 'edit') $_POST['preview'] = 1; in your config.php. Dom From mark at ruthtrumpold.id.au Mon Dec 4 09:07:27 2006 From: mark at ruthtrumpold.id.au (Mark Trumpold) Date: Mon, 04 Dec 2006 17:07:27 +0200 Subject: [pmwiki-users] Get rid of In-Reply-To: <1796663898.20061204143952@softflow.co.uk> Message-ID: LOL It worked ... Thanks Mark On 4/12/06 4:39 PM, "Hans" wrote: > Monday, December 4, 2006, 2:36:37 PM, Mark wrote: > >> I have a 'comments' link that has shown up while trying to set something up, >> now I cant get rid of it. Its at the bottom of the page next to edit, >> history, print ... and the date modified. Where is it? So I can remove it. > > in the skin template I suppose (using my best parapsychological powers > here...) > > > Hans > > > _______________________________________________ > pmwiki-users mailing list > pmwiki-users at pmichaud.com > http://www.pmichaud.com/mailman/listinfo/pmwiki-users From mike at widowitz.com Mon Dec 4 09:11:29 2006 From: mike at widowitz.com (Mike) Date: Mon, 04 Dec 2006 16:11:29 +0100 Subject: [pmwiki-users] Turn off link formatting within script Message-ID: <45743AA1.6070905@widowitz.com> Hi, I'm writing a small "cookbook"-like pmwiki extension in PHP for myself. In that script, I need to link to other pmwiki pages from within the ""-tag of HTML, more specifically I need to fill in the "href" value. Now I managed to build the correct URL by using the pagename and $ScriptUrl, e.g. I arrive at "href=http://server.com/pmwiki/mygroup/mypage", but then PmWiki wraps the URL into an tag with class=urllink. How can I stop PmWiki from doing that? Thanks, Mike From mike at widowitz.com Mon Dec 4 09:25:44 2006 From: mike at widowitz.com (Mike) Date: Mon, 04 Dec 2006 16:25:44 +0100 Subject: [pmwiki-users] Edit with Preview In-Reply-To: <599dbcaf0612040704vee14179mb2fe54b00b47d30a@mail.gmail.com> References: <45741E20.3010008@widowitz.com> <599dbcaf0612040704vee14179mb2fe54b00b47d30a@mail.gmail.com> Message-ID: <45743DF8.2030100@widowitz.com> Cool, I used that advice by adding if ($action == 'editpreview') { $action="edit"; $_POST['preview'] = 1; } to config.php and then editing PageActions to give another link "editpreview"... Thanks! Mike Dominique Faure wrote on 04.12.2006 16:04: > > On 12/4/06, Mike wrote: >> >> Hello, >> >> for a very specific reason, I'd like to add a button "Edit with Preview" >> >> to the action items (View, Edit, Print) of my PmWiki. I.e., I want the >> >> result of clicking "Edit" and then "Preview" with just one click. Is >> >> there any way to achieve that? >> >> > > > > just add: > > > > if ($action == 'edit') $_POST['preview'] = 1; > > > > in your config.php. > > > > Dom > > From dzosborn at gmail.com Mon Dec 4 10:51:31 2006 From: dzosborn at gmail.com (Donald Z. Osborn) Date: Mon, 4 Dec 2006 11:51:31 -0500 Subject: [pmwiki-users] BeeblebroxNetGila in FireFox & MSIE6 In-Reply-To: <680e31740612021944o22904383s2ff2a6195132bd0c@mail.gmail.com> References: <680e31740611091210k7a3a376mfc9e05685433df50@mail.gmail.com> <45723E2B.9010103@verizon.net> <680e31740612021916l73cc49b8y2a889b768edfb2e3@mail.gmail.com> <200612031631.46101.robin@kallisti.net.nz> <680e31740612021944o22904383s2ff2a6195132bd0c@mail.gmail.com> Message-ID: <680e31740612040851r59dbc88fheca4303a7bff3ca4@mail.gmail.com> Well, no useful information came out of that effort, unfortunately. The only change I made to the gila.tmpl file was to add a script for a statcounter (which has been useful, but that's another issue). Removing that or replacing the gila.tmpl with the original, does not make a difference. Nothing has been changed on the gila.css or skin.php files in the beeblebrox folder. The config file is a bit more complicated but I removed the last thing I added to it, which was the XLPage script (on the outside chance that might make a difference). There's nothing unusual there anyway. Looking at the overall system, 1) the only big change was to add French language files to wikilib.d 2) I'm also in the process of setting up a numbre of wikigroups The only new category of content is images 1) A number of ordinary maps and tables 2) Animated flag gifs from 2 sources (I've removed these from the server in the process of trying to debug - may be silly, but as I wrote previously this is down to wild guesses now). I am trying to pose the question on a MSIE forum (easier said than done, so far). But any further thoughts from anyone on this list would be helpful. TIA... Don On 12/2/06, Donald Z. Osborn wrote: > > I'll try that. I was wondering if a javascript might mess things up > somehow, but removing one from the gila.tmpl (a counter script) did not > make a difference, nor did removing animated flags from wiki page content. > > Other than that I haven't messed much with the config files or the skin > files, but maybe I did something by accident without noticing. > > Don > > On 12/2/06, Robin Sheat wrote: > > > > On Sunday 03 December 2006 16:16, Donald Z. Osborn wrote: > > > The thing is that the Beeblebrox gila skin on pmwiki.org displays fine > > in > > > MSIE. And it did for my wiki too until last month. Whatever I did I > > can't > > > figure it out (or else I just can't undo it). I'm not sure what I > > should be > > > looking for. I suppose I could reinstall the skin but that means > > redoing > > > customizations. > > Can you not download the original one, and diff it against your current > > one, > > and see what the differences are. Then test them one at a time to see > > which > > one is causing the problem. > > > > Robin. > > > > _______________________________________________ > > pmwiki-users mailing list > > pmwiki-users at pmichaud.com > > http://www.pmichaud.com/mailman/listinfo/pmwiki-users > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: /pipermail/pmwiki-users/attachments/20061204/e0f4d84e/attachment.html From pmichaud at pobox.com Mon Dec 4 10:58:45 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Mon, 4 Dec 2006 10:58:45 -0600 Subject: [pmwiki-users] Turn off link formatting within script In-Reply-To: <45743AA1.6070905@widowitz.com> References: <45743AA1.6070905@widowitz.com> Message-ID: <20061204165844.GB1496@host.pmichaud.com> On Mon, Dec 04, 2006 at 04:11:29PM +0100, Mike wrote: > Hi, > > I'm writing a small "cookbook"-like pmwiki extension in PHP for myself. > In that script, I need to link to other pmwiki pages from within the > ""-tag of HTML, more specifically I need to fill in the "href" value. > > Now I managed to build the correct URL by using the pagename and > $ScriptUrl, e.g. I arrive at > "href=http://server.com/pmwiki/mygroup/mypage", but then PmWiki wraps > the URL into an tag with class=urllink. > > How can I stop PmWiki from doing that? Use Keep() around whatever you don't want PmWiki to process. Pm From pmichaud at pobox.com Mon Dec 4 11:07:48 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Mon, 4 Dec 2006 11:07:48 -0600 Subject: [pmwiki-users] Clean URLs .htaccess mod_rewrite problem In-Reply-To: References: Message-ID: <20061204170748.GC1496@host.pmichaud.com> On Mon, Dec 04, 2006 at 01:27:01PM -0000, marc wrote: > marc said... > > [...] > > Can someone please advise on the correct way to do this. Thanks. > > For everyone who has been thrilled to follow this tale, I thought you > might like to know that I found the solution. > > RewriteCond $1 !/$ > RewriteCond %{REQUEST_FILENAME}/ -d > RewriteRule (.+) $1/ [N] > > This is okay for each field too, in a regular farm setup. > > Should this go in the docs? Probably not, unless it's something that is really needed by lots of people. The CleanUrls recipe has been worked and reworked many times, and it's probably best not to muck with it too much. Thanks for thinking of this, though. Also, fwiw, the way I would've handled the auxbuss.com -> www.auxbuss.com issue would be to put a redirect in .htaccess, and/or to explicitly set PmWiki's $ScriptUrl variable to always use the www.auxbuss.com address. Pm From pmichaud at pobox.com Mon Dec 4 11:14:47 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Mon, 4 Dec 2006 11:14:47 -0600 Subject: [pmwiki-users] AuthUser and DefaultGroup and farmconfig In-Reply-To: <1165152592.23426.7.camel@daneel> References: <1165151374.23426.5.camel@daneel> <1165152592.23426.7.camel@daneel> Message-ID: <20061204171447.GD1496@host.pmichaud.com> On Sun, Dec 03, 2006 at 02:29:52PM +0100, Mikael Nilsson wrote: > I solved my own issue by calling > > include_once('local/config.php'); > > at the bottom of farmconfig.php, but just before the authuser call. > > Hope that's a good way to solve it. It is. Or, at least, PmWiki explicitly recognizes that this is an allowable way to do things. Pm From mike at widowitz.com Mon Dec 4 11:17:20 2006 From: mike at widowitz.com (Mike) Date: Mon, 04 Dec 2006 18:17:20 +0100 Subject: [pmwiki-users] Turn off link formatting within script In-Reply-To: <20061204165844.GB1496@host.pmichaud.com> References: <45743AA1.6070905@widowitz.com> <20061204165844.GB1496@host.pmichaud.com> Message-ID: <45745820.5010704@widowitz.com> Cool, thanks! Patrick R. Michaud wrote on 04.12.2006 17:58: > On Mon, Dec 04, 2006 at 04:11:29PM +0100, Mike wrote: >> Hi, >> >> I'm writing a small "cookbook"-like pmwiki extension in PHP for myself. >> In that script, I need to link to other pmwiki pages from within the >> ""-tag of HTML, more specifically I need to fill in the "href" value. >> >> Now I managed to build the correct URL by using the pagename and >> $ScriptUrl, e.g. I arrive at >> "href=http://server.com/pmwiki/mygroup/mypage", but then PmWiki wraps >> the URL into an tag with class=urllink. >> >> How can I stop PmWiki from doing that? > > Use Keep() around whatever you don't want PmWiki to process. > > Pm > From pmichaud at pobox.com Mon Dec 4 11:18:13 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Mon, 4 Dec 2006 11:18:13 -0600 Subject: [pmwiki-users] Upgrade In-Reply-To: <255473120.20061204092138@softflow.co.uk> References: <255473120.20061204092138@softflow.co.uk> Message-ID: <20061204171813.GE1496@host.pmichaud.com> On Mon, Dec 04, 2006 at 09:21:38AM +0000, Hans wrote: > But if you had lots of trouble last time it may not be too wise to > upgrade to a beta version, since some features may change still. Actually, since the previous troubles were due to file permissions (as opposed to PmWiki features), I think it'd be okay to upgrade to 2.2.0.beta now. Pm From pmichaud at pobox.com Mon Dec 4 11:22:11 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Mon, 4 Dec 2006 11:22:11 -0600 Subject: [pmwiki-users] pattern matching: In-Reply-To: References: Message-ID: <20061204172211.GF1496@host.pmichaud.com> On Sat, Dec 02, 2006 at 08:15:44PM -0500, The Editor wrote: > I'm working on a "special" project and trying to get this pattern > match to work and it almost works, but I seem to be having some > problems with :, -, and . in the [ ]. > > preg_replace('|\{([\-\.A-Za-z0-9:_]+)\}|e', "Function($1)", $text); > > I'm trying to get this to match expressions like the following: > > {TEXT:Group.Name-36_End} > > Any help would be appreciated. Keep it simple: preg_replace('/\\{([-.:\\w]+)\\}/e', "Function('$1')", $text) Pm From editor at fast.st Mon Dec 4 11:45:16 2006 From: editor at fast.st (The Editor) Date: Mon, 4 Dec 2006 12:45:16 -0500 Subject: [pmwiki-users] Comment In-Reply-To: References: Message-ID: On 12/4/06, Mark Trumpold wrote: > Looks good and what I need. > > Is the comment posted on the same page? Can I give it the name Discussion or > thread? And compatible with Pmwiki version? No, stored on separate pages. Retrieved by simple pagelists. You can modify about anyway you want. ZAP is just building blocks. Think Lego's. Actually this is fairly simple stuff--don't even need any advanced ZAPmodules. It does required the new beta version of PmWiki 2.2 as it uses it's AWESOME new text var's. Can't imagine life without the upgrade! Cheers, Caveman From mogulguy at yahoo.com Mon Dec 4 11:56:42 2006 From: mogulguy at yahoo.com (Martin Fick) Date: Mon, 4 Dec 2006 09:56:42 -0800 (PST) Subject: [pmwiki-users] pattern matching: In-Reply-To: <20061204172211.GF1496@host.pmichaud.com> Message-ID: <20061204175642.83459.qmail@web36113.mail.mud.yahoo.com> --- "Patrick R. Michaud" wrote: > On Sat, Dec 02, 2006 at 08:15:44PM -0500, The Editor > wrote: > > I'm working on a "special" project and trying to > get this pattern > > match to work and it almost works, but I seem to > be having some > > problems with :, -, and . in the [ ]. > > > > preg_replace('|\{([\-\.A-Za-z0-9:_]+)\}|e', > "Function($1)", $text); > > > > I'm trying to get this to match expressions like > the following: > > > > {TEXT:Group.Name-36_End} > > > > Any help would be appreciated. > > Keep it simple: > > preg_replace('/\\{([-.:\\w]+)\\}/e', > "Function('$1')", $text) I think: preg_replace('/\\{([_-.:\\w]+)\\}/e', "Function('$1')", $text) -Martin ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. From tedc at science.org Mon Dec 4 12:02:43 2006 From: tedc at science.org (Ted Coombs) Date: Mon, 04 Dec 2006 08:02:43 -1000 Subject: [pmwiki-users] New user question Message-ID: <457462C3.3030900@science.org> Hi, I have setup a new wiki www.wikihistory.org and I am having difficulty adding the AdSense code provided by XES. I have added my AdSense Google code, making certain it was formatted correctly, and used the exact syntax posted by XES. The Google Ad appears on my sandbox page but I get the following error: pat=/\(:Google1:\)/e *Warning*: Cannot modify header information - headers already sent by (output started at /home/content/w/i/k/wikihistory/html/pmwiki.php:1240) in */home/content/w/i/k/wikihistory/html/pmwiki.php* on line *884 I have no idea what this error is, or how to fix it. I don't control my environment, as my site is hosted at godaddy.com. I was pleased the PmWiki worked essentially out of the box with no administrative requirements. Can someone give me a clue what to do next? Thanks, Ted Coombs www.forensics.org www.openrecordbook.com www.wikihistory.org www.tedcoombs.com * From pmichaud at pobox.com Mon Dec 4 12:04:59 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Mon, 4 Dec 2006 12:04:59 -0600 Subject: [pmwiki-users] pattern matching: In-Reply-To: <20061204175642.83459.qmail@web36113.mail.mud.yahoo.com> References: <20061204172211.GF1496@host.pmichaud.com> <20061204175642.83459.qmail@web36113.mail.mud.yahoo.com> Message-ID: <20061204180459.GG1496@host.pmichaud.com> On Mon, Dec 04, 2006 at 09:56:42AM -0800, Martin Fick wrote: > --- "Patrick R. Michaud" wrote: > > On Sat, Dec 02, 2006 at 08:15:44PM -0500, The Editor > > wrote: > > > I'm trying to get this to match expressions like > > > the following: > > > > > > {TEXT:Group.Name-36_End} > > > > > > > Keep it simple: > > > > preg_replace('/\\{([-.:\\w]+)\\}/e', "Function('$1')", $text) > > I think: > > preg_replace('/\\{([_-.:\\w]+)\\}/e', "Function('$1')", $text) My original is correct. - If a hyphen is to be one of the characters matched, it has to be escaped or at the beginning/end of the set. - \w includes underscores, so there's no need to repeat it in the list (although it doesn't hurt much to do so). Pm From pmichaud at pobox.com Mon Dec 4 12:06:58 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Mon, 4 Dec 2006 12:06:58 -0600 Subject: [pmwiki-users] New user question In-Reply-To: <457462C3.3030900@science.org> References: <457462C3.3030900@science.org> Message-ID: <20061204180657.GH1496@host.pmichaud.com> On Mon, Dec 04, 2006 at 08:02:43AM -1000, Ted Coombs wrote: > Hi, > I have setup a new wiki www.wikihistory.org and I am having difficulty > adding the AdSense code provided by XES. > I have added my AdSense Google code, making certain it was formatted > correctly, and used the exact syntax posted by XES. Could you perhaps paste an exact copy of what you added? The "pat=/\(:Google1:\)/e" part of the error message indicates that there's likely a syntax error in there somewhere. Pm From pmichaud at pobox.com Mon Dec 4 12:13:50 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Mon, 4 Dec 2006 12:13:50 -0600 Subject: [pmwiki-users] Generating incorrect URLs In-Reply-To: References: <200612021213.44799.mik.admin@nurfuerspam.de> Message-ID: <20061204181350.GI1496@host.pmichaud.com> On Sat, Dec 02, 2006 at 07:40:13PM -0500, Rik Sarkar wrote: > > Your guess was correct, the server is not setting HTTP_HOST, it works if > that is set. However, I am still stuck with it, because it does not work > when I set it in local/config.php. It works only when set in pmwiki.php. > Possibly, it is not reading the config.php. > > Also, I am getting errors from the mkdirp($dir) function saying that it > can't create wiki.d directory, though the directory exists with full > access. This sounds to me as though PmWiki isn't being run from the correct directory. When the pmwiki.php script executes, it expects to be running in the directory that contains local/ and wiki.d/ . If the current directory is something else when pmwiki.php runs, it'll be quite confused (and try to create a new environment in whatever directory it happens to be in). Note that the current directory isn't necessarily the one containing pmwiki.php. (For example, in farm installations, the current directory is the one containing the local wiki field, while the farm contains the pmwiki.php and other scripts.) Getting back to the original issue, I generally recommend against messing with HTTP_HOST or SCRIPT_NAME at all. Simply set $ScriptUrl directly to whatever the url is supposed to be, rather than trying to figure it out (or have PmWiki figure it out) from whatever miscues are coming from the webserver. Pm From mini at nada.kth.se Mon Dec 4 12:27:53 2006 From: mini at nada.kth.se (Mikael Nilsson) Date: Mon, 04 Dec 2006 19:27:53 +0100 Subject: [pmwiki-users] 404 on Abort? Message-ID: <1165256873.6621.61.camel@daneel> Why doesn't pmwiki give 404 errors on Abort() ?? Like so: function Abort($msg) { # exit pmwiki with an abort message header("HTTP/1.1 404 Not Found"); echo "

PmWiki can't process your request

$msg

We are sorry for any inconvenience.

"; exit; } I accidentally hit this when one of my java applets did some probing GET requests under the PMwiki namespace (log4j was the problem), expecting a 404 on error. Adding the above made everything work. /Mikael -- Plus ?a change, plus c'est la m?me chose From pmichaud at pobox.com Mon Dec 4 13:00:41 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Mon, 4 Dec 2006 13:00:41 -0600 Subject: [pmwiki-users] 404 on Abort? In-Reply-To: <1165256873.6621.61.camel@daneel> References: <1165256873.6621.61.camel@daneel> Message-ID: <20061204190041.GJ1496@host.pmichaud.com> On Mon, Dec 04, 2006 at 07:27:53PM +0100, Mikael Nilsson wrote: > Why doesn't pmwiki give 404 errors on Abort() ?? Hmm. I agree that Abort() should probably return something other than 200, but returning 404 (not found) doesn't seem correct. Most aborts are caused by things other than the requested resource not being available, so we should return a more appropriate error code. So, I'll see about finding a better error code and return that. Thanks! Pm From pmichaud at pobox.com Mon Dec 4 13:05:02 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Mon, 4 Dec 2006 13:05:02 -0600 Subject: [pmwiki-users] New user question In-Reply-To: <45746C0D.60103@science.org> References: <457462C3.3030900@science.org> <20061204180657.GH1496@host.pmichaud.com> <45746C0D.60103@science.org> Message-ID: <20061204190502.GK1496@host.pmichaud.com> Oh. There should not be a '/e' at the end of the third parameter, thus it should be: Markup('Google1', 'block', '/\\(:Google1:\\)/', Keep(" # */ # If we're not editing, then just exit. if ($action != 'edit') return; # Configure in the Speller Pages javascript code. $HTMLHeaderFmt[] = " "; # Add a GUI button for spell checking. $GUIButtons['spellcheck'] = array(1000, '', '', '', "
"); ?> __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: /pipermail/pmwiki-users/attachments/20061215/31e7d7ea/attachment.html From pmichaud at pobox.com Fri Dec 15 19:00:21 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Fri, 15 Dec 2006 19:00:21 -0600 Subject: [pmwiki-users] A skin is changing $LinkPageSelfFmt In-Reply-To: <1837357828.20061215211828@softflow.co.uk> References: <1837357828.20061215211828@softflow.co.uk> Message-ID: <20061216010020.GF23849@host.pmichaud.com> On Fri, Dec 15, 2006 at 09:18:28PM +0000, Hans wrote: > PmWiki sets $LinkPageSelfFmt not as a SDV variable, so any recipe or > skin needing/wanting to change this can't use SDV either. > [...] I think it should become a SDV variable, and all recipes wishing > to set it would use SDV as well, and then an admin can set > it in config.php if she/he wishes. Unfortunately there's traditionally been a catch-22 here. In order for $LinkPageSelfFmt to become set via SDV, PmWiki has to make any default setting for $LinkPageSelfFmt _after_ all customizations are performed. But there are some recipes and customizations that rely on $LinkPageSelfFmt already being set at the time the recipe is run. (This would be true for any recipe that starts calling the markup/link processor.) I've thought about making the $LinkPage...Fmt be set within the LinkPage() function, but that function is slow enough already without adding four or five more SDV() calls to each execution. Still, we're in 2.2.0-beta, so if we wanted to move the $LinkPage...Fmt variables below local configuration and set them to be SDV, now would be the time. Pm From kat_lists at katspace.homelinux.org Fri Dec 15 20:08:24 2006 From: kat_lists at katspace.homelinux.org (Kathryn Andersen) Date: Sat, 16 Dec 2006 13:08:24 +1100 Subject: [pmwiki-users] your mail In-Reply-To: <20061215232313.GE23849@host.pmichaud.com> References: <20061215173259.GA31822@host.pmichaud.com> <2281C6CA-DFAE-47B9-B1C4-2CC769022628@apfelwiki.de> <20061215222816.GB23849@host.pmichaud.com> <20061215223712.GD23849@host.pmichaud.com> <20061215230955.GA17494@katla.katspace.homelinux.org> <20061215232313.GE23849@host.pmichaud.com> Message-ID: <20061216020824.GA19854@katla.katspace.homelinux.org> On Fri, Dec 15, 2006 at 05:23:18PM -0600, Patrick R. Michaud wrote: > On Sat, Dec 16, 2006 at 10:09:55AM +1100, Kathryn Andersen wrote: > > I can think of a reason: perl-based scripts that want to interact with > > PmWiki -- I mean, "good" scripts written by users, rather than being an > > "evil robot". I know I've had in the back of my mind wanting to be able > > to use perl scripts to interact with PmWiki (I just haven't written > > them yet); one as a replacement for pywe, to do "edit wiki pages with > > your favourite editor"... > > 1. Would it be reasonable to ask that such "good" scripts change > the User Agent string to not include the libwww-perl? Okay, if it's clearly documented, with some code snippets to make it clear how to change the User Agent string; that would be helpful. > 2. I have a perl-based editing script already (based on one that > Scott Duff wrote many years ago), but it needs some cleaning up > and to be updated to better handle cookies/passwords. I'd really appreciate if you could make that available; even more if it could be a module plus a script, because one thing I've been using pywe with is with a (crude) perl script which automates some things, and then calls pywe with the results so that the user can fix up errors before the file gets committed to the wiki. If the "perl-based editing" could be a module then there would be some lovely potential for calling it from other scripts. 8-) Thanks. Kathryn Andersen -- _--_|\ | Kathryn Andersen / \ | \_.--.*/ | GenFicCrit mailing list v | ------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe From sandy at onebit.ca Fri Dec 15 21:07:53 2006 From: sandy at onebit.ca (Sandy) Date: Fri, 15 Dec 2006 22:07:53 -0500 Subject: [pmwiki-users] Error 406: appropriate representation of the requested resource Message-ID: I get this error when I try to add more to my page. The page is longer than usual for me, but not long compared to some I've seen. Not Acceptable An appropriate representation of the requested resource /Fiction/PFriends could not be found on this server. Apache/1.3.37 Server at cricket.onebit.ca Port 80 I narrowed it down to a specific word, but there are no special symbols or wiki-codes that I can see. Any ideas? I've narrowed it down to the word "opening". I can replace that word with anything else, even several words, and it works. http://www.cricket.onebit.ca/Fiction/PFriends UserID test password test should let you see everything but change nothing. Sandy From pmichaud at pobox.com Fri Dec 15 22:15:19 2006 From: pmichaud at pobox.com (Patrick R. Michaud) Date: Fri, 15 Dec 2006 22:15:19 -0600 Subject: [pmwiki-users] Error 406: appropriate representation of the requested resource In-Reply-To: References: Message-ID: <20061216041517.GA13528@host.pmichaud.com> On Fri, Dec 15, 2006 at 10:07:53PM -0500, Sandy wrote: > I get this error when I try to add more to my page. The page is longer > than usual for me, but not long compared to some I've seen. > > I narrowed it down to a specific word, but there are no special symbols > or wiki-codes that I can see. > > Any ideas? I've narrowed it down to the word "opening". I can replace > that word with anything else, even several words, and it works. This sounds to me like mod_security is somehow blocking the post. Are you able to add the word "opening" to other pages -- i.e., is it blocking only on this one page? What happens if you split the word "opening" into separate parts in the markup? For example, you might try "[=op=]ening" and see if that works. Pm From albi at cvmx.org Sat Dec 16 02:14:11 2006 From: albi at cvmx.org (Albi Rebmann) Date: Sat, 16 Dec 2006 09:14:11 +0100 Subject: [pmwiki-users] Error: headers already sent Message-ID: Hello, I have some strange problem, I get following errors on Webpage: Warning: Division by zero in /html/online/mitarbeiter/wiki/pmwiki.php on line 1100 Warning: Division by zero in /html/online/mitarbeiter/wiki/pmwiki.php on line 1100 Warning: Cannot modify header information - headers already sent by (output started at /html/online/mitarbeiter/wiki/pmwiki.php:1100) in /html/online/mitarbeiter/wiki/pmwiki.php on line 884 The Wiki Source is this: || %newwin%[[http://www.life.de/newsportal2/|Attach:forum.png]] || %newwin%[[Main/ForenRichtlinien|Attach:forumrichtlinien.png]] || || %newwin%[[http://www.life.de/newsportal2/|LifeNet Foren im Newsportal]] || %newwin%[[Main/ForenRichtlinien|Forenrichtlinien]] || The Problem are the tables, when I remove them, all is fine. Does anybody have a idea why this happens? On another server all works fine. ALBI... From albi at cvmx.org Sat Dec 16 02:24:26 2006 From: albi at cvmx.org (Albi Rebmann) Date: Sat, 16 Dec 2006 09:24:26 +0100 Subject: [pmwiki-users] Error: headers already sent In-Reply-To: References: Message-ID: Albi Rebmann wrote: > I have some strange problem, I get following errors on Webpage: Problem solved, new version .27 helps. ALBI... From crisses at kinhost.org Sat Dec 16 07:51:56 2006 From: crisses at kinhost.org (Crisses) Date: Sat, 16 Dec 2006 08:51:56 -0500 Subject: [pmwiki-users] Small headache with a spell check attempt. In-Reply-To: <684555.89729.qm@web33202.mail.mud.yahoo.com> References: <684555.89729.qm@web33202.mail.mud.yahoo.com> Message-ID: On Dec 15, 2006, at 6:58 PM, Seth Cherney wrote: > I have been trying to integrate a java spell check into pmwiki, as > I cannot access pspell/aspell on my hosted server. Geek note: Java is not JavaScript. :) Java is by Sun Corporation, and is a very very hefty undertaking. JavaScript is by Netscape Corp I believe, and is meant for browser scripting. The two came out around the same time, and the names are very very confusing. This is JavaScript. I started reading and went "Java! I can't help with Java!!" :) Good thing I kept reading. > My thought was only to mod PM's spellcheck.php to call the other js > (it works on js in the browser as well. The spell checker I am > trying to integrate is VERY easy to integrate (but I am no coder). > It is sourceforge.net/projects/jspspellcheck, based on jazzy - and > using word lists fo dicts (ie can make any language!). > > I was dropping the whole thing into the pub directory, then trying > to rewrite the spellcheck.php in the cookbook to point to it. > There are a few syntax problems converting the js to php compatible > js, and it tries to find the form name, but ther is no form name in > pmwiki edit, just for the text area. Ok -- actually this is probably a make-or-break issue. When using JavaScript to "script the DOM" (document object model or something) it really needs to have a "name" on the "object" (in this case the browser's text area) to point to. The getElementById needs a CSS Id on the item you're accessing... such as