The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Create "Instant Links" when certain word are typed??
Is it possible to set something up so that whenever someone types, say, the word "basketball" in a message, the word is replaced by a hyperllink to your Basketball forum or some other internal or external URL?
The really big advantage to this is that the users do not have to know or use any codes at all. When they type a certain word, it is automagically converted into a link. There is no learning curve or additional effort required from them. It's all automatic. You could also use this as a kind of "automatic glossary", linking certain words to entries in your FAQ or to a permanent announcement. Or how about something more dynamic like a link to the current basketball scores on CNN or maybe today's closing stock prices for a particular company? Anyone typing a "$" or "?" sign could find it automatically linked to a currency conversion site. This has enormous possibilities! Unfortunately, Replacement Variables do not work for this because the linking code is seen by the message editor as literal text rather than HTML if "Allow HTML" is turned off for security. There were also some other messy issues such as changing "hot words" into links in places where you would not want that to happen such as in the title of topics, threads, etc. We'd need an "engine" that only looks for "hotwords" typed inside the text of a message in any of the editors. There should also be some simple facility for Admins to create, edit or delete HotWords as needed. Any ideas on how this could be done? thanks! |
#2
|
|||
|
|||
cool idea =)
|
#3
|
||||
|
||||
Its veryvery difficult to di. I had made a hack that did this on my site but I removed it when I upgraded to vB3.
The biggest difficulty is with urls. if you want to 'auto' link the word bob and someone types in www.bob.com then it is going to screw up your link. The other problem is that it is VERY processor hungry. The more auto links you have (or variations on the theme)... the more it will slow things down. I guess I could see if I could find my old code for you though... |
#4
|
|||
|
|||
This would be very good.. if you could provide some code for this I may look at it. This is especially good for 'online businesses'. For example, I make gambling communities and get paid by aff. links (gambling affiliate programmes pay of excellently well - e.g. $150 per acquisition). However, as well as having ads it would be great for someone to type in XYZ Casino and this convert to an aff. link URL.
I have seen this done recently for ebay and amazon, but for a whole list of casinos it would be excellent. As such, code that is more flexible than the recent examples would be ideal. Ben. |
#5
|
||||
|
||||
Why can't you use BBcode [url] tags in your replacement rather than HTML?
|
#6
|
|||
|
|||
I would think that you would need to do it the same way as the censor filter works... if you could specify {bob} like you can in the censored words, then you could replace just bob but not http://www.bob.com. I would like to do this for multi-word combinations. For example, be able to link {peanut butter} and not have it consider it as 2 separate words "peanut" and "butter".
Could the code for the censor filter be modified or mostly duplicated to accomplish this? It is already evaluating the text when messages are posted... |
#7
|
|||
|
|||
Quote:
This has been one of my big things as well, I would love to have this work RIGHT and not screw up everything when it's done. It seems like THIS would be a great use of the replacements but you can't use the replacements this way. |
#8
|
||||
|
||||
uh, guys, there's already a hack posted that does what you are looking for in vb3. search for replacement text.
Amy |
#9
|
|||
|
|||
|
#10
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|