[pmwiki-users] posting to Static pages outside of PmWIki

Seth Cherney sethcherney at yahoo.com
Tue Dec 26 10:35:28 CST 2006


I am trying to use the static pages to post to a directory outside of the pmwiki install:mysite/mydocs, while pmwiki is mysite/wiki.  SInce the whole recipe depends on $ScriptUrl, I am not sure which lines to edit to get it to post (actually, would be best to be able to use both a url and a system path, as I work in win xp but post to apache on linux).  If I alter the first lines of StaticPages.php, It appears that there are too many variables that will break in the other files.  
($ApplicationPathUrl = dirname($ScriptUrl);
$ApplicationPathDir = realpath(dirname(__FILE__) . "/../.");


if (!isset($StaticPageDir)) {$StaticPageDir = "pub/web";})

Thanks, Seth

pmwiki-users-request at pmichaud.com wrote: Send pmwiki-users mailing list submissions to
 pmwiki-users at pmichaud.com

To subscribe or unsubscribe via the World Wide Web, visit
 http://www.pmichaud.com/mailman/listinfo/pmwiki-users
or, via email, send a message with subject or body 'help' to
 pmwiki-users-request at pmichaud.com

You can reach the person managing the list at
 pmwiki-users-owner at pmichaud.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of pmwiki-users digest..."


Today's Topics:

   1. Re: RSPM--my first ZAP app... (J. Meijer)
   2. Re: Nested Tables (The Editor)
   3. Firefox 2 breaks Alt+E, Alt+S etc accesskeys (J. Meijer)
   4. pagelist sort by text vars (The Editor)
   5. Re: pagelist sort by text vars (The Editor)
   6. jsMath - scalable mathematics (Ben Woodruff)
   7. Re: RSPM--my first ZAP app... (The Editor)
   8. Re: I have a trouble about cleaning URL (H. Fox)
   9. page name variable (info)
  10. Re: page name variable (Patrick R. Michaud)
  11. Re: page name variable (info)
  12. Re: page name variable (Hans)


----------------------------------------------------------------------

Message: 1
Date: Mon, 25 Dec 2006 22:13:31 +0000
From: "J. Meijer" 
Subject: Re: [pmwiki-users] RSPM--my first ZAP app...
To: 

Message-ID: 
Content-Type: text/plain; charset="iso-8859-1"



Dan, I took a look at your site. 

I'm writing just to say I'm impressed with your skills and the vision of your work. 

There is a lot to like, its departure 'into a better world', complementing basic pmwiki qualities. 

So there you have it. A bit of propaganda for ya :-) 

/jm



ps Can't you give a public logon+password that's valid only for a couple of days? 
Most will come to take a look the first day a message is posted. 
I for one didn't bother with this, as it's typically a buggy ride. 




On 12/24/06,  The Editor  wrote:
I've been working on my first ZAP app, a "really simple project
management" system, using some ideas from SKTS and David G.
Everything is password protected, you login, and it goes right to the
home page where all your current, personal tasks, calendar events,
daily schedule etc are right at your finger tips.

Anyway, I've been having good success so far.  Here are some of the
features currently working:

* Built in Rolodex (Contacts)

* Weekly Schedule Maker (Items)

* Yearly Calendar (Events)
** Events can be one time or recurring

* Any number of Projects
** Projects let you build multiple (Documents)
** Each Document takes simple text imports

* Tasks
** Can be attached to any project, document, item, event, contact
** Tasks are assigned to/sortable by Project, Member, Status
(Priority), Deadline
** All fields are editable


Still to do:

* Multiple Members
**Members can set up semi-private
projects,documents,schedules,calendars,contacts
** Members can send messages to other members (documents)

* Tasks Handling
** Reassign tasks to different pages
** Automatically delete tasks (multiple checkboxes)
** Tasks can be archived when complete

* Emailing
** Can schedule emails to Members / Contacts / Mail Lists


I've never really done anything quite like this before, and wonder if
anyone has any suggestions for making this more useful.  You are
welcome to take a peak at http://www.fast.st/gtd/index.php, login
Guest/test.  Feel free to test...  It's not idiot proofed yet, and
it's still a work in progress, but you can get an idea of what I have
in mind.  TIA for the input.

Cheers,
Dan

_________________________________________________________________
Fixing up the home? Live Search can help.
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=wlmemailtaglinenov06


------------------------------

Message: 2
Date: Mon, 25 Dec 2006 17:37:03 -0500
From: "The Editor" 
Subject: Re: [pmwiki-users] Nested Tables
To: "pmwiki-users at pmichaud.com" 

Message-ID:
 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 12/25/06, Patrick R. Michaud 
 wrote:
> On Sat, Dec 23, 2006 at 09:16:30PM -0500, The Editor wrote:
> > I was reading up on the new nested divs markup, but it doesn't seem to
> > allow nested tables.  Is that supported yet?  If so what is the
> > syntax.  Lots on nested divs, but not tables.
>
> PmWiki doesn't support nested tables in its built-in markup (and I
> have no immediate plans to add it).  I've generally held the position
> that tables of such complexity really deserve their own markup.
>
> Pm

Actually I've discovered you have some nesting already.  You can put
simple tables in advanced tables and vice versa.  I've used it in
several situations.  As long as you don't need advanced formatting for
either the inner or outer table cells of course.

Anyway, in my situation I found a nice work around.  I like your new
select input tags.  They work nice.  Thanks Pm...

Cheers,
Dan

PS.  Looking forward to the textareas...



------------------------------

Message: 3
Date: Mon, 25 Dec 2006 22:40:49 +0000
From: "J. Meijer" 
Subject: [pmwiki-users] Firefox 2 breaks Alt+E, Alt+S etc accesskeys
To: 

Message-ID: 
Content-Type: text/plain; charset="iso-8859-1"


For those that upgrade to Firefox 2 and find their Alt+E, Alt+H, Alt+S and Alt+U accesskeys no longer work: you have to now press Shift *also*. 

Since that's too much of a bother for me I instead took note of the suggestion below which instructs to 

1. open url "about:config", 

2. search for contentAccess and 

3. change the value of the only entry returned to 4

Now accesskeys should work as in Firefox 1.5. 

If anyone knows of a similar hack for use in Opera, please post it as I really prefer to use that browser. 

/jm


The Solution (found on http://www.hannonhill.com/company/blog/2006/firefox-2.0-access-keys-bug.html):

Thankfully, the MozillaZine thread also provides the solution. According to "stonedyak", you just need to do "about:config" in Firefox and change "ui.key.contentAccess" to "4". That's it. I believe someone will come up with a quick Firefox extension to provide more control over this. It'll be interesting to see how things play out.

_________________________________________________________________
Try amazing new 3D maps
http://maps.live.com/?wip=51


------------------------------

Message: 4
Date: Mon, 25 Dec 2006 19:16:56 -0500
From: "The Editor" 
Subject: [pmwiki-users] pagelist sort by text vars
To: "pmwiki-users at pmichaud.com" 

Message-ID:
 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Is it possible to sort by text variables on a page?  I was reading up
on a complicated thread between Crisses & Pm, back when zap was
storing data on separate data pages.  But now they are on the same
page--as text variables.  I understood, you could do something like:

(:pagelist heading="Urgent Tasks" group="Tasks*" name=-RecentChanges
sort={$:deadline} fmt=#zaptasks:)

But it does not seem to be working...  Any help anyone could give
would be appreciated...

Cheers,
Dan



------------------------------

Message: 5
Date: Mon, 25 Dec 2006 20:11:57 -0500
From: "The Editor" 
Subject: Re: [pmwiki-users] pagelist sort by text vars
To: "pmwiki-users at pmichaud.com" 

Message-ID:
 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 12/25/06, The Editor  wrote:
> Is it possible to sort by text variables on a page?  I was reading up
> on a complicated thread between Crisses & Pm, back when zap was
> storing data on separate data pages.  But now they are on the same
> page--as text variables.  I understood, you could do something like:
>
> (:pagelist heading="Urgent Tasks" group="Tasks*" name=-RecentChanges
> sort={$:deadline} fmt=#zaptasks:)
>
> But it does not seem to be working...  Any help anyone could give
> would be appreciated...
>
> Cheers,
> Dan


Sorry, another dumb question...  I just used the wrong syntax.  Here's
how it's supposed to be in case anyone finds this thread...

> (:pagelist heading="Urgent Tasks" group="Tasks*" name=-RecentChanges
> order=$:deadline fmt=#zaptasks:)

I got my zap app working, beautiful, like a charm!  But because I have
satellite, and my ftp program can't seem to cut through the clouds,
will have to upload the (more) finished project later.  Will let you
know when it is up and running...

Cheers,
Dan



------------------------------

Message: 6
Date: Tue, 26 Dec 2006 01:25:10 -0700
From: "Ben Woodruff" 
Subject: [pmwiki-users] jsMath - scalable mathematics
To: pmwiki-users at pmichaud.com
Message-ID:
 <32af4fec0612260025p5762cb2dk1cec5b63ebea47da at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Has anyone adopted using jsMath to embed mathematics in their wiki?

I have been using MimeTeX for the last 6 months, and am trying to update
the mathematics to jsMath because it allows for on the fly resizing and
a larger portion of mathematics commands. The most crucial to me is the
ability to automatically resize math graphics, as I use PMWiki for class
presenations and I need larger math graphics.

Since jsMath is just a javascript, I figure it could be enabled using
the details from the javascript cookbook entry, by having a
(:mathenable:) command to tell the computer that math needs be enabled,
and then a (:mathcompile:) to execute jsMath.  These could be added
automatically to every header and footer so that they never need to be
called again.  However, I was hoping there might be an easier way, such
as having a cookbook recipe which uses the same markup as MimeTeX for
processing mathematics, just makes appropriate changes to the html body
so that the jsMath script is called when needed.

If anyone has adopted jsMath in their wiki, I could use your help.  I
would like to make a recipe for using jsMath.

The jsMath home page is http://www.math.union.edu/~dpvc/jsMath/.

Ben Woodruff
BYU-Idaho
Mathematics Department



------------------------------

Message: 7
Date: Tue, 26 Dec 2006 05:23:08 -0500
From: "The Editor" 
Subject: Re: [pmwiki-users] RSPM--my first ZAP app...
To: "pmwiki-users at pmichaud.com" 

Message-ID:
 
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

I think I finally got the functionality I want for version 1.0 of ZAP
GTD (getting things done)..  It's quite cool actually!  But it's still
giving session errors on the live server, so I'll have to wait to
debug until after I get back.  Anyway, I'll be out of town till New
Years, but hope to have a live working demo up for folks to discuss
early next year.

When I get back, I'm also hoping to try and add capabilities for
multiple users, namely private projects/docs, schedule items, and
calendar events. I also want to split schedule to weekly and monthly,
so can include those once a month things.  And finally, I want to add
email capabilities, plus an update the ZAPnews module so I can
schedule outgoing emails to individuals and mail lists in advance, one
time events, or weekly/monthly/annually.

Thanks to everyone who helped to inspire the ideas behind this
project. (esp SKTS & DaveG).  Maybe now I can get caught up on all the
things I got behind in trying to develop ZAP!

Cheers,
Dan

.



------------------------------

Message: 8
Date: Tue, 26 Dec 2006 04:23:57 -0700
From: "H. Fox" 
Subject: Re: [pmwiki-users] I have a trouble about cleaning URL
To: "PmWiki-Users List" 

Message-ID:
 <2966e8a50612260323i44715cf4td6f2233991a49378 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Shigeru Kobayashi  gmail.com> writes:
>
> Dear all,
>
> I have been trying to clean URL as described in the following web
> page, but I have a problem.
> http://www.pmwiki.org/wiki/Cookbook/CleanUrls#docroot
[...]
> The URL of the wiki is:
> http://gainer.cc/pmwiki/index.php
> (/gainer.cc/html/pmwiki/index.php)
>
> And I'd like to change the URL as follows:
> http://gainer.cc/index.php
> (/gainer.cc/html/)
>
> I created .htaccess file as follows:
> RewriteEngine On
> RewriteBase /
> RewriteRule ^$           pmwiki/pmwiki.php  [L]
> RewriteRule ^index\\.php$ pmwiki/pmwiki.php  [L]
> RewriteRule ^([^/a-z].*) pmwiki/pmwiki.php?n=$1  [QSA,L]
>
> But it seems that the rewriting does not work. Just to make sure, I
> also tried again by replacing "pmwiki/pmwiki.php" with
> "/gainer.cc/html/pmwiki/pmwiki.php", but got no luck.
>
> * Currently, for some reason, http://gainer.cc/index.php exists

Try removing one of the backslashes from the fourth line to get

   RewriteRule ^index\.php$ pmwiki/pmwiki.php  [L]

> to
> redirect from http://gainer.cc/ to old MediaWiki based wiki. When I
> confirmed, I renamed the index.php as _index.php.

If the above rule exists in your /gainer.cc/html/.htaccess file then
/gainer.cc/html/index.php should be ignored.  If it's not ignored then the
server is not rewriting URLs as advertised.

Hagan



------------------------------

Message: 9
Date: Tue, 26 Dec 2006 13:10:05 +0100
From: info 
Subject: [pmwiki-users] page name variable
To: pmwiki-users at pmichaud.com
Message-ID: <200612261310.05703.info at hassanein.ch>
Content-Type: text/plain;  charset="us-ascii"

Hi

By editing a pmwiki page I can use $Group to get the current group name.
Which variable gives me the current page name?

--
Thanks for any help.
Regards,
Mike



------------------------------

Message: 10
Date: Tue, 26 Dec 2006 09:00:20 -0600
From: "Patrick R. Michaud" 

Subject: Re: [pmwiki-users] page name variable
To: info 
Cc: pmwiki-users at pmichaud.com
Message-ID: <20061226150020.GA21700 at host.pmichaud.com>
Content-Type: text/plain; charset=us-ascii

On Tue, Dec 26, 2006 at 01:10:05PM +0100, info wrote:
> Hi
> 
> By editing a pmwiki page I can use $Group to get the current group name.
> Which variable gives me the current page name?

    {$Name}      - name of the page
    {$FullName}  - group+name

See http://www.pmwiki.org/wiki/PmWiki/PageVariables .

Pm



------------------------------

Message: 11
Date: Tue, 26 Dec 2006 16:16:02 +0100
From: info 
Subject: Re: [pmwiki-users] page name variable
To: pmwiki-users at pmichaud.com
Message-ID: <200612261616.02416.info at hassanein.ch>
Content-Type: text/plain;  charset="iso-8859-1"

On Tuesday 26 December 2006 16:00, Patrick R. Michaud wrote:
> On Tue, Dec 26, 2006 at 01:10:05PM +0100, info wrote:
> > By editing a pmwiki page I can use $Group to get the current group name.
> > Which variable gives me the current page name?
>
>     {$Name}      - name of the page
>     {$FullName}  - group+name
Excuse me I expressed myself inacurate.

I am editing the SideBar and within this I want to reference to content page 
name - is that possible at all?

The following line refers to the the SideBar:
%right% [-[[{$Group}.SideBar?action=edit | edit SideBar]]-]

I would like to have the equivalent which refers to the respective content 
page.
%right% [-[[{$Group}.{$}?action=edit | edit Content]]-]

--
Thanks for any tipp.
Regards,
Mike



------------------------------

Message: 12
Date: Tue, 26 Dec 2006 15:31:34 +0000
From: Hans 
Subject: Re: [pmwiki-users] page name variable
To: info 
Cc: pmwiki-users at pmichaud.com
Message-ID: <219676332.20061226153134 at softflow.co.uk>
Content-Type: text/plain; charset=us-ascii

Tuesday, December 26, 2006, 3:16:02 PM, info wrote:

> I am editing the SideBar and within this I want to reference to content page
> name - is that possible at all?

> The following line refers to the the SideBar:
> %right% [-[[{$Group}.SideBar?action=edit | edit SideBar]]-]

> I would like to have the equivalent which refers to the respective content
> page.
> %right% [-[[{$Group}.{$}?action=edit | edit Content]]-]

with pmwiki 2.2.0 betas you need to make the pagevariable absolute by
using *, in order it to apply to the containing page. Otherwise it
applies to the secondary or included page (like SideBar).

so you may use
%right% [-[[{*$Group}.SideBar?action=edit | edit SideBar]]-]
and
%right% [-[[{*$FullName}?action=edit | edit Content]]-]

The latter without the * works for pmwiki pre 2.2.0


Hans




------------------------------

_______________________________________________
pmwiki-users mailing list
pmwiki-users at pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


End of pmwiki-users Digest, Vol 18, Issue 94
********************************************











 __________________________________________________
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/20061226/670db2bf/attachment.html 


More information about the pmwiki-users mailing list