Re: [pmwiki-users] Maximum execution time of 30 seconds exceeded in /home/ttc/public_html/pmwiki/cookbook/totalcounter.php on line 1136

2008-03-11 Thread Patrick Ogay
I had the same errormessage, after migration a wiki to another serverspace.
I seem's to be a problem that totalcounter can't access the counter 
file, or the format is not compatible.

Patrick

Simon wrote:

> On a website where there has been no recent change to the software I 
> am all of a sudden getting the error
> Maximum execution time of 30 seconds exceeded in 
> */home/ttc/public_html/pmwiki/cookbook/totalcounter.php* on line *1136
> *
> (http://ttc.org.nz/pmwiki/pmwiki.php/TTC/About)
>
> My totalcounter.stat file is about 130KB
>
> Any help would be appreciated
>
> thanks
>
> Simon*
> *
>
>
>
>___
>pmwiki-users mailing list
>pmwiki-users@pmichaud.com
>http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>  
>


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Help With Custom Markup (I'll PayPal you...)

2008-03-11 Thread Andrew Standfield

This pretty much works.

The image and div vs. p solutions worked perfectly. I even figured  
out how to hyperlink the images. If anyone is wondering its:


	%img class=MyClass% [[http://www.yahoo.com/ | placehoder.jpg"alt and  
title text"]]%%


For now, I'm okay with using (:div: class="MyClass":) rather than  
blockquotes, but I'd still *really* like to figure out how to code  
that. I try to be semantic as possible.


At any rate, I'll email you off list to see where to send your Money :)

Thanks!

Andy



On Mar 11, 2008, at 4:14 PM, Eemeli Aro wrote:


Apologies if any of the following is in error, I don't have the time
to verify the code just now.

On Tue, Mar 11, 2008 at 11:14 PM, Andrew Standfield  
<[EMAIL PROTECTED]> wrote:
 1) How can I make it so that when I place an image, the block of  
text it

 is in is a [p] rather than a [div]?


I'm guessing that this happens only when the image is before any other
text on the line? If so, it's probably due to the '^img' markup rule.
I've found replacing default markup from a config file to be a bit
tricky given the way that the Markup function doesn't check if a rule
has been previously set. So, it's probably easiest for you to directly
edit the file scripts/stdmarkup.php & change the s to s on
line 324.

 2) How can I apply a class (and/or an id) to an image in the form  
of:
[p][img src="http://ref.to.image.jpg"; alt="Example"  
class="myClass" /] Blah blah blah.[/p]


Add the following line to your config file:

$WikiStyle['img'] = array( 'apply' => 'img' );

This will let you surround the image with the markup %img
...%YourImage.jpg%% and have any valid WikiStyles apply to the image.
Example: %img class=logo id=pm%Attach:pmwiki.png%%


 3) Is there any way to use relative paths for images (this one isn't
 all that important, but it would be nice)?


Use the "Path:" intermap format, ie. write
Path:/path/to/your/image.jpg or even
Path:../relative/path/to/image.jpg


 Ideally, I'd like to mark it up like this (in actually using the
 wiki, that is):

(:bq class="MyClass":)

Blah blah blah blah.

Yadda yadda.

(:bqend:)


If you're ok with having the same effect with a different tag, try the
following:


indent MyClass id=bingle<<


Blah blah blah blah.

Yadda yadda.


<<


That'll produce a div that's a member of two classes 'indent' and
'MyClass', and has the id 'bingle'. By default, PmWiki includes the
following CSS rule:

.indent { margin-left:40px; }

which makes it practically into a blockquote.

eemeli


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] PmWiki users

2008-03-11 Thread Simon
You can register any PmWiki website yourself.

On 12/03/2008, Jorge Efrain Mamani C. <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
>  I need know who i can register in PmWiki 
> usersfor include my website. 
> thks-.
>
> ___
> pmwiki-users mailing list
> pmwiki-users@pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>


-- 

http://kiwiwiki.co.nz
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] PmWiki users

2008-03-11 Thread Jorge Efrain Mamani C.
Hello,

 I need know who i can register in PmWiki
usersfor include my
website. thks-.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Help With Custom Markup (I'll PayPal you...)

2008-03-11 Thread Eemeli Aro
Apologies if any of the following is in error, I don't have the time
to verify the code just now.

On Tue, Mar 11, 2008 at 11:14 PM, Andrew Standfield <[EMAIL PROTECTED]> wrote:
>  1) How can I make it so that when I place an image, the block of text it
>  is in is a [p] rather than a [div]?

I'm guessing that this happens only when the image is before any other
text on the line? If so, it's probably due to the '^img' markup rule.
I've found replacing default markup from a config file to be a bit
tricky given the way that the Markup function doesn't check if a rule
has been previously set. So, it's probably easiest for you to directly
edit the file scripts/stdmarkup.php & change the s to s on
line 324.

>  2) How can I apply a class (and/or an id) to an image in the form of:
> [p][img src="http://ref.to.image.jpg"; alt="Example" class="myClass" 
> /] Blah blah blah.[/p]

Add the following line to your config file:

$WikiStyle['img'] = array( 'apply' => 'img' );

This will let you surround the image with the markup %img
...%YourImage.jpg%% and have any valid WikiStyles apply to the image.
Example: %img class=logo id=pm%Attach:pmwiki.png%%

>  3) Is there any way to use relative paths for images (this one isn't
>  all that important, but it would be nice)?

Use the "Path:" intermap format, ie. write
Path:/path/to/your/image.jpg or even
Path:../relative/path/to/image.jpg

>  Ideally, I'd like to mark it up like this (in actually using the
>  wiki, that is):
>
> (:bq class="MyClass":)
>
> Blah blah blah blah.
>
> Yadda yadda.
>
> (:bqend:)

If you're ok with having the same effect with a different tag, try the
following:

>>indent MyClass id=bingle<<

Blah blah blah blah.

Yadda yadda.

>><<

That'll produce a div that's a member of two classes 'indent' and
'MyClass', and has the id 'bingle'. By default, PmWiki includes the
following CSS rule:

.indent { margin-left:40px; }

which makes it practically into a blockquote.

eemeli

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Fox input validation and default value

2008-03-11 Thread Hans
Tuesday, March 11, 2008, 8:33:35 PM, Randy wrote:

> I'm using fox form's input validation and also supplying a default  
> value for the input box. If the user changes the value to an invalid  
> value, then the error message appears. But so does the default value,
> wiping out what the user entered. This prevents the user from simply  
> correcting a typo.

> Is there a way around this?

Yes. Do not set a default in an input field using it's value= option,
or using (:input 'type' 'name' 'value':) syntax, leave the value out
of the input control, and set  a default by using markup
(:input default 'name' 'value':)

This will set an initial default value, but when a submission gets
aborted the last entered value will show.



  ~Hans


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Problem with shared groups

2008-03-11 Thread James DeVain
> In order to share new pages created in the group "Whatever" across all
> wikis in my farm, I'm using this:
> 
> $WikiDir = new PageStore('$FarmD/shared.d-Whatever/$FullName');
> 
> in a group customization file (Whatever.php) in each field's "local"
> folder. It works fine in most cases - I create a new page in the group
> "Whatever", and it is sent to the "shared.d-Whatever" folder.
> 
> The problem is when I create a new page (or pages) for a group *from*
> the group "Whatever" - for example with Fox or NewGroupBox. In those
> cases, the new pages are placed in the "shared.d-Whatever" folder.
> 
> For example, if I use a fox form to create a new group named "People",
> then the new "People" pages are stored in the "shared.d-Whatever" folder.
> 
> Also, if it helps, I'm using this in my farmconfig.php file:
> 
> 
> $LockFile = "$FarmD/shared.d/.flock";
> $WikiLibDirs = array(
>&$WikiDir,
>   new PageStore('$FarmD/shared.d-Whatever/$FullName', 1),
>   new PageStore('$FarmD/wikilib.d/$FullName'));
> 
> Does anyone know of a fix for this? I would be grateful for any ideas.
> 
> 

> > - Original Message -
> > From: "Jean-Fabrice [gmail]" <[EMAIL PROTECTED]>
> > To: "James DeVain" <[EMAIL PROTECTED]>
> > Subject: Re: [pmwiki-users] Problem with shared groups
> > Date: Tue, 11 Mar 2008 08:05:27 +0100
> > 
> > 
> > 2008/3/11, James DeVain <[EMAIL PROTECTED]>:
> > 
> > >  $WikiDir = new PageStore('$FarmD/shared.d-Whatever/$FullName');
> > >
> > Have you tried $WikiDir = new PageStore($FarmD .
> > '/shared.d-Whatever/$FullName'); ?
> > 
> > >  Also, if it helps, I'm using this in my farmconfig.php file:
> > >
> > >
> > >  $LockFile = "$FarmD/shared.d/.flock";
> > >  $WikiLibDirs = array(
> > >&$WikiDir,
> > >   new PageStore('$FarmD/shared.d-Whatever/$FullName', 1),
> > >   new PageStore('$FarmD/wikilib.d/$FullName'));
> > 
> > I don't know it it can help, but $FarmD is a php variable while
> > $FullName is not.
> > So you should probably write :
> >$WikiLibDirs = array(
> >  &$WikiDir,
> > new PageStore($FarmD . '/shared.d-Whatever/$FullName', 1),
> > new PageStore($FarmD . '/wikilib.d/$FullName'));
> > 
> > JF

Thanks, JF. I tried your suggestions, but it doesn't seem to make a
difference. 

James

