vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Anti-Spam Options - [GlowHost] Spam-O-Matic - Spam Firewall stops forum spam (https://vborg.vbsupport.ru/showthread.php?t=248042)

john h 01-14-2011 10:52 PM

Quote:

Originally Posted by ctalavera (Post 2148685)
Hey guys... just curious where the stats are displayed. I just installed an hour ago and can't find the location.

In Admincp, go to Statistics and logs and you will see a log file there. Stats shown under "What's going on" will be in V2 which we are all waiting on :)

oly51 01-15-2011 01:25 PM

Wow. I just checked my Spam-O-Matic logs.... 2,922 entries in 10 days! A few spam registration attempts were passed through, but they never made it all the way to post. Thank you for such a great 5 star Mod. Very deserving of the MOM! :up:

Sw0rDz 01-15-2011 05:55 PM

I still get "Cannot send session cache limiter - headers already sent spam o'matic" errors whenever I ban an user via glowhost. I've even moved the session_start(); to the top of the file (a solution I found online).

Delphiprogrammi 01-15-2011 06:33 PM

Quote:

Originally Posted by Sw0rDz (Post 2149614)
I still get "Cannot send session cache limiter - headers already sent spam o'matic" errors whenever I ban an user via glowhost. I've even moved the session_start(); to the top of the file (a solution I found online).

be verry carefull with spaces in PHP code eg "? >" that will cause this error what linenumber is PHP complaining about ? look in that number or lines of code above it

Sw0rDz 01-16-2011 07:24 AM

Quote:

Originally Posted by Delphiprogrammi (Post 2149633)
be verry carefull with spaces in PHP code eg "? >" that will cause this error what linenumber is PHP complaining about ? look in that number or lines of code above it

In my attempt to fix it, I moved the session_start to the beginning of functions_ghsom.php. I've double checked that file to see if there is spaces before <? and after ?>. I now get this error message right after I ban a user and submit their info to glow-host.

Code:

session_start() [function.session-start]: Cannot send session cache limiter - headers already sent(output started at [path]/includes/adminfunctions.php:290) in [path]/includes/functions_ghsom.php on line 2

The first half of my functions_ghosom.php looks like:
Code:

<?php
        session_start();
        // This sometimes happens
        if (!isset($GLOBALS['vbulletin']->db)) exit();

        // Let's define a set of flags
        define (VBGHSFS_NO_TEST, -1);
        define (VBGHSFS_PASS, 0);
        define (VBGHSFS_FAIL, 1);
        define (VBGHSFS_HIT_BUT_PASS, 2);
        define (VBGHSFS_REMOTE_ERROR, 3);
        define (VBGHSFS_BLOCKED, 1);
        define (VBGHSFS_ALLOWED, 0);

For my admin functions around line 290:
Code:

        // if there is an onload action for <body>, set it up
        $onload = iif($onload != '', " $onload");

        // set up some options for nav-panel and head frames
        if (defined('IS_NAV_PANEL'))
        {
                $htmlattributes = ' class="navbody"';
                $bodyattributes .= ' class="navbody"';
                $headinsert .= '<base target="main" />';
        }
        else
        {
                $htmlattributes = '';
        }

        // print out the page header
        echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\r\n";
        echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" dir=\"" . vB_Template_Runtime::fetchStyleVar('textdirection') . "\" lang=\"" . vB_Template_Runtime::fetchStyleVar('languagecode') . "\"$htmlattributes>\r\n";
        echo "<head>
        <title>$titlestring</title>
        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=" . vB_Template_Runtime::fetchStyleVar('charset') . "\" />
        <link rel=\"stylesheet\" type=\"text/css\" href=\"../cpstyles/global.css?v={$vbulletin->options[simpleversion]}\" />
        <link rel=\"stylesheet\" type=\"text/css\" href=\"../cpstyles/" . $vbulletin->options['cpstylefolder'] . "/controlpanel.css?v={$vbulletin->options[simpleversion]}\" />" . iif($headinsert != '', "
        $headinsert") . "
        <style type=\"text/css\">
                .page { background-color:white; color:black; }
                .time { color:silver; }
                /* Start generic feature management styles */

                .feature_management_header {
                        font-size:16px;
                }

                /* End generic feature management styles */

Thanks!

Delphiprogrammi 01-16-2011 10:05 AM

hello,

you could try to force PHP to not show that error by

PHP Code:

@session_start(); 

notice the "@" before the function call this will force PHP to show no errors still be carefull with blank lines in your code if you use sessions there is a blank line lines starting with "//" are ignored by the PHP parser the @ thrick isn't a real solution offcource...

bmwusa 01-16-2011 02:23 PM

thanks a lot!!!!!!!!!!!!!! going crazy with fckng spammers!!!! great job!!!!

Palehorse74480 01-17-2011 08:15 PM

Ok the spam log link points to:

The requested URL /forums/admincp/modcp/moderate.php was not found on this server.

From this:
Found in Akismet Database. Held for moderation:

How to fix?

Edit: also the email field is blank.

GlowHost.com 01-18-2011 09:30 PM

Quote:

Originally Posted by Palehorse74480 (Post 2150655)
Ok the spam log link points to:

The requested URL /forums/admincp/modcp/moderate.php was not found on this server.

From this:
Found in Akismet Database. Held for moderation:

How to fix?

Edit: also the email field is blank.

Wait for version 2.0 which has better logging.

Lover1 01-18-2011 10:53 PM

Thank you very much for this outstanding Mod! :up:


All times are GMT. The time now is 02:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06249 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete