Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2004, 12:38 AM
dontpanic dontpanic is offline
 
Join Date: Jun 2003
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Automatically create hyperlink from keyword

I am wondering if there is a way to have posts containing certain preconfigured keywords (such as support, MCSE, etc.) appear not as just a plain word, but instead appear as a hyperlink to the preconfigured location.

For example, if someone in the forums posted the word support (just as an example), it might link them to a forums support page. Or if the word contact was posted, it might link them to the forums contact page.
Reply With Quote
  #2  
Old 01-27-2004, 02:04 PM
WHO WHO is offline
 
Join Date: Nov 2002
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dontpanic
I am wondering if there is a way to have posts containing certain preconfigured keywords (such as support, MCSE, etc.) appear not as just a plain word, but instead appear as a hyperlink to the preconfigured location.

For example, if someone in the forums posted the word support (just as an example), it might link them to a forums support page. Or if the word contact was posted, it might link them to the forums contact page.
Can't you do that with replacements?
Reply With Quote
  #3  
Old 01-27-2004, 02:15 PM
TheComputerGuy's Avatar
TheComputerGuy TheComputerGuy is offline
 
Join Date: Oct 2001
Location: TX
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by WHO
Can't you do that with replacements?
Yep you sure can!
Reply With Quote
  #4  
Old 01-27-2004, 02:55 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheComputerGuy
Yep you sure can!
And to explain to him HOW he can do that:


In the AdminCP:
Go to the Styles & Templates, go to the link Replacement Variable Manager, hit [Add New Replacement Variable] and just fill in what you want replaced with what.
Reply With Quote
  #5  
Old 01-27-2004, 07:08 PM
dontpanic dontpanic is offline
 
Join Date: Jun 2003
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Right, but in doing so you have NO control over where the replacement occurs. So if for example, I used the word "Survivor" and I wanted that to hyperlink to "http://www.cbs.com/primetime/survivor8/index.shtml" it would do the replacement each and every time the word appeared. Now in the body of a post, this is cool...but in a thread title or other places, thus causes problems.

So I suppose my question should have been more specifically...within the post data itself, can this be done?
Reply With Quote
  #6  
Old 01-27-2004, 07:12 PM
KuraFire's Avatar
KuraFire KuraFire is offline
 
Join Date: Oct 2001
Location: inside vB3's .php
Posts: 1,245
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dontpanic
Right, but in doing so you have NO control over where the replacement occurs. So if for example, I used the word "Survivor" and I wanted that to hyperlink to "http://www.cbs.com/primetime/survivor8/index.shtml" it would do the replacement each and every time the word appeared. Now in the body of a post, this is cool...but in a thread title or other places, thus causes problems.

So I suppose my question should have been more specifically...within the post data itself, can this be done?
That would require a hack, yes.
Reply With Quote
  #7  
Old 01-27-2004, 07:13 PM
dontpanic dontpanic is offline
 
Join Date: Jun 2003
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I'm hoping that someone can help me to figure that out then. It would a great extension to the replacement variables feature.
Reply With Quote
  #8  
Old 04-15-2005, 03:42 PM
KW802's Avatar
KW802 KW802 is offline
 
Join Date: Jul 2003
Location: A galaxy far, far away...
Posts: 1,450
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you guys checked this out yet?

https://vborg.vbsupport.ru/showthread.php?t=76054
Reply With Quote
  #9  
Old 04-15-2005, 04:09 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks... I have actually been working with that since my last post on my development board and it works great! I was comming back to post a link to the very thread you posted and then get this into my main board!

Great mod!!!

Thanks for the advise though...!
Reply With Quote
Reply


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 10:59 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
  • Page Generation 0.04325 seconds
  • Memory Usage 2,243KB
  • Queries Executed 13 (?)
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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete