Some time ago I created the Public Mail plugin for Community Builder (CB).
This thread is meant to answer many questions in one place, and inform you of a new version 1.3 ready for download within a few days.
I did a small FAQ: Q: I can't install. I get the error message: "Error! Could not find a Joomla! XML setup file in the package.". A: Public Mail is a CB plugin and not a Joomla extension. Please use the CB plugin installer instead of the Joomla installer!!
Q: I still can't install the plugin? A: First confirm that you are using the CB installer and not the Joomla installer! If you are still experiencing problems it is most likely due to host file or folder permissions. You may need to CHMOD some folders like the "media" and CB "plugins/user/" folder!
Q: Are there any problems in upgrading from version 1.2 to 1.3? A: Only one! There is a new column (called "mailextra3") in the database table for the new third extra field. This column needs to be created manually! The new files can simply overwrite the old ones in the folder "\components\com_comprofiler\plugin\user\plug_cbpublicmail\". If you haven’t used the log or don't need it you can simply uninstall the plugin and install it again!
Q: I NEED this plugin installed and I have tried everything! Is it possible to do a manual install? A: Yes it is! Place all the files from the package in a folder in this location: "\components\com_comprofiler\plugin\user\plug_cbpublicmail\". Now you only need to create the one database table (if you need to log emails)! You can find the SQL table you need in the XML installer file and insert it into your database though PhpMyAdmin.
Q: How do I use/view the full database log? A: There is currently not an interface for that. You need to view the data directly in the database table jos_comprofiler_plug_publicmail. You need a database tool, like e.g. PhpMyAdmin. This tool is most often supplied by your webhost, but can also be installed by your self.
Q: Nothing is stored or logged in the database table? A: First confirm that you have logging activated in the configuration and the database table jos_comprofiler_plug_publicmail exists! If so it is most likely due to a wrong table or column collation. It works for sure with "utf8_general_ci". You can change the collation with PhpMyAdmin.
Q: Instead of line breaks I see "\r\n"? A: This is due to your email system or the host. However this error should have been fixed in Public Mail version 1.3!
Q: Where are the parameters/configuration/settings located? A: Configuration is located in Community Builders "Tab Management" and not the "Plugin Management".
Q: Can I restrict the usage of Public Mail to a specific user group? A: Yes, just like any CB plugin under "Tab Management" you can choose who can use/view the plugin.
Q: Can I restrict the use of Public Mail to individual people? A: Yes, you can do this in the configuration in version 1.3 and up. However it can seem a bit crude to use if you have many users.
Q: The plugin does not work with CAPTCHA if it is placed in a tab? A: It does in all tests created. The most likely error is therefore that you are using an old version of CAPTCHA or there are some issues with your template or CB template.
Q: I get the error: "Upload showPlugins - Failed. Plugin version (1.2) different from Community Builder version (1.2 RC 2)"? A: In general this problem is gone if you have updated your CB to the newest version. Same thing goes for Public Mail. If this does not work, then change the "<version>1.2</version>" to "<version>1.1</version>" in the plugin XML installer file.
Please remember to Karma me in the forum AND rate the plugin in the directory if you like it
\components\com_comprofiler\plugin\user\plug_cbpublicmail\language\en-GB.php on line 38 to 40 it clearly states:
DEFINE('_PM_RECIEVER_MESSAGE1','This email was sendt from');DEFINE('_PM_RECIEVER_MESSAGE2','by');DEFINE('_PM_RECIEVER_FOOTER','If you have recieved this email by mistake it is because someone at the site mentioned above has used your email!');