-- 
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Help With Custom Markup (I'll PayPal you...)

2008-03-11 Thread Andrew Standfield
Addendum:

Actually, my blockquote markup is *not* working the way I wanted, so  
scratch that. It will only put the tags around one block of text.  
What I need it to do is to be able to go around multiple blocks.  
Something like:

[blockquote class="MyStyle"]

[p]blah blah blah[/p]

[p]blah blah blah[/p]

[/blockquote]


Thanks,

Andy



On Mar 11, 2008, at 2:14 PM, Andrew Standfield wrote:

> First person to answer these questions *correctly* can get $5.00  
> via PayPal. I'll also donate $5.00 to PmWiki. I know it's not much,  
> and obviously, it's worth *way* more, but I am seriously broke.  
> Tell me what to code and where to put that code.
>
> (Note: I've used square brackets rather than angle brackets in the  
> hopes that my formatting won't get messed up in this email. In my  
> actual code, all the square brackets are angles brackets)
>
> First, three questions on formatting images:
>
> 1) How can I make it so that when I place an image, the block of  
> text it
> is in is a [p] rather than a [div]?
>
> 2) How can I apply a class (and/or an id) to an image in the form of:
>
>   [p][img src="http://ref.to.image.jpg"; alt="Example"  
> class="myClass" /] Blah blah blah.[/p]
>
>
> 3) Is there any way to use relative paths for images (this one  
> isn't all that important, but it would be nice)?
>
> Second part:
>
> I've managed to make a custom markup that generated blockquote  
> tags. It goes like this:
>
>   Markup("blockquote", "block", "/\\(:bq:\\)(.*?)\\(:bqend:\\)/",  
> "[blockquote]$1[/blockquote]");
>
>
> It works to generate the blockquote tag just fine, but I also need  
> to be able to pass a style to it. So, the output would looks  
> something like:
>
>   [blockquote class="MyStyle"]...[/blockquote]
>
>
> Being able to pass an id="blah" would be handy, too.
>
> Ideally, I'd like to mark it up like this (in actually using the  
> wiki, that is):
>
>   (:bq class="MyClass":)
>
>   Blah blah blah blah.
>
>   Yadda yadda.
>
>   (:bqend:)
>
>
>
> HALP!
>
> Thanks,
>
> Andy


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] pages with (:redirect:) in group 'PmWiki'

2008-03-11 Thread Christian Bartolomaeus
* On 2008-03-11 Christian Bartolomaeus ([EMAIL PROTECTED]) wrote:
> [...]
> 1.) Would it be okay to tag those pages in PmWiki with a page text
> variable like
> 
>   (:Redirect: true:)

Or, maybe better:

  (:Outdated: true:)


signature.asc
Description: Digital signature
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Help With Custom Markup (I'll PayPal you...)

2008-03-11 Thread Andrew Standfield
First person to answer these questions *correctly* can get $5.00 via  
PayPal. I'll also donate $5.00 to PmWiki. I know it's not much, and  
obviously, it's worth *way* more, but I am seriously broke. Tell me  
what to code and where to put that code.

(Note: I've used square brackets rather than angle brackets in the  
hopes that my formatting won't get messed up in this email. In my  
actual code, all the square brackets are angles brackets)

First, three questions on formatting images:

1) How can I make it so that when I place an image, the block of text it
is in is a [p] rather than a [div]?

2) How can I apply a class (and/or an id) to an image in the form of:

[p][img src="http://ref.to.image.jpg"; alt="Example"  
class="myClass" /] Blah blah blah.[/p]


3) Is there any way to use relative paths for images (this one isn't  
all that important, but it would be nice)?

Second part:

I've managed to make a custom markup that generated blockquote tags.  
It goes like this:

Markup("blockquote", "block", "/\\(:bq:\\)(.*?)\\(:bqend:\\)/",  
"[blockquote]$1[/blockquote]");


It works to generate the blockquote tag just fine, but I also need to  
be able to pass a style to it. So, the output would looks something  
like:

[blockquote class="MyStyle"]...[/blockquote]


Being able to pass an id="blah" would be handy, too.

Ideally, I'd like to mark it up like this (in actually using the  
wiki, that is):

(:bq class="MyClass":)

Blah blah blah blah.

Yadda yadda.

(:bqend:)



HALP!

Thanks,

Andy

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] pages with (:redirect:) in group 'PmWiki'

2008-03-11 Thread Christian Bartolomaeus
Hi,

there are some pages in the group 'PmWiki' which simple redirect to
other pages (e.g. WikiWords -> WikiWord, SimpleTables -> Tables ...).

Working on the German documentation it is useful to have a list of
all English documentation pages and to compare that list with a list
of German pages. We create those pages with page lists. But pages
with a (:redirect:) directive are a bit irritating, because they
appear as English documentation pages, but we don't want to create
them in PmWikiDe.

So my questions are:

1.) Would it be okay to tag those pages in PmWiki with a page text
variable like

  (:Redirect: true:)

If so, we could filter our list of "relevant" documenation pages
based on this page text variable.

2.) Is there a better way to filter those pages? 

3.) Would is be okay to delete pages with a simple redirect directive
in 'PmWiki' -- after searching for 'back links' and adjusting
those? Since there would still be problems with external links to
those pages it might be better to keep them.

Thanks

Christian


signature.asc
Description: Digital signature
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Fox input validation and default value

2008-03-11 Thread Randy
I'm using fox form's input validation and also supplying a default  
value for the input box. If the user changes the value to an invalid  
value, then the error message appears. But so does the default value,  
wiping out what the user entered. This prevents the user from simply  
correcting a typo.

Is there a way around this?

Randy

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] problem with [[PageName|+]] markup

2008-03-11 Thread David Aldred
On Tuesday 11 March 2008, Vince Admin Account wrote:
> On Mar 11, 2008, at 12:11 PM, Patrick R. Michaud wrote:
> > On Tue, Mar 11, 2008 at 03:28:50PM +0100, Christian Bartolomaeus  
> >
> > wrote:
> >> * On 2008-03-11 Eemeli Aro ([EMAIL PROTECTED]) wrote:
> >>> I'd like to verify this as a bug; it seems to have something to do
> >>> with the accented characters in the page titles -- links to pages  
> >>> such
> >>> as PmWikiFr/ReleaseNotes (title "Notes de versions") work while eg.
> >>> PmWikiFr/Sandbox (title "Bac à Sable") don't.
> >>
> >> Indeed it seems to be not only a bug with the [[PageName|+]] markup
> >> but with links to specific pages at all. Even
> >>
> >>   [[PmWikiFr/Sandbox]]
> >>
> >> doesn't work. See
> >>
> >>   http://www.pmwiki.org/wiki/Test/Title
> >
> > I just looked at the Test.Title page, and everything seems to work
> > fine to me.  What specifically isn't working?

> On my system (Safari) two of the links claim to be to  Sandbox^?
> as if the linked page did not exist, but clicking on the link goes to  
> the correct place Bac a' Sable.

Both links appear and work correctly here (Firefox 2.0.0.12 under Linux). 

-- 
David Aldred

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] problem with [[PageName|+]] markup

2008-03-11 Thread Patrick R. Michaud
On Tue, Mar 11, 2008 at 04:51:02PM +, Hans wrote:
> Tuesday, March 11, 2008, 4:11:43 PM, Patrick R. Michaud wrote:
> 
> > I just looked at the Test.Title page, and everything seems to work
> > fine to me.  What specifically isn't working?
> 
> [[PmWikiFr/Sandbox|+]] and [[PmWikiFr/Sandbox]] appear as pointing to
> a non-existing page, but the page exists! Click and see.

Aha.  The problem is that the PmWikiFr/Sandbox page is set to
"auto-revert" (i.e., it's held somewhere other than wiki.d/ or
wikilib.d/ ), and auto-revert isn't enabled for the Test group,
so it's not seeing the page when done in Test.

I've now converted the page to be a "normal" one (no auto-revert),
and everything works as expected.

Pm


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] problem with [[PageName|+]] markup

2008-03-11 Thread Hans
Tuesday, March 11, 2008, 4:11:43 PM, Patrick R. Michaud wrote:

> I just looked at the Test.Title page, and everything seems to work
> fine to me.  What specifically isn't working?


[[PmWikiFr/Sandbox|+]] and [[PmWikiFr/Sandbox]] appear as pointing to
a non-existing page, but the page exists! Click and see.

  ~Hans


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] problem with [[PageName|+]] markup

2008-03-11 Thread Vince Admin Account

On Mar 11, 2008, at 12:11 PM, Patrick R. Michaud wrote:

> On Tue, Mar 11, 2008 at 03:28:50PM +0100, Christian Bartolomaeus  
> wrote:
>> * On 2008-03-11 Eemeli Aro ([EMAIL PROTECTED]) wrote:
>>> I'd like to verify this as a bug; it seems to have something to do
>>> with the accented characters in the page titles -- links to pages  
>>> such
>>> as PmWikiFr/ReleaseNotes (title "Notes de versions") work while eg.
>>> PmWikiFr/Sandbox (title "Bac à Sable") don't.
>>
>> Indeed it seems to be not only a bug with the [[PageName|+]] markup
>> but with links to specific pages at all. Even
>>
>>   [[PmWikiFr/Sandbox]]
>>
>> doesn't work. See
>>
>>   http://www.pmwiki.org/wiki/Test/Title
>
> I just looked at the Test.Title page, and everything seems to work
> fine to me.  What specifically isn't working?
>
> Pm
> ___
Patrick,
On my system (Safari) two of the links claim to be to  Sandbox^?
as if the linked page did not exist, but clicking on the link goes to  
the correct place Bac a' Sable.
Vince



___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] problem with [[PageName|+]] markup

