Topic: [TUTORIAL] I want to have my own replacements like QuickTags
Name: Add your own QuickTags
Author: Flexer
CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
Description: this function is for replacing some things when u post news.
Instructions:
Open functions.inc.php and search for function replace_news ... 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",