Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 10-09-2004, 12:05 AM
ataraxia's Avatar
ataraxia ataraxia is offline
 
Join Date: May 2004
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 12-10-2004, 06:27 AM
alkatraz alkatraz is offline
 
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 384
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cool idea =)
Reply With Quote
  #3  
Old 12-10-2004, 11:00 AM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #4  
Old 12-10-2004, 11:47 AM
benroles benroles is offline
 
Join Date: Mar 2004
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 12-10-2004, 12:00 PM
Blue Moose Aaron's Avatar
Blue Moose Aaron Blue Moose Aaron is offline
 
Join Date: Sep 2002
Location: Austin, Texas
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why can't you use BBcode [url] tags in your replacement rather than HTML?
Reply With Quote
  #6  
Old 12-10-2004, 12:15 PM
Torqued Torqued is offline
 
Join Date: Oct 2004
Location: Houston, TX
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #7  
Old 12-10-2004, 01:08 PM
JustAskJulie JustAskJulie is offline
 
Join Date: Nov 2002
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ted Varnson
Why can't you use BBcode [url] tags in your replacement rather than HTML?
Because it doesn't work. If you use BBcode it just prints it as code rather than actually converting it like it would if you were making a post.

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.
Reply With Quote
  #8  
Old 12-10-2004, 01:13 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uh, guys, there's already a hack posted that does what you are looking for in vb3. search for replacement text.

Amy
Reply With Quote
  #9  
Old 12-10-2004, 01:15 PM
JustAskJulie JustAskJulie is offline
 
Join Date: Nov 2002
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just found that..., it's still in beta mode

https://vborg.vbsupport.ru/showthread.php?t=71191
Reply With Quote
  #10  
Old 12-10-2004, 01:31 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JustAskJulie
I just found that..., it's still in beta mode

https://vborg.vbsupport.ru/showthread.php?t=71191
and something you get by requesting here wouldn't be beta?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04274 seconds
  • Memory Usage 2,264KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete