[center][b][color=green][u][size=12pt]Censor Adsense on Bad Words[/size][/u][/color]
by Ricky.
For SMF 2.0, 2.0 RC5
[b]

[/center]
[color=green][size=3][b]Description[/b][/size][/color]
[hr]
This mod allows you to check whether a topic is with objectionable words which may violate Google Adsense Policy. This mod gives ability to check using $context['ads_censor']. If condition is true, you should not show ad, if false, one can show ads.


[color=green][size=3][b]Demo[/b][/size][/color]
[hr]
Demo can be found here -->
coming soon


[color=green][size=3][b]Installation[/b][/size][/color]
[hr]
Simply install it via package manager and use it after modifying Adminstration settings. Give a comma separated list of words for which you do not want to display Ads.


[color=green][size=3][b]Usage[/b][/size][/color]
[hr]
This MOD will not do any visible change in your forum but actually provides $context['ads_cesnor'] variable, so you on Thread Display or Topic View you can check whether $context['ads_censor'] is empty or not, you can add following in your Display.template.php  eg.
if(!empty($context['ads_censor']))
echo '<div> YOUR Advertisment / Adsense Code here</div>';


[color=green][size=3][b]Version[/b][/size][/color]
[hr]
1.1 beta


[color=green][size=3][b]Changelog[/b][/size][/color]
[hr]

1.1 beta : Improved search algorithm making and also making it case-insensitive
1.0 beta : Initial release