2008-03-11 Thread Patrick R. Michaud
On Tue, Mar 11, 2008 at 03:28:50PM +0100, Christian Bartolomaeus wrote:
> * On 2008-03-11 Eemeli Aro ([EMAIL PROTECTED]) wrote:
> > I'd like to verify this as a bug; it seems to have something to do
> > with the accented characters in the page titles -- links to pages such
> > as PmWikiFr/ReleaseNotes (title "Notes de versions") work while eg.
> > PmWikiFr/Sandbox (title "Bac à Sable") don't.
> 
> Indeed it seems to be not only a bug with the [[PageName|+]] markup
> but with links to specific pages at all. Even
> 
>   [[PmWikiFr/Sandbox]]
> 
> doesn't work. See
> 
>   http://www.pmwiki.org/wiki/Test/Title

I just looked at the Test.Title page, and everything seems to work
fine to me.  What specifically isn't working?

Pm


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Image Formatting

2008-03-11 Thread Andrew Standfield
Three questions on formatting images:

How can I make it so that when I place an image, the block of text it  
is in is a  rather than a ?

And how can apply a class to an image in the form of:

http://ref.to.image.jpg"; alt="Example" class="myClass" / 
 >Blah blah blah.

Finally, is there any way to use relative paths for images (this one  
isn't all that important, but it would be nice)?

Thanks,

Andy 

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] fox: captcha for specific forms

2008-03-11 Thread noskule
Hans schrieb:
> Tuesday, March 11, 2008, 3:01:47 PM, Hans wrote:
>
>   
>> (:foxcheck response if='captcha' msg='Wrong Captcha':)
>> 
>
>   
hm, seams not to help, I allways get "Please enter valid input!" See: 
http://netstreams.org/devel/skintest/index.php/Main/WikiSandbox
Do you see the problem? It also makes no difference if I include 
captcha.php bevor or after fox . ..




[[Main/WikiSandbox?action=edit]]

 >>system_color<<
(:messages:)
 >><<
(:fox testform redirect=1:)
(:foxptv {*$FullName} foxfields=TestField:)
(:input default source={*$FullName}:)
(:input text name=$:TestField:)

(:if ! authid:)
{$Captcha} (:input captcha:) Captcha
(:foxcheck response if='!captcha' msg='Wrong Captcha':)
(:ifend:)

(:input submit post:)
(:foxend testform:)

(:TestField: :)



> The condition is wrong. It should be if='!captcha' :
>
>
> (:fox testform:)
>
> (:if ! authid:)
> (:foxcheck response if='!captcha' msg='Wrong Captcha':)
> Enter value {$Captcha} (:input captcha
> class=inputtext:)(:foxmessage testform response:)
> (:foxcheck access if='captcha' msg='Wrong Captcha':)
> (:ifend:)
>
> (:input submit post:)
> (:foxend testform:)
>
>
>   ~Hans
>
>   


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] fox: captcha for specific forms

2008-03-11 Thread Hans
Tuesday, March 11, 2008, 3:01:47 PM, Hans wrote:

> (:foxcheck response if='captcha' msg='Wrong Captcha':)

The condition is wrong. It should be if='!captcha' :


(:fox testform:)

(:if ! authid:)
(:foxcheck response if='!captcha' msg='Wrong Captcha':)
Enter value {$Captcha} (:input captcha
class=inputtext:)(:foxmessage testform response:)
(:foxcheck access if='captcha' msg='Wrong Captcha':)
(:ifend:)

(:input submit post:)
(:foxend testform:)


  ~Hans


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] fox: captcha for specific forms

2008-03-11 Thread Hans
Tuesday, March 11, 2008, 1:36:26 PM, noskule wrote:

> (:if ! authid:)
> Enter value {$Captcha} (:input captcha class=inputtext:)
> (:foxcheck access if='captcha' msg='Wrong Captcha':)
> (:ifend:)

PS: or perhaps try

 (:foxcheck response if='captcha' msg='Wrong Captcha':)

Captcha's input field is not called 'access' but 'response'


  ~Hans


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] fox: captcha for specific forms

2008-03-11 Thread Hans
Tuesday, March 11, 2008, 1:36:26 PM, noskule wrote:
>
> here I just get a "Please enter a valid input" instead of my defined 
> message? Is it somehow possible to check captcha with the aproach above.
> thanks for any hints

see http://www.pmwiki.org/wiki/Cookbook/Captcha

Captcha has its own (:if captcha:) conditional which yoyu can use to
display a message:

(:if captcha:)
%green%Captcha succeeded%%
(:else:)
%red%Captcha failed%%
(:ifend:)

  ~Hans


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] problem with [[PageName|+]] markup

2008-03-11 Thread Christian Bartolomaeus
* On 2008-03-11 Eemeli Aro ([EMAIL PROTECTED]) wrote:
> I'd like to verify this as a bug; it seems to have something to do
> with the accented characters in the page titles -- links to pages such
> as PmWikiFr/ReleaseNotes (title "Notes de versions") work while eg.
> PmWikiFr/Sandbox (title "Bac à Sable") don't.

Indeed it seems to be not only a bug with the [[PageName|+]] markup
but with links to specific pages at all. Even

  [[PmWikiFr/Sandbox]]

