vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Word Replacement (https://vborg.vbsupport.ru/showthread.php?t=93758)

TCM 08-25-2005 09:30 PM

Also, in the example, a link to google would be broken.

The user posts Google.

Instead of getting
HTML Code:

<a href="http://google.com" target="_blank">Google</a>
They'd get

HTML Code:

<a href="http://<a href="http://google.com">google</a>.com" target="_blank">Google</a>
The second google wouldn't even be replaced, beause this isn't even case sensitive.

Audionuts 08-26-2005 02:56 AM

thank you TCM

amykhar 08-26-2005 03:17 AM

Quote:

Originally Posted by TCM
Basicly all this hack is is a weakend verision of replacement variables. I don't even see why this thread still exists.

You can set replacement variables in Admin CP -> Styles & Templates -> Replacement Variables Manager

A hack like this is necessary BECAUSE it is weaker. If you change a word in the title of a thread to a link, then the replacement would mess up the link to the thread.

It would be ideal if the replacement system had an option. Replace everywhere or just replace in posts.

akanevsky 08-27-2005 12:04 PM

You might need a simple regular expression here..

pyro.699 10-07-2005 09:31 PM

nvm.

G-man 10-08-2005 04:19 PM

This works great but is there a workaround for the fact some people use caps in brand names and others do not? I tried to put in the same brand name twice once with and once without a cap not thinking it would try to apply the link to both. How can we make this where it does not matter if the word has caps in it or not?

zagman76 11-20-2005 06:06 AM

-bump-


...any updates? :)

GamerJunk.net 11-21-2005 06:35 AM

This would be good for ads definatley...if I could find a good ad company that sells items like IGN does with their things

Luggruff 02-08-2006 05:12 AM

don't have the postbit_display_complete template.. is there some other way? >_<

kobescoresagain 07-14-2006 12:50 AM

so does this break links?


All times are GMT. The time now is 07:35 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.01141 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete