View Team Webgalli's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
Hello Team Webgalli thank you for releasing the new version here on elgg community.
I have just installed the plugin on my local server xampp and dedicated server elgg version 1.8.13 but unfortunatley after activating I'm having some problem.
In the front end and back end administration page all I can see is the following.
<* * *ul* * * * * *class* * *="* * *elgg* * *-* * *list* * * * * *elgg* * *-* * *list* * *-* * *river* * * * * *elgg* * *-* * *river* * *"><* * *li* * * * * *id* * *="* * *item* * *-* * *river* * *-* * *2* * *" * * *class* * *="* * *elgg* * *-* * *item* * *"><* * *div* * * * * *class* * *="* * *elgg* * *-* * *image* * *-* * *block* * * * * *elgg* * *-* * *river* * *-* * *item* * * * * *clearfix* * *" > <* * *div* * * * * *class* * *="* * *elgg* * *-* * *image* * *"><* * *div* * * * * *class* * *="* * *elgg* * *-* * *avatar* * * * * *elgg* * *-* * *avatar* * *-* * *small* * *"> <* * *span* * * * * *class* * *="* * *elgg* * *-* * *icon* * * * * *elgg* * *-* * *icon* * *-* * *hover* * *-* * *menu* * * "><* * *ul* * * * * *class* * *="* * *elgg* * *-* * *menu* * * * * *elgg* * *-* * *menu* * *-* * *hover* * *"><* * *li* * *><* * *a* * * * * *href* * *="* * *http* * *://* * *localhost* * */* * *1813* * */* * *profile* * */* * *clu55ter* * *"><* * *span* * * * * *class* * *="* * *elgg* * *-* * *heading* * *-* * *basic* * *">* * *clu55ter* * *&#* * *64* * *;* * *clu55ter* * *<* * *li* * *><* * *ul* * * * * *class* * *="* * *elgg* * *-* * *menu* * * * * *elgg* * *-* * *menu* * *-* * *hover* * *-* * *actions* * *"><* * *li* * * * * *class* * *="* * *elgg* * *-* * *menu* * *-* * *item* * *-* * *avatar* * *-* * *edit* * *"><* * *a* * * * * *href* * *="* * *http* * *://* * *localhost* * */* * *1813* * */* * *avatar* * */* * *edit* * */* * *clu55ter* * *">* * *Edit* * * * * *avatar* * *<* * *li* * * * * *class* * *="* * *elgg* * *-* * *menu* * *-* * *item* * *-* * *profile* * *-* * *edit* * *"><* * *a* * * * * *href* * *="* * *http* * *://* * *localhost* * */* * *1813* * */* * *profile* * */* * *clu55ter* * */* * *edit* * *">* * *Edit* * * * * *profile* * *<* * *li* * *><* * *ul* * * * * *class* * *="* * *elgg* * *-* * *menu* * * * * *elgg* * *-* * *menu* * *-* * *hover* * *-* * *admin* * *"><* * *li* * * * * *class* * *="* * *elgg* * *-* * *menu* * *-* * *item* * *-* * *logbrowser* * *"><* * *a* * * * * *href* * *="* * *http* * *://* * *localhost* * */* * *1813* * */* * *admin* * */* * *administer_utilities* * */* * *logbrowser* * *?* * *user_guid* * *=* * *35* * *">* * *Explore* * * * * *log* * *<* * *a* * * * * *href* * *="* * *http* * *://* * *localhost* * */* * *1813* * */* * *profile* * */* * *clu55ter* * *" * * *class* * *=""><* * *img* * * * * *src* * *="* * *http* * *://* * *localhost* * */* * *1813* * */* * *_graphics* * */* * *spacer* * *.* * *gif* * *" * * *alt* * *="* * *clu55ter* * *" * * *title* * *="* * *clu55ter* * *" * * *class* * *="" * * *style* * *="* * *background* * *: * * *url* * *(* * *http* * *://* * *localhost* * */* * *1813* * */* * *_graphics* * */* * *icons* * */* * *user* * */* * *defaultsmall* * *.* * *gif* * *) * * *no* * *-* * *repeat* * *;"/> <* * *div* * * * * *class* * *="* * *elgg* * *-* * *body* * *"><* * *ul* * * * * *class* * *="* * *elgg* * *-* * *menu* * * * * *elgg* * *-* * *menu* * *-* * *river* * * * * *elgg* * *-* * *menu* * *-* * *hz* * * * * *elgg* * *-* * *menu* * *-* * *river* * *-* * *default* * *"><* * *li* * * * * *class* * *="* * *elgg* * *-* * *menu* * *-* * *item* * *-* * *comment* * *"><* * *a* * * * * *href* * *="#* * *comments* * *-* * *add* * *-* * *88* * *" * * *title* * *="* * *Comment* * * * * *on*
This is just a snippet of what is being displayed I had to cut it short.
Any ideas?
Thanks
Tony
@tony:
that looks like a BIGGIE logic BUG in the code ;-(
it's filtering all the internal code stuff indiscrimately ;-)
@taner : unable to replicate that. Its working fine in our installations.
ohh! well ;-P & lolz..
i take back what i said before -
he must have some foreign plugin
that's screwing up his views handling..
tho - those '**' do look like your word fiilter!!
maybe he's usinig 2 different
censor filter plugins at same time !;-P
@webgalli Its a bit unusual that I get the same error on two different servers one local xampp server other dedicated plesk server.
@DhrupDeScoop Thanks for your assistance DC!
Like Dhrup says I initially thought that it might be another plugin that is screwing up the views so I disabled all other third party plugins and upgraded.php but the problem is persisting.
Has anyone else tested this plugin? please let us know if you have had any issues OR has it worked ok for you?
Hi, only change, galliBadword_filter function, start.php file, ready:
function galliBadword_filter($hook, $entity_type, $returnvalue, $params){
if ((include elgg_get_plugins_path() . 'galliBadword_filter/lib/badwords.php') == '1') {
$admin_settings = elgg_get_plugin_setting('badwords', 'galliBadword_filter');
if(isset($admin_settings)&& !empty($admin_settings)){ //error when empty $admin_settings
$explode = explode(",", $admin_settings);
$bad_words = array_merge($badwords, $explode);
}
$replacement = "* * *";
for($i=0; $i < sizeof($bad_words); $i++){
$returnvalue = preg_replace("/\b$bad_words[$i]\b/i", $replacement, $returnvalue);
}
}
return $returnvalue;
}
@clu55ter I had your problem too and install the psantiagomm's hack and problem solved.
But I have another problem and this module not support Unicode badwords.
srf68 thanks for the heads up plugin working after using psantiagomm suggestion.
Thanks guys!
Hi Webgalli thank you for this great plugin, could this plugin be extended to report offensive language (banned words) via the Reported Content plugin? this would definatley add value to this great plugin.
@clu55ter : may be in next release for elgg 1.9.
Thanks!
I would like to add the views for bookmarks title, does anyone know what the $views = array is for the bookmarks title?
is there any way to ban unicode word too?? i want to ban hindi words :(
As reference in case anyone interested:
For filtering unicode words a modification in start.php is necessary:
(change of "/i" to "iu").
I think the best way to add additional words to filter is to add them directly in the array in mod/galliBadword_filter/lib/badwords.php and save this file in utf encoding.
The resulting galliBadword_filter() function when also taking into account no words to filter added via plugin settings is: