Commands / Abbreviations
PostPosted: 27 Dec 2013, 22:34
Hello,
Im writing today to get a little advice on how to create some custom commands/abbreviations in order to make my life a little easier when assisting people with query's.
For example if I type "!faq" it will be replaced with a link to a project FAQ page.
I have added the following code to the functions_send.php:
It works great for the users receiving the text, although the sender still views the text being sent as "!faq".
In short I want the sender to also see the replaced text, just the same way if the sender sends ":)" they will see a smiley instead of the static text representing a smiley.
Can anyone point me in the right direction in order to achieve these results ?
I assume this would require some javascript editing ?
Im writing today to get a little advice on how to create some custom commands/abbreviations in order to make my life a little easier when assisting people with query's.
For example if I type "!faq" it will be replaced with a link to a project FAQ page.
I have added the following code to the functions_send.php:
- Code: Select all
$text = str_replace('!faq', 'Testing123', $text);
It works great for the users receiving the text, although the sender still views the text being sent as "!faq".
In short I want the sender to also see the replaced text, just the same way if the sender sends ":)" they will see a smiley instead of the static text representing a smiley.
Can anyone point me in the right direction in order to achieve these results ?
I assume this would require some javascript editing ?