[pmwiki-users] Text Replacement
Russell Bailey
russell-pmwiki at saberpunk.net
Fri Aug 5 10:20:59 CDT 2005
Perhaps your function is running at the end of $EditFunctions, after
PostPage() has already executed, so your changes aren't getting saved? I
had a similar problem recently.
Russell
> <html><div style='background-color:'><DIV class=RTE>
> <P>The $ROSPatterns are working. However, I wanted the recipe to run off
> of the inserted text, then replace the saved text. This way the function
> will run the first time the document was saved, but not everytime. The
> function will run if I Preview, but when I Save the $ROSPattern will run
> and the function doesn't run. Does that make sense?</P>
> <P>Monte</P></DIV>
> <DIV></DIV>
> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT:
> #a0c6e5 2px solid; MARGIN-RIGHT: 0px"><FONT style="FONT-SIZE: 11px;
> FONT-FAMILY: tahoma,sans-serif">
> <HR color=#a0c6e5 SIZE=1>
>
> <DIV></DIV>From: <I>"Patrick R. Michaud"
> <pmichaud at pobox.com></I><BR>To: <I>Monte Padget
> <m_padget at hotmail.com></I><BR>CC: <I>Pmwiki-users at pmichaud.com</I><BR>Subject: <I>Re:
> [pmwiki-users] Text Replacement</I><BR>Date: <I>Thu, 4 Aug 2005
> 15:44:25 -0500</I><BR>>On Thu, Aug 04, 2005 at 03:36:45PM -0500, Monte
> Padget wrote:<BR>> > I have been searching
> pmwiki.org and no luck so far.<BR>> ><BR>>
> > I would like to be able to have text replaced
> in a wiki page<BR>> > automatically. The goal
> is to allow the user to enter in something<BR>>
> > specific, for which I'm trying to write a
> recipe, and when the user saves,<BR>> > the
> recipe will execute and replace the entered text with
> non-recipe text.<BR>> > Are there any
> functions available for this?<BR>><BR>>Take a look at $ROSPatterns
> (replace-on-save patterns). There are<BR>>a couple of
> examples in scripts/author.php
> .<BR>><BR>>Pm<BR></FONT></BLOCKQUOTE></div></html>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
More information about the pmwiki-users
mailing list