Topic: [TUTORIAL] I want to have my own replacements like QuickTags
$matches[1] Add your own QuickTags
$matches[1] Flexer
$matches[1] 1.3.6 - * (no incompatibility reported yet)
$matches[1] this function is for replacing some things when u post news.
$matches[1]
Open functions.inc.php and search for $matches[1] ... So in this function u'll find two arrays: $find and $replace.
$find looks like:
$find= array(
"'google'i",
"'yahoo'i",
"'cutephp'i",
and $replace looks like:
$replace= array(
"http://google.com",
"http://yahoo.com",
"https://cutephp.com",
Now if you want to add your replacements just fallow the pattern:
$find= array(
"'google'i",
"'yahoo'i",
"'cutephp'i",
"'my_replacement'i",
$replace= array(
"http://google.com",
"http://yahoo.com",
"https://cutephp.com",
"This will be the replacement of my_replacement",