The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Text Replacement Links 1.1 (Updated!) Details »» | |||||||||||||||||||||||||
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 Show Your Support
|
Comments |
#72
|
|||
|
|||
One query per page. That isn't possiable. If you have the word "Soda" as a link going to coke.com, and a user says. I like to drink soda. It will show up as a link. There isn't a way around it unless you deigne something where it can tell the PHP how the user is using the word.
|
#73
|
|||
|
|||
I think the geek auto linker only has one query per page.
|
#74
|
|||
|
|||
As this one does also.
|
#75
|
|||
|
|||
hehe what you wrote didnt make sense...anyway I just tested auto linker again, and it seems to do what I described above.
not sure which system to use |
#76
|
|||
|
|||
Quote:
I would use whatever fits your needs, this isn't any sort of competition. |
#77
|
||||
|
||||
I installed it, but it's not working as well as I hoped, so I'll be removing it. My beef with it is that it messes up the formatting of posts right now.... Sometimes it removes the newlines in posts, and sometimes it removes the preceeding space, making posts really cluttery...
Let me know when you beef this up and fix the errors.. |
#78
|
|||
|
|||
i acually never seen this error. Got a screenshot?
|
#79
|
|||
|
|||
At first, I have to say "Thank you" for this excellent work!
I found out why the redirect phrases are not working - they phrasetypeid is wrong. I use the german vB3, so I don't know how the type is called in the english version, must be something like "Control Panel: Messages" - the phrasetypeid is "9000" (as sayed, in the german version). After installing the hack, i asked myself: If someone asks "Where do I find the homepage of XYZ", and XYZ is in the TextReplacement-Table, the other users will think he is completely insane, because there is no option to tell this automatic link from the others. So I did the following modification: I changed one line in the code to insert in functions_bbcodeparse.php from PHP Code:
PHP Code:
Next, I created a custom vb-Code: Name: autolink Tag: autolink Code to insert: Code:
<span class="autolink"><a title="this link has been created automatically" href="{option}" target="_blank">{param}</a>*</span> At last, I went to the custom CSS-Definitions and inserted the following: Code:
.autolink a:link { text-decoration:underline; } .autolink a:visited { text-decoration:underline; } .autolink a:hover { text-decoration:underline; } Additionally, the links will be underlined. If you alreade use "underline" for the normal Links, you should use any other CSS-Definition. |
#80
|
|||
|
|||
Thank you for that! I will definitly be looking at your above post when I port this to 3.5.0!
|
#81
|
|||
|
|||
Feel free to do so
Just found another problem: If the text to replace is followed by a ".", it will not work. And if the word to replace is the first in a line, the link will "jump" to the end of the line before, even if there are one ore more blank lines in between. (Tried this also with the original hack without my modifications, same behaviour). Any idea? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|