doesn't work. See

  http://www.pmwiki.org/wiki/Test/Title

again.

Christian


signature.asc
Description: Digital signature
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] fox: captcha for specific forms

2008-03-11 Thread noskule
hi hans

I try to enable captcha for e specific form (comments). The captcha 
should only show if the user is not logged in. I tryied with

if ( ! @$GLOBALS["AuthId"] > "" ) {
$EnablePostCaptchaRequired = true;
}

The probleme here, it seams to be enabled for all forms, with or without 
captcha, this is a problem when a known user get logged out of a session 
and be saving a page the "wrong captcha" message is prsented instead of 
the loginform.

So second aproach is:

(:messages:)
(:fox testform:)

(:if ! authid:)
Enter value {$Captcha} (:input captcha class=inputtext:)
(:foxcheck access if='captcha' msg='Wrong Captcha':)
(:ifend:)

(:input submit post:)
(:foxend testform:)

here I just get a "Please enter a valid input" instead of my defined 
message? Is it somehow possible to check captcha with the aproach above.
thanks for any hints
nos




___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] (German) translation of documentation

2008-03-11 Thread Christian Bartolomaeus
Hi,

a few days ago Stefan and I started to update the German translation
of the documentation. It would be great to have more people helping.

But apart from this, I'd like to picture our approach. Maybe some of
you have helpful comments or could use some of our ideas for
translation to other languages.

Basically we decided to tag all pages in the PmWikiDe group with page
text variables. A sample page would look like:

  (:title Title of Page:)
  (:Summary: short summary of content:)
  (:Original_Page: PmWiki.PageName:)
  (:Translation_Date: 2008-03-11:)
  (:Translation_Status: %green%complete%%:)
  (:Audience: Authors (Basics):)
  %audience%{{$FullName}$:Audience}%%
   
  Inhalt der Seite
   
  %%trail% <<|[[DocumentationIndex|Dokumentationsindex]]|>> 

Furthermore in PmWikiDe.GroupHeader we have lines like this:

  %define=audience class='frame rfloat' font-size:smaller %bgcolor=#ffc%

  [-%green%(German translation of [[{$:Original_Page}]], translated: 
{$:Translation_Date})-]

With page text variables defined we can use some page lists to have a
list of pages needing attention and so on (see [1]).

Also we put something like

  %comment% [[!TranslateMeToGerman]] %%

near those paragraphs or items we have to translate. That way we can
use a category page to list all pages containing untranslated text.
Searching for 'TranslateMeToGerman' in the edit window we can easily
find the relevant items.

Comments and suggestions are very appreciated!

Best regards

Christian

[1] http://www.pmwiki.org/wiki/PmWikiDe/StandDer%dcbersetzung



signature.asc
Description: Digital signature
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Fox trouble

2008-03-11 Thread jim
Jean-Fabrice [gmail] wrote:
> 2008/3/11, jim <[EMAIL PROTECTED]>:
>   
>> Hello!
>>
>>  I have been having install problems with Fox.  I did fresh PmWiki
>>  install with a minimal config.php file setting the admin password and
>>  including fox.php.  I when I submit the form I get nothing just a blank
>>  page.
>> 
>
> What version of fox are you using ? Fox has just been updated a few
> hours ago. I was having similar issue with fox, making Apache crash
> with a blank page. The last release seems to be ok. Give it a try.
>
> JF
>
>
>   
I was using version  2008-03-03.

2008-03-10a works.

THANKS Hans

Jim

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] problem with [[PageName|+]] markup

2008-03-11 Thread Eemeli Aro
I'd like to verify this as a bug; it seems to have something to do
with the accented characters in the page titles -- links to pages such
as PmWikiFr/ReleaseNotes (title "Notes de versions") work while eg.
PmWikiFr/Sandbox (title "Bac à Sable") don't.

eemeli

On Sat, Mar 8, 2008 at 1:25 PM, Christian Bartolomaeus <[EMAIL PROTECTED]> 
wrote:
> Hi,
>
>  in PmWiki/Links the use of [[PageName|+]] markup is explained. The
>  example used is
>
>   [[PmWikiFr/Sandbox|+]]
>
>  This works well for that page and for Main/WikiSandbox -- it displays
>  the title set with (:title:) in PmWikiFr/Sandbox.
>
>  But it doesn't work in PmWikiDe/Links or Test/Title:
>
>   http://www.pmwiki.org/wiki/Test/Title
>
>  Is this syntax only valid for some groups? Or am I missing something
>  else?
>
>  Thanks!
>
>  Christian
>
> -BEGIN PGP SIGNATURE-
>  Version: GnuPG v1.4.6 (GNU/Linux)
>
>  iD8DBQFH0neyFvkwwNi9yQQRAioDAKCEdvkZ+UcframfnTwId1jKakC+UQCeMQYO
>  vKjg+2dAVM/l0TbUWr6yqcM=
>  =BSLL
>  -END PGP SIGNATURE-
>
> ___
>  pmwiki-users mailing list
>  pmwiki-users@pmichaud.com
>  http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Reorganising our PMWiki?

