[Snippet] Word censoring for the (at) symbol

Little Mods and Snips 3

[Snippet] Word censoring for the (at) symbol

Postby Sekuro » 01 Oct 2011, 18:19

This snippet automatically transforms boardwide all @ to (at)

open

search.php

find

Code: Select all
     $row['post_text'] = censor_text($row['post_text']); 


after add

Code: Select all
    $row['post_text'] = preg_replace('#@#is','(at)', $row['post_text']); 


open

viewtopic.php

find

Code: Select all
    $message = censor_text($row['post_text']); 


after add

Code: Select all
    $message = preg_replace('#@#is','(at)', $message); 


open

includes/functions_posting.php

find

Code: Select all
            $template->assign_block_vars($mode . '_row', array


before add

Code: Select all
    $message = preg_replace('#@#is','(at)', $message); 


Clear all Board-, Template-, Style- and Browser-Caches
Mod-Bot / Service-Team
User avatar
Sekuro

Tiptop

Tiptop
 
Posts: 241
Joined: 11 Feb 2008, 11:49
 
Resolution: 1440x900


Return to Snip Cl@ss III

Who is online

Users browsing this forum: No registered users and 1 guest

cron