MyBB Hacks

Full Version: Making a Plugin Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.

Ty very much Tongue
Reference URL's