ZenphotoCMS Forum
Simple SPAM filter: bigger "Words to die on" text box - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Simple SPAM filter: bigger "Words to die on" text box (/thread-1922.html)



Simple SPAM filter: bigger "Words to die on" text box - hierogrammate - 2007-12-11

A rather simplistic request, maybe.

I'd like a bigger, word-wrapping (maybe scrollable?) text box for the "Words to die on" entry in the simple SPAM filer. It would make it easier to edit in the backend. It's bit of a pain having to go back and forth in that smallish text box, not being able to see the whole blacklist.

What I do is copy the whole list into a text editor, edit it there, and then paste it back on the backend. Easier that way.

I believe I can also edit it directly in the PHP file using a text editor, but I'm lazy and would like being able to do it that in the admin section. :-P




Simple SPAM filter: bigger "Words to die on" text box - sbillard - 2007-12-11

Your wish....

change line 71 in simple.php from:
echo '' . "n";
to
echo '' . implode(',', $list) . "n";

We will add this to the next update.




Simple SPAM filter: bigger "Words to die on" text box - hierogrammate - 2007-12-12

Wheeeeeeeeeeeeee!

Thanks

One tiny question: shouldn't that "n" at the end be "\n" instead? When I used the "n" alone, that character would appear beneath the textbox, but not so when I added the backlash... still it worked perfectly.




Simple SPAM filter: bigger "Words to die on" text box - sbillard - 2007-12-13

You are right, sorry for the typographical error. (or maybe the forum software swallowed the slash, not sure.) I did type it correctly when I made the patch.




Simple SPAM filter: bigger "Words to die on" text box - hierogrammate - 2007-12-19

No worries