AJAX SugBox Module

A simple suggestion box module for Joomla! 1.5. This module will allow users on the frontend to anonymously send suggestions to the Administrators registered e-mail account. It is built using AJAX technology so the page will not refresh when the user submits their suggestion.

NOTE: Someone sent me an anonymous suggestion on my site that mentioned they still required legacy mode so I've updated the extension to reflect this until I can do further testing.

Report

bycerebraltissue on May 4, 2009
Good Module. Simple to install and works without any problems.
bybjude on April 28, 2007
The site this module has been installed on, already has a forum, shoutit and blastchat however all these are for registered users and are not anonymous. In a democratically run club, there is a need sometimes for users to confidently make suggestions and put forward ideas without pressures from others, and so this module was added, but only for registered users due to the potential legal problems it could cause. It would be better with a form of captcha to prevent possible spam if it was for unregistered visitors.
It worked well when I tried it, but I'm a little disappointed members have not utilised it as yet. Hopefully they may in time, but they also need to trust it is truly confidential. Of course it may need to come off, if it is abused but it's a risk worth taking for now. Simple, clean and easy to install. Nothing great, nothing bad, but that's its beauty and its purpose.
bydeafbiz on April 20, 2007
I installed and published the module and I had to quickly unpublish it because there's no spam filters or IP tracking. So the Admin will be subjected to a barrage of spam and insults. Furthermore, the email delivery didn't work. I know becuase I sent a test message to myself.
Owner's reply

Spam filtering and IP Tracking relies upon your mail server installation. I recommend SpamAssassin for this. Do you have your php.ini setup to send mail? Perhaps the php mail() function is not working because of settings in php.ini. For *nix make sure sendmail_path and sendmail_from is set correctly. For a windows PHP install make sure that SMTP and smtp_port are set properly.

I installed your module - but am not having any success in getting it to work. I am running J 1.0.12 with Comm Builder 1.0.2. Mod publishes and appears fine one site, but no email comes to any site admin.

I am suspecting this may be the culprit.

mod_sugbox.php
Line 18

$query = "select email from jos_users where name = 'Administrator'";

Sites using CB may have trouble. Also - should it read...

$query = "select email from jos_users where GROUP = 'SUPER Administrator'";

Thanks!
baskman
Owner's reply

Hi, This module is built to work with a default Joomla! database schema. Not one that has been modified with CB. If your administrator accounts name is not 'Administrator' then the module will not work. In this case you could edit the mod_sugbox.php file and replace $recipient = $resArray[0]; with $recipient = "email1@domain.com, email2@domain.com"; Also, make sure that your php.ini file is setup properly to use the mail() function.