View Full Version : word or symbol replacement
TubeOfMommment
08-13-2009, 03:20 PM
Is it possible to replace a word not with a symbol but with empty space. Automatically
i downloaded this mod (https://vborg.vbsupport.ru/showthread.php?t=149118&highlight=swear), but he dont replace like that...
For example:
Tes_La_Rok_-_Broken_Reality
Would look like this:
Tes La Rok - Broken Reality
Hope you understood!
Forward
Forward
Lynne
08-13-2009, 03:36 PM
You could use str_replace (http://us2.php.net/manual/en/function.str-replace.php)
TubeOfMommment
08-13-2009, 03:41 PM
You could use str_replace (http://us2.php.net/manual/en/function.str-replace.php)
im not that good at php.. if u show me where and waht to write :) and how to write space sing in php ? please help me i rly need that
Lynne
08-13-2009, 04:03 PM
This will simply replace it when the post is displayed:
hook location - postbit_display_complete
$find = "_";
$replace = " ";
$this->post['message'] = str_replace($find, $replace, $this->post['message']);
TubeOfMommment
08-13-2009, 04:57 PM
This will simply replace it when the post is displayed:
hook location - postbit_display_complete
$find = "_";
$replace = " ";
$this->post['message'] = str_replace($find, $replace, $this->post['message']);
thnx alot dude !! it works !! :) :up:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.