[pmwiki-users] Simple TimeStamper "tool"

Sivakatirswami katir at hindu.org
Thu Sep 6 16:21:23 CDT 2007


Sivakatirswami wrote:
> Sivakatirswami wrote:
>> Requirement: 
>>
>> A "tool" that posts a non-volatile date-time stamp
>> at the location of the user's cursor. In bold...
>>
>>   This wants to be an additional icon
>> the existing GUI mark up icons in the edit window.
> 
> 
> OK, I think I figured out how to do this...
> at least the "method" but not all parts.
> 

OK, did some home work... the four tilde sequence
enforces the author entry and mandates a page
in profiles. the date string is fine, but I would rather have
the author string come afterwards and not be set
up as a link.

I tried to hack that mark up in author.php
by putting this into farmconfig.php

# over ride the tilde sequence in the standard PMwiki distribution
# which you can find in the /scripts/author.php module

Markup('~~~~','inline','/(?<!~)~~~~(?!~)/',"$CurrentTime -- $Author");

# this did not work.. author.php still take precedence and I am
# probably not writing the third param, the regular expression-pattern,
correctly


On the other hand I was able to get this addition working:

$GUIButtons['timestamp'] = array(640,'\\n$CurrentTime--$Author\\n', '', '',
                  '$GUIButtonDirUrlFmt/timestamp.gif"$[Insert Date-Time
Stamp]"');

But since i don't now what I'm doing I would appreciate any comments.

also if I wanted to get the


Markup('~~~~','inline','/(?<!~)~~~~(?!~)/',"$CurrentTime -- $Author");

to work.. what do to:? and also to set the output to dark blue and bold?
these time stamps are like headers on pages where they appear....




tia
Sivakatirswami








More information about the pmwiki-users mailing list