PortalParts.com Site

 Forum Index > Geeklog > ChatterBlock Plugin Support New Topic Post Reply
 Chatterbox behaviour
 |  Printable Version
drafty
 September 18 2007 17:46 PM  
Forum Senior
Senior

Status: offline

Registered: 09/03/07
Posts: 20

Have I misunderstood here ?? based on your last message, I re-downloaded and installed, but still getting the 404's on the 'posting history ???
And ..............thanks for all the effort on this, it sure is appreciated.


Growing old is mandatory.............growing up is optional
 
Profile Email Website PM
Quote
jmucchiello
 September 20 2007 14:17 PM  
Forum Full Poster
Full Poster

Status: offline

Registered: 03/25/07
Posts: 14

I was directed here by your response over on geeklog.net. You might want to steal the code I posted over there. In cb_processForm(), this bug appears a couple times.

PHP Formatted Code
            if ($cb_siteconfig['use_spamx'] == 1) {
                $spamcheck = '<h1>Chatterblock</h1><p>' . $message . '</p>'; // $message is undefined at this point
                $result = PLG_checkforSpam($spamcheck, $_CONF['spamx']);
                // Now check the result and redirect to index.php if spam action was taken
                if ($result > 0) {
                    // then tell them to get lost ...
                    echo COM_siteHeader();
                    echo COM_showMessage( $result, 'spamx' );
                    echo COM_siteFooter();
                    exit;
                }
            }
            $message = addslashes(COM_checkHTML(COM_checkWords($_POST['cb_message'])));
 
Try
PHP Formatted Code

            $message = COM_checkHTML(COM_checkWords($_POST['cb_message']));
            if ($cb_siteconfig['use_spamx'] == 1) {
                $spamcheck = '<h1>Chatterblock</h1><p>' . $message . '</p>'; // $message is undefined at this point
                $result = PLG_checkforSpam($spamcheck, $_CONF['spamx']);
                // Now check the result and redirect to index.php if spam action was taken
                if ($result > 0) {
                    // then tell them to get lost ...
                    echo COM_siteHeader();
                    echo COM_showMessage( $result, 'spamx' );
                    echo COM_siteFooter();
                    exit;
                }
            }
            $message = addslashes($message);
 


 
Profile Email PM
Quote
Blaine
 September 20 2007 15:03 PM  
Forum Admin
Admin

Status: offline

Registered: 03/01/02
Posts: 3576

Why - whats the bug or reason?


Please consider contributing to support my efforts ..
 
Profile Email Website PM
Quote
jmucchiello
 September 20 2007 15:19 PM  
Forum Full Poster
Full Poster

Status: offline

Registered: 03/25/07
Posts: 14

PHP Formatted Code
            if ($cb_siteconfig['use_spamx'] == 1) {
                $spamcheck = '<h1>Chatterblock</h1><p>' . $message . '</p>'; // $message is undefined at this point
                $result = PLG_checkforSpam($spamcheck, $_CONF['spamx']);
// snip
             $message = addslashes(COM_checkHTML(COM_checkWords($_POST['cb_message'])));
 
In line 2, $message is only set if this is the /tell condition. The other two conditions it is an undefined variable.

Unrelated, why are you adding HTML to the $message before calling checkforspam?


 
Profile Email PM
Quote
Blaine
 September 22 2007 11:26 AM  
Forum Admin
Admin

Status: offline

Registered: 03/01/02
Posts: 3576

Quote by: drafty

Have I misunderstood here ?? based on your last message, I re-downloaded and installed, but still getting the 404's on the 'posting history ???
And ..............thanks for all the effort on this, it sure is appreciated.


Hi, Line 36 in public_html/chatterblock/cb_chatLog.php should be:
$actionURL = $_CONF['site_url'] .'/chatterblock/cb_chatLog.php';


Please consider contributing to support my efforts ..
 
Profile Email Website PM
Quote
Content generated in: 0.32 seconds
New Topic Post Reply



 All times are CDT. The time is now 12:35 AM.
Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content