Making a Plugin Help
Crackz0r Offline
Junior Member
**
Posts: 5
Joined: Mar 2011
Post: #1
Making a Plugin Help
Hello.

I have decided to Start improving the Thanks Mode which already Exists, but im no a good coder.

However, i have been Looking for tutorials and that all to learn how to!

Now, i have Some questions, but i wont drop them all here and now... Ill try to ask everytime i get a issue.

Starting with This:

Q How to use find_replace_templateset

i mean, how to set the string of that function, since i saw som # Symbols and im not sure about when to use preg_quote() function.

Thank you in advanced.
03-31-2011 04:40 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: Making a Plugin Help
The function basically calls preg_replace on the various templates.  As such, the data you pass to it must be a valid PCRE regular expression.
See http://php.net/manual/en/function.preg-replace.php for more details.

If you can't be bothered learning regular expressions and don't need them, you can just use:

PHP Code:
'#'.preg_quote("put your text here", '#').'#'

as the find string.


My Blog
03-31-2011 09:39 AM
Find all posts by this user Quote this message in a reply
Crackz0r Offline
Junior Member
**
Posts: 5
Joined: Mar 2011
Post: #3
RE: Making a Plugin Help
Ty very much Tongue
04-04-2011 10:29 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: