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)

oedipean 02-10-2011 05:25 AM

Is there something like it for VB 4 ?

prophetmuhammad 11-21-2011 01:05 PM

need something like this for vb4 thanks

Sadie Frost 01-09-2012 04:59 AM

Works on 3.8.6 :D

Saudi Zoom 06-25-2012 08:19 AM

I used it to replace certain words with Google adsense codes that I'm planning to include in my articles in certain places! Worked perfect! Thx!

vikash.sharma 07-26-2012 09:40 AM

Thanks applehat ..

RyanFabbro 12-01-2012 12:09 PM

i know its a big bump but i wanted to point out to people, if you use spaces in your replacement words it shouldnt break the links

example
PHP Code:

$word = array(
' google ',
'yahoo'
);

$link = array(
' <a href="http://google.com">google</a> ',
'<a href="http://yahoo.com">yahoo</a>'
);


$this->post['message'] = str_replace($word$link$this->post['message']); 

notice in this example google links should be fine, but the yahoo ones probally will still break since they have no spaces

but be sure to include spaces in your replacement also, or it will end up like

let check outGOOGLEits cool

im not sure if you would use &nbsp; for the space or just use a normal space, i havent tested


All times are GMT. The time now is 05:03 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.01098 seconds
  • Memory Usage 1,724KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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