vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Replace certain text with link (https://vborg.vbsupport.ru/showthread.php?t=225040)

MikesSite 10-11-2009 04:32 PM

Replace certain text with link
 
I'm looking for a mod or somebody to make me a mod that will make specific text a specific link.

For example is anybody types espn the text would still say espn but be a link to ESPN.com.

Thanks.

Lynne 10-11-2009 04:37 PM

Just use str_replace. I've posted a plugin to do this several times and I think someone even posted it in the mods forums.

MikesSite 10-11-2009 08:53 PM

Could you show me how to replace the word espn with

Code:

<a href="http://www.espn.com">espn</a>
please?

Lynne 10-11-2009 09:10 PM

I would replace " espn " with the link (notice the spaces around the word) otherwise you could cause conflicts with links that have espn in them (like espn.com).

Did you find the modification or thread that shows you the plugin to use for this?

MikesSite 10-11-2009 09:22 PM

Thanks. No I did not. Can you please send me a link to it?

Lynne 10-11-2009 10:49 PM

I just did a search for "replace*" in "all mods" "titles only" and found these - Replacement Words In Posts and Word Replacement . I know there are others, including threads not in the mods forums. If those threads aren't what you want, try a search on the word "replace*" to find other similar threads.

MikesSite 10-12-2009 12:20 AM

Thank you, the first one is what I was looking for.


All times are GMT. The time now is 08:29 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.01074 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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