[pmwiki-users] Authorlink in pagerev.php

Tim Ahrentlov ta at ateist.org
Thu Feb 2 08:33:55 CST 2006


Hi Patrick,

Thank you for that elaborate answer.

I can do a "http://path/to/forum/member.php?username=xxxxx" query on the
author stored in the page on diff pages. Where should I insert this?

Will you consider storing the authorlink in future versions - if set?

/Tim

-----Original Message-----
From: Patrick R. Michaud [mailto:pmichaud at pobox.com] 
Sent: 1. februar 2006 23:18
To: Tim Ahrentlov
Cc: pmwiki-users at pmichaud.com
Subject: Re: [pmwiki-users] Authorlink in pagerev.php

On Wed, Feb 01, 2006 at 10:55:07PM +0100, Tim Ahrentlov wrote:
> I simply need the author name to be clickable with the link. It's the last
> piece I need to my vBulletin integration.
> 
> Would it help if we invent a second variable, say, AuthorURL ? that only
> contains the raw url? If so, what should I insert where?

I know our messages probably crossed in the mail, but just to
answer this one -- the $Author and $AuthorLink variables always refer 
to the person currently interacting with the wiki, which is not always
the same as the person(s) who created the current page.

And in the case of page history, there are many such links that
have different values -- one per revision.  So, in order for
PmWiki to be able to do provide arbitrary url links, it would
have to save the value of $AuthorLink with each page revision.
Currently it only stores the value of $Author with each page
revision.  In many ways it's more convenient to simply store $Author
and figure out the location from that, because if we store the
URL with each page revision it's nearly impossible to go back
and update the history if the location of author pages changes.

All of which isn't really solving what you're wanting to do,
so I'll try improving my question:  Given a particular author
name, what's the url of the target link?  Or, in the alternative,
what is your current setting of $AuthorLink ?  From that, I can 
tell you how to configure pagerev.php to do something equivalent.
(I can't tell you how to make it work using $AuthorLink itself,
because PmWiki doesn't store $AuthorLink in the page history,
it only stores author names.)

Pm







More information about the pmwiki-users mailing list