![]() |
Text Replacement Links 1.1 (Updated!)
Text Replacement Links ==================== Author: Ken 'LiveWire' Iovino Site: www.vBhacks.us Version: 1.1 ==================== Updates
Huge Thanks I have to give a huge thanks to the following members that have helped me get this hack where it is now. Xenon, Kentaurus, nexialys, Geographic2, and lewekleonek. Thank you guys very much! What this does This will allow you to specified any text you add to automatically turn into a link when your members post the word. For example, you go to the ACP and add the word 'google' to the list and then you add the 'url' to googles website, and anytime a member post the word google, it will automatically turn it into a link. See screenshots for example. To do list...
Please read carefully and make all the necessary changes as stated. This is will work if installed properly. PLEASE REMEMBER TO BACKUP BEFORE YOU BEGIN! If you like this hack Click It Help & Support Before asking for support Please make sure you have done all necessary changes! If you still need support please post a reply here. Please post bugs and errors here. Hope you like, feedback welcomed. Special Thanks and Credit to -Xenon -Kentaurus -nexialys -Geographic2 -lewekleonek |
try replacing:
PHP Code:
PHP Code:
Take in consideration that we already have something called "replacement vars" that are configurable per style and that do "almost" the same thing that you are doing, except that they do it in a global way and not only in the post content. For words like google that are not part of any html or titles one might as well use replacement vars. |
This is the second time that I read about replacement vars. Where can I find that?
Ok never mind.... |
@ Kentaurus, Thanks alot i will test that right now.
|
Hi
Is it posible to use this hack to rplace text with deferent text (not a link). Thanks |
Quote:
|
Lol, really nice job ;)
|
case-insensitive is explained in the preg_replace page...:
http://ca.php.net/manual/en/function.preg-replace.php preg_replace ("/myWord/i", "myotherword", $thissentence); ... and is quicker than str-replace in all situations... ... i never used the replacement thing in the templates, i find that really annoying,because it's template based, so filter all the output, not only the text you post.. annoying! this one will be performing good!!! |
Didn't vB2 have this installed by default? I might be thinking Invision...
Either way nice hack! |
I was testing that code mod that Kentaurus did but i was getting a timeout error. I finally got my computer back online so i'll be working on the hack tonight. (after halloween) ^^
|
All times are GMT. The time now is 12:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|