[pmwiki-users] Re: pmwiki-users Digest, Vol 6, Issue 90

Ben Wilson dausha at gmail.com
Mon Dec 19 11:52:31 CST 2005


Shows what I get for not reading the digests. I googled on how to add the RSS.
Apparently, you can only create live bookmarks in the header. However,
you can create page markup that adds content into the header. One
thing I've done is create a variable that exists in the template
header (with a "" default value) that is populated when the markup is
used. That would allow you to make the bookmark page specific.

However, it appears that the bookmark is keyed to the URL fed to it by
the header--so it is more site specific.

---

Hi Ben,

Had that idea a few days ago
(http://pmichaud.com/pipermail/pmwiki-users/2005-December/020734.html) -
not quite as elegantly put as yours though!

Is there a way of doing this within the page rather than the address bar in
Firefox?

They don't want to adopt Firefox as an RSS / Browser tool here at work
(looking towards RSSOwl instead) but I'd like to know if there is an easy
way to have an add this feed without involving a copy and paste (useful
for a roleout into the business).

Regards,

Alan


On 12/19/05, pmwiki-users-request at pmichaud.com
<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://host.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. UserAuth Development Plans (Dan Weber)
>    2. Wiki Trails (DaveG)
>    3. Re: Category Markup (DaveG)
>    4. Re: UserAuth Development Plans (blues)
>    5. Statistics Collection (Alan Perryman)
>    6. Re: Wiki Trails (christian.ridderstrom at gmail.com)
>    7. Re: Statistics Collection (DaveG)
>    8. Re: Wiki Trails (Patrick R. Michaud)
>    9. Re: Statistics Collection (Alan Perryman)
>   10. Re: Statistics Collection (Patrick R. Michaud)
>   11. Live Bookmarks on Firefox . . . (Ben Wilson)
>   12. Re: Statistics Collection (Alan Perryman)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sun, 18 Dec 2005 16:08:15 -0500
> From: "Dan Weber" <webmaster at drwhosting.net>
> Subject: [pmwiki-users] UserAuth Development Plans
> To: pmwiki-users at pmichaud.com
> Message-ID: <do4j40$nei$1 at sea.gmane.org>
>
> I am currently using the UserAuth module and was wondering if anyone is
> currently working on extending its functionality and making it compatible
> with PmWiki 2.1.
>
> Dan
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 18 Dec 2005 22:05:31 -0500
> From: DaveG <pmwiki at solidgone.com>
> Subject: [pmwiki-users] Wiki Trails
> To: PmWiki Users <pmwiki-users at pmichaud.com>
> Message-ID: <43A6237B.3030309 at solidgone.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Is there any way to *prevent* the Trail markup using an external link
> that may be in the trail list?
>
> What happens when the trail list is:
> * [[Internal Link1]]
> * [[External Link]]
> * [[Internal Link2]]
>
> The first trail is okay, but includes a link to the external site which
> is a little odd for the user since they get taken away.
>
>   ~ ~ Dave
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 18 Dec 2005 22:10:50 -0500
> From: DaveG <pmwiki at solidgone.com>
> Subject: Re: [pmwiki-users] Category Markup
> To: DaveG <pmwiki at solidgone.com>
> Cc: PmWiki Users <pmwiki-users at pmichaud.com>
> Message-ID: <43A624BA.6020409 at solidgone.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> I finally worked it out. I'll post the result as a Cookbook.
>
>   ~ ~ Dave
>
> DaveG wrote:
> > Well, here's where I'm at now. I'm totally unable to get tge regex in
> > CategoriesToTags to convert from "Cat: [[!a]],[[!b]]" to "Tag: a,b".
> > Apart from that everything seems to fire okay.
> >
> > function TagsToCategories($tags) {
> >    return 'Cat:'.preg_replace('/\\w+/', '[[!$0]]', $tags);
> > }
> > #----
> > function CategoriesToTags($tags) {
> >    return '*'.$tags.'* Tags:'.preg_replace('/([a-z]+)/', '$0', $tags);
> > }
> >
> > function MyConvertTags($pagename, &$page, &$new) {
> >    $x=$new['text'];
> >
> >    $new['text'] = preg_replace("/^Tags?: *([\\w, ]+)/ie",
> > "TagsToCategories('$1')", $new['text']);
> >    if ($x==$new['text'])
> >       $new['text'] = preg_replace('/^Cat?: *([\\[\\[!\\w\\]\\],
> > ]+)/ie',"CategoriesToTags('$1')", $new['text']);
> > }
> >
> >  ~ ~ Dave
> >
> > DaveG wrote:
> >
> >> Your sample didn't work as it stood, I just get the text
> >> "TagsToCategories('a,b')", on *Save*, where I would expect no action
> >> until Edit.
> >>
> >> 1] In this case, does the EditFunctions simply act when Editing, or
> >> also when Saving? It *appears* to do both.
> >>
> >> 2] What does the /m switch do? Things appear to work better when I use
> >> /e instead.
> >>
> >> 3] Based on the answer to (1), shouldn't we create a "CategoriesToTags
> >> routine, and change the pattern appropriately to convert "Tags:
> >> [[!a]]" into "Tags: a"?
> >>
> >> Based on a "yes" to (3) I created routines to do the reverse
> >> replacement. What fails on my code is the reverse conversion from
> >> "Tags: a,b" to "Tags: [[!a]],[[!b]]" when switching to Edit.
> >>
> >> Here's what I have so far (ref
> >> http://www.solidgone.com/pmwiki/index.php?n=Main.WikiSandbox):
> >> $ROSPatterns["/^Tags?: *([\\w, ]+)/ie"] = "TagsToCategories('$1')";
> >> function TagsToCategories($tags) {
> >>    return 'Tags:'.preg_replace('/\\w+/', '[[!$0]]', $tags);
> >> }
> >> #----
> >> function CategoriesToTags($tags) {
> >>    return 'Tags:'.preg_replace('/[\\[\\[![\\w]\\]\\]]+/', '$1', $tags);
> >> }
> >>
> >> function MyConvertTags($pagename, &$page, &$new) {
> >>    $new['text'] = preg_replace('/^Tags?: *([\\[\\[!\\w\\]\\], ]+)/e',
> >>                     "CategoriesToTags('$1')", $new['text']);
> >> }
> >>
> >> array_unshift($EditFunctions, 'MyConvertTags');
> >> #----
> >>
> >>
> >>  ~ ~ Dave
> >>
> >> Patrick R. Michaud wrote:
> >>
> >>> On Sat, Dec 17, 2005 at 12:55:39AM -0500, DaveG wrote:
> >>>
> >>>> I abandoned the regex from hell, and used a function instead :) Is
> >>>> there such a thing as ReplaceOnEdit?
> >>>
> >>>
> >>>
> >>>
> >>> It can be done with an EditFunction:
> >>>
> >>>    function MyConvertTags($pagename, &$page, &$new) {
> >>>      $new['text'] = preg_replace('/^Tags?: *([\\w, ]+)/m',
> >>>                                 "TagsToCategories('$1')", $new['text']);
> >>>    }
> >>>
> >>>    array_unshift($EditFunctions, 'MyConvertTags');
> >>>
> >>> But it might also be worthwhile for me to define a $ROEPatterns
> >>> that can corresponds to $ROSPatterns.
> >>>
> >>> Pm
> >>>
> >>
> >> _______________________________________________
> >> pmwiki-users mailing list
> >> pmwiki-users at pmichaud.com
> >> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
> >>
> >
>
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 19 Dec 2005 11:54:07 +0200
> From: blues <blues4u at supereva.it>
> Subject: [pmwiki-users] Re: UserAuth Development Plans
> To: pmwiki-users at pmichaud.com
> Message-ID: <op.s10y4hgsy1j2db at user_27>
> Content-Type: text/plain; format=flowed; delsp=yes;
>         charset=iso-8859-15
>
> On Sun, 18 Dec 2005 23:08:15 +0200, Dan Weber <webmaster at drwhosting.net>
> wrote:
> > I am currently using the UserAuth module and was wondering if anyone is
> > currently working on extending its functionality and making it compatible
> > with PmWiki 2.1.
>
> i am using it with 2.1.beta14 without any problem
>
> blues
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 19 Dec 2005 11:28:48 +0000
> From: Alan Perryman <A.Perryman at student.manchester.ac.uk>
> Subject: [pmwiki-users] Statistics Collection
> To: pmwiki-users at pmichaud.com
> Message-ID:
>         <20051219112848.y46hq0ng6oosswgw at webmail4.manchester.ac.uk>
> Content-Type: text/plain;       charset=ISO-8859-15
>
> Is there a recipe for stats collection?
>
> My supervisor first ran pmwiki at home on an apache box and installed
> http://ekstreme.com/phpcounter/ in addition - which collects stats about
> the pages viewed. However this doesn't work on IIS as the "clean urls"
> recipe doesn't work.
>
> He doesn't seem to want to go for the simple solution of setting up an
> apache box either(!)
>
> Regards,
>
> Alan
>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 19 Dec 2005 14:54:39 +0100
> From: christian.ridderstrom at gmail.com
> Subject: [pmwiki-users] Re: Wiki Trails
> To: pmwiki-users at pmichaud.com
> Message-ID:
>         <Pine.LNX.4.44.0512191453000.32550-100000 at black01.md.kth.se>
> Content-Type: TEXT/PLAIN; charset=ISO-8859-1
>
> On Sun, 18 Dec 2005, DaveG wrote:
>
> > Is there any way to *prevent* the Trail markup using an external link
> > that may be in the trail list?
> >
> > What happens when the trail list is:
> > * [[Internal Link1]]
> > * [[External Link]]
> > * [[Internal Link2]]
> >
> > The first trail is okay, but includes a link to the external site which
> > is a little odd for the user since they get taken away.
>
> This is a good point.  Trailing of to an external page only makes sense to
> me if it goes to another trail, e.g. if I'd spread a trail over several
> wiki fields.
>
> /Christian
>
> --
> Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr
>
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 19 Dec 2005 09:23:24 -0500
> From: DaveG <pmwiki at solidgone.com>
> Subject: Re: [pmwiki-users] Statistics Collection
> To: Alan Perryman <A.Perryman at student.manchester.ac.uk>
> Cc: pmwiki-users at pmichaud.com
> Message-ID: <43A6C25C.2050904 at solidgone.com>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
>
> I've been using Cookbook/Counter which allows you to store a simple
> count at the bottom of each page. I modified it to store the count file
> in a separate directory. I also have a separate script which shows a
> list of all pages, and their counts -- not sure where I got that from.
>
> I recently started looking at ActionLog which maintains a detailed list
> of IP's, actions, dates, and page. Looks pretty promising.
>
>   ~ ~ Dave
>
> Alan Perryman wrote:
> > Is there a recipe for stats collection?
> >
> > My supervisor first ran pmwiki at home on an apache box and installed
> > http://ekstreme.com/phpcounter/ in addition - which collects stats about
> > the pages viewed. However this doesn't work on IIS as the "clean urls"
> > recipe doesn't work.
> >
> > He doesn't seem to want to go for the simple solution of setting up an
> > apache box either(!)
> >
> > Regards,
> >
> > Alan
> >
> > _______________________________________________
> > pmwiki-users mailing list
> > pmwiki-users at pmichaud.com
> > http://host.pmichaud.com/mailman/listinfo/pmwiki-users
> >
>
>
>
> ------------------------------
>
> Message: 8
> Date: Mon, 19 Dec 2005 09:10:22 -0600
> From: "Patrick R. Michaud" <pmichaud at pobox.com>
> Subject: Re: [pmwiki-users] Wiki Trails
> To: DaveG <pmwiki at solidgone.com>
> Cc: PmWiki Users <pmwiki-users at pmichaud.com>
> Message-ID: <20051219151022.GA25088 at host.pmichaud.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Sun, Dec 18, 2005 at 10:05:31PM -0500, DaveG wrote:
> > Is there any way to *prevent* the Trail markup using an external link
> > that may be in the trail list?
> >
> > What happens when the trail list is:
> > * [[Internal Link1]]
> > * [[External Link]]
> > * [[Internal Link2]]
> >
> > The first trail is okay, but includes a link to the external site which
> > is a little odd for the user since they get taken away.
>
> That's a bug -- trails aren't supposed to include external links,
> just page links.  I'm not sure when that bug crept into the system,
> but I'll be taking it out.
>
> Pm
>
>
>
> ------------------------------
>
> Message: 9
> Date: Mon, 19 Dec 2005 15:51:20 +0000
> From: Alan Perryman <A.Perryman at student.manchester.ac.uk>
> Subject: Re: [pmwiki-users] Statistics Collection
> To: pmwiki-users at pmichaud.com
> Message-ID:
>         <20051219155120.ap1owh7v48ow4044 at webmail3.manchester.ac.uk>
> Content-Type: text/plain;       charset=ISO-8859-15;    format="flowed"
>
> I'll check that out, cheers :)
>
> I think what my supervisor really wants if a !RecentChanges - i.e. pages
> that haven't changed in a while. I'll see if I can tweak actionlog and/or
> RecentChanges to do something like this without breaking them!
>
> Alan
>
> ----- Message from pmwiki at solidgone.com ---------
>     Date: Mon, 19 Dec 2005 09:23:24 -0500
>     From: DaveG <pmwiki at solidgone.com>
> Reply-To: DaveG <pmwiki at solidgone.com>
> Subject: Re: [pmwiki-users] Statistics Collection
>       To: Alan Perryman <A.Perryman at student.manchester.ac.uk>
>
>
> > I've been using Cookbook/Counter which allows you to store a simple
> > count at the bottom of each page. I modified it to store the count
> > file in a separate directory. I also have a separate script which
> > shows a list of all pages, and their counts -- not sure where I got
> > that from.
> >
> > I recently started looking at ActionLog which maintains a detailed
> > list of IP's, actions, dates, and page. Looks pretty promising.
> >
> >  ~ ~ Dave
> >
> > Alan Perryman wrote:
> >> Is there a recipe for stats collection?
> >>
> >> My supervisor first ran pmwiki at home on an apache box and installed
> >> http://ekstreme.com/phpcounter/ in addition - which collects stats about
> >> the pages viewed. However this doesn't work on IIS as the "clean urls"
> >> recipe doesn't work.
> >>
> >> He doesn't seem to want to go for the simple solution of setting up an
> >> apache box either(!)
> >>
> >> Regards,
> >>
> >> Alan
> >>
> >> _______________________________________________
> >> pmwiki-users mailing list
> >> pmwiki-users at pmichaud.com
> >> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
> >>
> >
>
>
> ----- End message from pmwiki at solidgone.com -----
>
>
>
>
>
>
> ------------------------------
>
> Message: 10
> Date: Mon, 19 Dec 2005 10:10:26 -0600
> From: "Patrick R. Michaud" <pmichaud at pobox.com>
> Subject: Re: [pmwiki-users] Statistics Collection
> To: Alan Perryman <A.Perryman at student.manchester.ac.uk>
> Cc: pmwiki-users at pmichaud.com
> Message-ID: <20051219161026.GA1388 at host.pmichaud.com>
> Content-Type: text/plain; charset=us-ascii
>
> On Mon, Dec 19, 2005 at 03:51:20PM +0000, Alan Perryman wrote:
> > I'll check that out, cheers :)
> >
> > I think what my supervisor really wants if a !RecentChanges - i.e. pages
> > that haven't changed in a while. I'll see if I can tweak actionlog and/or
> > RecentChanges to do something like this without breaking them!
>
> There's always pagelist:
>
>     (:pagelist group=SomeGroup order=time count=10:)
>
> shows the ten pages with the oldest modification times.  Or if you
> want to do it from the RecentChanges page, then
>
>     (:pagelist trail=SomeGroup.RecentChanges order=time count=10:)
>
> which only shows pages that are on the RecentChanges trail.  Of course,
> you can also create a custom trail and use that as the source.
>
> Pm
>
>
>
> ------------------------------
>
> Message: 11
> Date: Mon, 19 Dec 2005 10:28:59 -0600
> From: Ben Wilson <dausha at gmail.com>
> Subject: [pmwiki-users] Live Bookmarks on Firefox . . .
> To: pmwiki-users at pmichaud.com
> Message-ID:
>         <cc6097050512190828s421bc2bbp2c9f30468c1a8379 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> For those who read /., the recently announced that the next version of IE
> will use Firefox's orange icon for live RSS based feeds. Having read that,
> and having recently added an RSS feed for reporting recent changes, I have
> added a wee bit of markup to my PmWiki template (below). In Firefox, it
> gives the viewer the ability to add a "live bookmark" onto their bookmark
> bar.
>
> <link rel="alternate" type="application/rss+xml" title="$WikiTitle RSS"
> href="$ScriptUrl/Main/AllRecentChanges?action=rss">
>
> --
> Ben Wilson
> " Mundus vult decipi, ergo decipiatur"
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: /pipermail/pmwiki-users/attachments/20051219/afff461e/attachment-0001.html
>
> ------------------------------
>
> Message: 12
> Date: Mon, 19 Dec 2005 16:30:47 +0000
> From: Alan Perryman <A.Perryman at student.manchester.ac.uk>
> Subject: Re: [pmwiki-users] Statistics Collection
> To: pmwiki-users at pmichaud.com
> Message-ID:
>         <20051219163047.6ezfp2acsgc00koo at webmail3.manchester.ac.uk>
> Content-Type: text/plain;       charset=ISO-8859-15;    format="flowed"
>
> Thanks for that, I'll give that a try as well. At the moment I'm looking at
> ActionLog as this might present some additional information that the
> management types would like!
>
> How do I access who's currently logged in?
>
> I've tried bodging something using this, added into the ActionLog.php file:
>
> ## before the SDV and function
>
> if(!isset($UserInstanceVars)) {
>   require_once("userauth/UserSessionVars.php");
>   $UserInstanceVars = new UserSessionVars();
>   }
>
>   $LogAuthor = $UserInstanceVars->GetInstanceUsername();
>
> ##and within the semaphore section in the function:
>
> $page['text'] = sprintf($ActionLogLineFmt,
>                                 strftime($ActionLogTimeFmt, $timenow),
>                                 $_SERVER['REMOTE_ADDR'],
>                                 $action, $pagename, $LogAuthor)
>
> I'm hoping just to append user name into the log. Using userauth at the
> moment, and very limited php skills, as you can see!
>
> Alan
>
> > On Mon, Dec 19, 2005 at 03:51:20PM +0000, Alan Perryman wrote:
> >> I'll check that out, cheers :)
> >>
> >> I think what my supervisor really wants if a !RecentChanges - i.e. pages
> >> that haven't changed in a while. I'll see if I can tweak actionlog and/or
> >> RecentChanges to do something like this without breaking them!
> >
> > There's always pagelist:
> >
> >    (:pagelist group=SomeGroup order=time count=10:)
> >
> > shows the ten pages with the oldest modification times.  Or if you
> > want to do it from the RecentChanges page, then
> >
> >    (:pagelist trail=SomeGroup.RecentChanges order=time count=10:)
> >
> > which only shows pages that are on the RecentChanges trail.  Of course,
> > you can also create a custom trail and use that as the source.
> >
> > Pm
> >
>
>
> ----- End message from pmichaud at pobox.com -----
>
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
> End of pmwiki-users Digest, Vol 6, Issue 90
> *******************************************
>



--
Ben Wilson
" Mundus vult decipi, ergo decipiatur"




More information about the pmwiki-users mailing list