2008-03-11 Thread David Spitzley
Keep in mind that you can effectively add one Category to another Category.  If 
you want Category A to be an element of Category B, just add [[!B]] to your 
Category.A page, and you can then take the link to A off of the front page.

You might get better advice if you point people towards the website you are 
revising.

David

>>> Nicholas Buttle <[EMAIL PROTECTED]> 3/11/2008 8:08 AM >>>
Hi

We've got around 10 items to choose from on our front
page menu and each item has a corresponding PMwiki
category/group.  We want to simplify this so that
there's just 3 links of the front page menu.

Is there an easy way of moving pages from one
group/category to another?  Can we just rename the
files? eg GroupA.Page1 to GroupB.Page1

TIA

Nick


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping 

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com 
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Reorganising our PMWiki?

2008-03-11 Thread Neil Herber (nospam)
On 2008-03-11 Nicholas Buttle is rumoured to have said:
> Is there an easy way of moving pages from one group/category to another? Can 
> we just rename the files? eg GroupA.Page1 to GroupB.Page1 

That's the easiest way. Delete the ".pageindex" file at the same time. 
PmWiki will rebuild it.

-- 
Neil Herber
Corporate info at http://www.eton.ca/

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Reorganising our PMWiki?

2008-03-11 Thread Nicholas Buttle
Hi

We've got around 10 items to choose from on our front
page menu and each item has a corresponding PMwiki
category/group.  We want to simplify this so that
there's just 3 links of the front page menu.

Is there an easy way of moving pages from one
group/category to another?  Can we just rename the
files? eg GroupA.Page1 to GroupB.Page1

TIA

Nick


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Cookbook.FileAttachList

2008-03-11 Thread Nicolas Poulain
  Hello

  It seems that the jsfilelist.php has been (maliciously) replaced by an
html file in http://www.pmwiki.org/wiki/Cookbook/FileAttachList . Does
anyone have a copy to put back the right php file ?

  Regards

-- 
Nicolas poulain
http://exomatik.net
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] strange behaviour of Categories

2008-03-11 Thread Christian Bartolomaeus
Hi Hans,

* On 2008-03-11 Hans ([EMAIL PROTECTED]) wrote:
> [...]
> > ... but there are lots of other pages as well. I'm certain, those
> > pages don't have a tag [[!TranslateMeToGerman]].
> 
> > What is going wrong?
> 
> there was a second pagelist in Category.Groupfooter:
> 
> (:pagelist link=Category.{*$fuffa} list=normal:)
> 
> I have removed this now.

ahh, thanks a lot!

Christian


signature.asc
Description: Digital signature
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] strange behaviour of Categories

2008-03-11 Thread Hans
Tuesday, March 11, 2008, 9:16:35 AM, Christian Bartolomaeus wrote:

> ... but there are lots of other pages as well. I'm certain, those
> pages don't have a tag [[!TranslateMeToGerman]].

> What is going wrong?

there was a second pagelist in Category.Groupfooter:

(:pagelist link=Category.{*$fuffa} list=normal:)

I have removed this now.


  ~Hans


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] problem with [[PageName|+]] markup

2008-03-11 Thread Christian Bartolomaeus
* On 2008-03-11 Hans ([EMAIL PROTECTED]) wrote:
> Saturday, March 8, 2008, 11:25:38 AM, Christian Bartolomaeus wrote:
> 
> > But it doesn't work in PmWikiDe/Links or Test/Title:
> 
> >   http://www.pmwiki.org/wiki/Test/Title
> 
> > Is this syntax only valid for some groups? Or am I missing something
> > else?
> 
> it seems to work fine. Just make sure the link points to an
> existing page. See
> http://www.pmwiki.org/wiki/Test/Title
> 
> I now corrected the example link on PmWikiDe.Links to use
> [[DocumentationIndex|+]]

Well, your example works. But see again at

  http://www.pmwiki.org/wiki/Test/Title

If you follow the link to [[PmWikiFr/Sandbox]] you will see that that
page exists!

So I'm asking myself: Why does it work for
[[PmWikiDe/DocumentationIndex|+]] but not for [[PmWikiFr/Sandbox|+]]?

Christian


signature.asc
Description: Digital signature
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] problem with [[PageName|+]] markup

2008-03-11 Thread Hans
Saturday, March 8, 2008, 11:25:38 AM, Christian Bartolomaeus wrote:

> But it doesn't work in PmWikiDe/Links or Test/Title:

>   http://www.pmwiki.org/wiki/Test/Title

> Is this syntax only valid for some groups? Or am I missing something
> else?

it seems to work fine. Just make sure the link points to an
existing page. See
http://www.pmwiki.org/wiki/Test/Title

