vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Automatically create hyperlink from keyword (https://vborg.vbsupport.ru/showthread.php?t=60802)

dontpanic 01-27-2004 12:38 AM

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.

WHO 01-27-2004 02:04 PM

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?

TheComputerGuy 01-27-2004 02:15 PM

Quote:

Originally Posted by WHO
Can't you do that with replacements?

Yep you sure can!

KuraFire 01-27-2004 02:55 PM

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. :)

dontpanic 01-27-2004 07:08 PM

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?

KuraFire 01-27-2004 07:12 PM

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.

dontpanic 01-27-2004 07:13 PM

Well, I'm hoping that someone can help me to figure that out then. It would a great extension to the replacement variables feature. :)

KW802 04-15-2005 03:42 PM

Have you guys checked this out yet?

https://vborg.vbsupport.ru/showthread.php?t=76054

Quarterbore 04-15-2005 04:09 PM

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...!


All times are GMT. The time now is 08:04 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.01107 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete