vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Replacing words with links? (https://vborg.vbsupport.ru/showthread.php?t=41107)

Jago 07-15-2002 06:52 PM

Replacing words with links?
 
Is there a hack that does this? I've searched both vbulletin.com and .org and haven't found too much info.

This is what I'm looking to do:

When someone types the word buy, it replaces the word with a hyperlink.

I would like to buy a toy.

TIA.

Velocd 07-15-2002 07:00 PM

This should go in the hack request forum ;)

I don't believe it's been made, but I bet it can be done similar to that /me code.

I'm guessing you would be able to submit where the link actually takes you in the admin cp? It sounds interesting, but it sure would be spamful.

Jago 07-15-2002 07:11 PM

Would an admin please move this thread to the Hacks Request forum? Thanks.

SaintDog 07-16-2002 03:32 PM

Consider it moved :)

- SaintDog

Jago 07-18-2002 06:57 PM

Anyone have any ideas how easy/hard this would be to implement?

Logician 07-18-2002 08:37 PM

not exactly what you want but you may use the algorithm and adapt the code to your needs:

https://vborg.vbsupport.ru/showthrea...ghlight=amazon

memobug 08-24-2002 04:01 PM

You can use the built-in replacements system to do this. Just create a replacement for

_bananas_ with <a href="link to bananas">_bananas_</a>

where those underscores are spaces, and it will swap each incidence of _bananas_ with the link.

The only probs are
1) case sensitivity
2) if you edit a post containing a replacement it will insert the html (as text) on the screen and you will have to fix before reposting.

You can, of course, create your own linked replacements, like

***AMAZON*** -> <a href="http://www.amazon.com">Visit Amazon</a>

Then wherever you put ***AMAZON*** you'll get the link, with little chance someone will do it accidentally.

However, it's still subject to the limitations 1,2 above.

Regards,

Matt


All times are GMT. The time now is 10: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.01004 seconds
  • Memory Usage 1,720KB
  • 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)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