[pmwiki-users] 2 problems with notify.php script

2008-06-05 Thread John Rankin
I thought I would report a couple of problems we encountered when trying, with eventual success, to get notify to work on a Linux server running php 4.1.2 in safe mode. 1. call to fgets in NotifyCheck requires a second parameter This seems to be because 4.1.2 is such an old version of php. I c

Re: [pmwiki-users] Indicating external links

2008-06-05 Thread John Rankin
On Friday, 6 June 2008 9:23 AM, [EMAIL PROTECTED] wrote: >>> have a look at >>> http://www.wikipublisher.org/wiki/index.php?n=Main.HomePage >>> ... >> >> John, in case it is a different solution from the published ones[1] >> what about sharing it here if you like (or as a note to the cited recipe)?

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

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

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

2008-06-05 Thread Hans
Thursday, June 5, 2008, 10:17:55 PM, Benoit Dutilleul wrote: > Markup or method to increment/decrement a PTV ("integer") variable? > Does it exists? How could it be done? You could use Cookbook.MarkupExprPlus which got a {(add num1 num2)} expression. so {(add num 1)} would add 1 to a number 'num'

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

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

Re: [pmwiki-users] Indicating external links

2008-06-05 Thread john . rankin
>> have a look at >> http://www.wikipublisher.org/wiki/index.php?n=Main.HomePage >> which has 2 external links. >> This is built into the skin for the site. If you want, I can >> send the zipped skin to you off-list with an explanation. > > John, in case it is a different solution from the publishe

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

2008-06-05 Thread Benoit Dutilleul
Hello everybody, Does it exists? How could it be done? Kind regards, Benoit -- Wanderer, your footsteps are the road, and nothing more; wanderer, there is no road, the road is made by walking. By walking one makes the road, and upon glancing behind one sees the path that never will be trod agai

Re: [pmwiki-users] calculation with time

2008-06-05 Thread Patrick R. Michaud
On Thu, Jun 05, 2008 at 12:03:53PM +0200, noskule wrote: > $MarkupExpr['timefmt'] = 'ShowTimeFmt($args[0])'; > function ShowTimeFmt($unixtime) { > $timefmt = strftime($GLOBALS['TimeFmt'],$unixtime); > return $timefmt; > } > > Does you know of a function that can translate date/time bac

Re: [pmwiki-users] calculation with time

2008-06-05 Thread Patrick R. Michaud
On Mon, Jun 02, 2008 at 05:45:50PM +0200, noskule wrote: > hi list > how do I do calculation with time? For example > if "current time" < "current time"-"two weeks" > if "current time" < "current time"-"two hours" > if "current time" < "current time"-"two minutes Do you mean in markup

Re: [pmwiki-users] How to suppress text in print view

2008-06-05 Thread Hans
Thursday, June 5, 2008, 5:05:35 PM, Randy Brown wrote: > When I use action=print, the line with wikistyle noprint displays. If > I actually print it, the line prints. > I use the standard skin that comes with pmwiki (with a couple of > tweeks, which I've put in skins/custom). I haven't changed

Re: [pmwiki-users] How to suppress text in print view

2008-06-05 Thread Randy Brown
Hans, I tried a forced reload. I also tried using both Firefox and Safari (latest versions). When I use action=print, the line with wikistyle noprint displays. If I actually print it, the line prints. I use the standard skin that comes with pmwiki (with a couple of tweeks, which I've pu

Re: [pmwiki-users] How to suppress text in print view

2008-06-05 Thread Hans
Thursday, June 5, 2008, 3:56:35 PM, Randy Brown wrote: > I like your approach, since I don't have to worry about conditional > logic. Unfortunately, this didn't work for me. Does local.css need to > contain anything other than the three lines you've given? I forgot to say that if you use action

Re: [pmwiki-users] How to suppress text in print view

2008-06-05 Thread Hans
Thursday, June 5, 2008, 3:56:35 PM, Randy Brown wrote: > I like your approach, since I don't have to worry about conditional > logic. Unfortunately, this didn't work for me. Does local.css need to > contain anything other than the three lines you've given? No. Please check th epage HTML source

Re: [pmwiki-users] How to suppress text in print view

2008-06-05 Thread Randy Brown
Hans, I like your approach, since I don't have to worry about conditional logic. Unfortunately, this didn't work for me. Does local.css need to contain anything other than the three lines you've given? Randy On Jun 5, 2008, at 4:52 AM, Hans wrote: > > you can define a class 'noprint' as css

[pmwiki-users] IncludeUrl problem

2008-06-05 Thread Julius Thyssen
Hi, I'm using the includeurl.php cookbook file in pmwiki, which is working as it should, until I try and make it more secure by only allowing local addresses. I have this in the local/config.php: Markup( 'html', 'fulltext', '/\\(:html:\\)(.*?)\\(:htmlend:\\)/esi', "'<:block>'.Keep(str_replace(a

Re: [pmwiki-users] Downloads links

2008-06-05 Thread Petko Yotov
On Thursday 05 June 2008 04:39:23 Kathryn Andersen wrote: > However, if someone does a right-click "Save as" then the file name > that they get is "Releases.htm" rather than the actual filename. > This is understandable, since the URL before the QUERY_STRING is > > https://www.example.com/wiki/Rele

Re: [pmwiki-users] calculation with time

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

[pmwiki-users] Farms and security

2008-06-05 Thread Alexander Dietrich
Hello, I recently turned my PmWiki installation into a farm, and came across the comment dealing with PHP session cookie names for preventing accidental privilege elevation. This got me thinking: if the only thing right now stopping a user from getting incorrect privileges on another field, coul

Re: [pmwiki-users] calculation with time

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

Re: [pmwiki-users] How to suppress text in print view

2008-06-05 Thread Hans
Thursday, June 5, 2008, 3:37:21 AM, Randy wrote: > Something like: >>>noprint<< > [[Jump to another page | AnotherPage ]] >>><< you can define a class 'noprint' as css style in pub/css/local.css @media print { .noprint { display: none; } } Note the class is enclosed in a @media print {

[pmwiki-users] Digests ... and my query about external links.

2008-06-05 Thread Emma Duke-Williams
> From: adam overton <[EMAIL PROTECTED]> > > hi > are folks getting the digest of pmwiki-users? > i haven't gotten it for a couple days now, but i see questions are > still being asked in the archive... > wondering if my poor little questions are being missed : ( > adam I've just had several days

Re: [pmwiki-users] calculation with time

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

[pmwiki-users] automatic login? (for read access)

2008-06-05 Thread Patrick Ogay
I run a plattform, wprj.net/tunes, where I collect choral music. For some reasons the "collection" is protected. I like to give read access to the collection from other places (in the same wiki or wikfarm). for example from this Choral-Site: http://www.wprj.net/tunes/ChorMatth/HomePage - Repertoir

[pmwiki-users] Indicating external links

2008-06-05 Thread [EMAIL PROTECTED]
> have a look at > http://www.wikipublisher.org/wiki/index.php?n=Main.HomePage > which has 2 external links. > This is built into the skin for the site. If you want, I can > send the zipped skin to you off-list with an explanation. John, in case it is a different solution from the published ones[1