Chatterblock plugin: Add this to allow your visitors and members to leave messages. Now supports three modes, smilies, Chatterlog and online configuration. Includes Auto-Refresh mode to have the block refresh itself and alert you via a popup if there is a new public or private message.
Authored by:tlschenkjr on Thursday, August 21 2008 @ 05:29 PM EDT
I found a couple of bugs when trying to use this under 1.5.0. In index.php under the admin/plugins/chatterblock directory.
The symptom was that whenever you tried to save any config changed, you ended up with a blank page (because of an error in the cb_config.php file in the chatterblock cache). This error was due to what looks like a cut and paste error in the code in index.php. The value of the userprefs access was not being stored correctly. Also, there was no provision to store the value for the name displayed when anonymous posts are added.
// Scroller and Iframe Mode - Display window width in pixels $xcb_scroll_width = $_POST['xcb_scroll_width']; + // Name displayed for anonymous posts + $xcb_anon_dispname = $_POST['xcb_anon_dispname']; // Option to enable anonymous access $xcb_public_access = $_POST['xcb_public_access']; // Option to display IP address icon @@ -65,7 +67,7 @@ // Option to enable anonymous users to enter their name $xcb_anon_entername = $_POST['xcb_anon_entername']; // Option to enable access to user preferences - $xcb_log_access = $_POST['xcb_userprefs_access']; + $xcb_userprefs_access = $_POST['xcb_userprefs_access']; // Option to enable users to delete their last post $xcb_delete_last = $_POST['xcb_delete_last']; // Option to enable users to edit last post in chatterlog
Authored by:monoclast on Sunday, January 18 2009 @ 12:51 PM EST
I just encountered the same issue. So it seems this bug hasn't been fixed in the released code in all this time (you posted about this back on August 21 2008, and it's January 18 2009)! : (
Thank you for posting the fix - *much* appreciated!
The following comments are owned by whomever posted them. This site is not responsible for what they say.
The symptom was that whenever you tried to save any config changed, you ended up with a blank page (because of an error in the cb_config.php file in the chatterblock cache). This error was due to what looks like a cut and paste error in the code in index.php. The value of the userprefs access was not being stored correctly. Also, there was no provision to store the value for the name displayed when anonymous posts are added.
Here is my patch:
--- index.php 2007-09-14 22:37:50.000000000 -0500
+++ /var/www/html/mysite/admin/plugins/chatterblock/index.php 2008-08-21 16:03:37.000000000 -0500
@@ -56,6 +56,8 @@
// Scroller and Iframe Mode - Display window width in pixels
$xcb_scroll_width = $_POST['xcb_scroll_width'];
+ // Name displayed for anonymous posts
+ $xcb_anon_dispname = $_POST['xcb_anon_dispname'];
// Option to enable anonymous access
$xcb_public_access = $_POST['xcb_public_access'];
// Option to display IP address icon
@@ -65,7 +67,7 @@
// Option to enable anonymous users to enter their name
$xcb_anon_entername = $_POST['xcb_anon_entername'];
// Option to enable access to user preferences
- $xcb_log_access = $_POST['xcb_userprefs_access'];
+ $xcb_userprefs_access = $_POST['xcb_userprefs_access'];
// Option to enable users to delete their last post
$xcb_delete_last = $_POST['xcb_delete_last'];
// Option to enable users to edit last post in chatterlog
Thank you for posting the fix - *much* appreciated!
---
-mono
what are @ lines
what means + or - infront of the line?
tyvm