rabbitwashington Posted December 22, 2009 Share Posted December 22, 2009 Hello, I have have recently started working as a programmer in America after moving here from Tokyo this year. However, my first assignment was an important duty of creating a wiki , of which I am very excited abouti. I have a problem with a template file I was creating for a TWiki. which is meant to send out automated emails when pages are changed . For two months I have been confused by these two lines of code that are supposed to find changes, and output them into the email. I finally have decided to ask the skillful programmers on internet forums for their advice because I am out of ideas! Here is my best line of code! <a href="%SCRIPTURL{"compare"}%/%WEB%/%TOPICNAME%">%IF{"%SEARCH{"\-\-\-\+.*" web="%WEB%" topic="%TOPICNAME%" type="regex" scope="text" nonoise="on" format="%TOPICNAME%"}%" then="%SEARCH{"\-\-\-\+.*" web="%WEB%" topic="%TOPICNAME%" type="regex" scope="text" nonoise="on" format="<b>$pattern(^\-\-\-\+*?\s([^\n\r]*).*)</b>"}%" else="<b>%TOPICNAME%</b>"}%</a> Here is a not so good one, that I tried: format="$percntCALC{$SET(title, $pattern(^\-\-\-\+*?\s([^\n\r]*).*))$IF($EXACT(, $TRANSLATE($GET(title), $comma, , %TOPICNAME%, $GET(title))}$percnt" [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/186052-can-someone-help-me-with-this-template-file/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.