I now corrected the example link on PmWikiDe.Links to use
[[DocumentationIndex|+]]



  ~Hans


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Fwd: get blank page on upload

2008-03-11 Thread sawyer x
hey
i'm sorry to bump this but it is actually the only problem i have with
PmWiki and it's the most crucial one.
i've checked with phpinfo() and it shows i have session enabled. is it
possible that pmwiki disagrees because i don't have a referrer or something
(since i use the absolute ?action=upload) by just going there without really
being directed?

is there a different way to get to the uploads from within pmwiki without
hacking the uri?

-- Forwarded message --
From: sawyer x <[EMAIL PROTECTED]>
Date: Sun, Mar 9, 2008 at 7:04 PM
Subject: Re: [pmwiki-users] get blank page on upload
To: "Patrick R. Michaud" <[EMAIL PROTECTED]>


i've set the session.save_path in the php.ini
this is running on apache under gnu/linux.

it still doesn't work. is it possible that it happens because i simple go to
the path?action=upload instead of letting it lead me there?
there are just no links anywhere, and i read somewhere along the docs that i
can just enter the path?action=upload to get to uploading files. am i doing
something wrong?

thanks again for the attention.
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] strange behaviour of Categories

2008-03-11 Thread Christian Bartolomaeus
Hi,

working on the German documentation I tried to tag pages with

  [[!TranslateMeToGerman]]

As expected they show up at

  http://www.pmwiki.org/wiki/Category/TranslateMeToGerman
 
... but there are lots of other pages as well. I'm certain, those
pages don't have a tag [[!TranslateMeToGerman]].

What is going wrong?

Thanks and best regards

Christian


signature.asc
Description: Digital signature
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] problem with [[PageName|+]] markup

2008-03-11 Thread Christian Bartolomaeus
I just wanted to repeat my question. Maybe it escaped your notice last
time.

* On 2008-03-08 Christian Bartolomaeus ([EMAIL PROTECTED]) wrote:
> Hi,
> 
> in PmWiki/Links the use of [[PageName|+]] markup is explained. The
> example used is
> 
>   [[PmWikiFr/Sandbox|+]]
> 
> This works well for that page and for Main/WikiSandbox -- it displays
> the title set with (:title:) in PmWikiFr/Sandbox.
> 
> But it doesn't work in PmWikiDe/Links or Test/Title:
> 
>   http://www.pmwiki.org/wiki/Test/Title
> 
> Is this syntax only valid for some groups? Or am I missing something
> else?
> 
> Thanks!
> 
> Christian




signature.asc
Description: Digital signature
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] categories - names, i18n

2008-03-11 Thread Hans
Tuesday, March 11, 2008, 3:47:52 AM, Simon wrote:

> It seems to me that pages with [[! Somecategory]] are those that are
> labelled (tagged) with that category,
> and therefore should appear in the Category group.

> Those of the form [[Category/SomeCategory | text]] refer (link) to a
> category and DO NOT label a page with the category,
> they should not appear in the Category group.

There is no difference between the two. [[!SomeCategory]] is just a
convenient shortcut for [[Category/SomeCategory]].
Both are simply links pointing to a page in the category group, and
this page mayor may not exist.

There is no concept in PmWiki of a category label or tag. By using
a category link a page does not 'belong' to a category. It simply
allows listing of pages with such links on a Category page using the
pagelist link= parameter.


  ~Hans


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Problem with shared groups

2008-03-11 Thread Jean-Fabrice [gmail]
2008/3/11, James DeVain <[EMAIL PROTECTED]>:

>  $WikiDir = new PageStore('$FarmD/shared.d-Whatever/$FullName');
>
Have you tried $WikiDir = new PageStore($FarmD .
'/shared.d-Whatever/$FullName'); ?

>  Also, if it helps, I'm using this in my farmconfig.php file:
>
>
>  $LockFile = "$FarmD/shared.d/.flock";
>  $WikiLibDirs = array(
>&$WikiDir,
>   new PageStore('$FarmD/shared.d-Whatever/$FullName', 1),
>   new PageStore('$FarmD/wikilib.d/$FullName'));

I don't know it it can help, but $FarmD is a php variable while
$FullName is not.
So you should probably write :
  $WikiLibDirs = array(
&$WikiDir,
   new PageStore($FarmD . '/shared.d-Whatever/$FullName', 1),
   new PageStore($FarmD . '/wikilib.d/$FullName'));

JF

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Fox trouble

2008-03-11 Thread Jean-Fabrice [gmail]
2008/3/11, jim <[EMAIL PROTECTED]>:
> Hello!
>
>  I have been having install problems with Fox.  I did fresh PmWiki
>  install with a minimal config.php file setting the admin password and
>  including fox.php.  I when I submit the form I get nothing just a blank
>  page.

What version of fox are you using ? Fox has just been updated a few
hours ago. I was having similar issue with fox, making Apache crash
with a blank page. The last release seems to be ok. Give it a try.

JF

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users