vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   vbSpamBuster v0.2 (https://vborg.vbsupport.ru/showthread.php?t=76756)

oldengine 09-25-2005 03:08 AM

I'm starting to panic! This and a lot of other good mods are either going to go down the drain or I'm going to stay on vB 3.0.9 and forget about 3.5.

Now I see why there are still users on vB 2. :disappointed:

UK Jimbo 09-25-2005 08:50 AM

As soon there is a gold release of 3.5 and we've migrated the forum I use to it then I'll port this mod over to 3.5 (to save my sanity patching in this and a load of other mods every time the forum software gets upgraded).

:)

oldengine 09-27-2005 12:23 AM

Glad to hear this. Spambuster is a valued asset to vBulletin!

motorhaven 10-01-2005 03:20 AM

There's a major hole in this hack...

Create a new thread or post without a spam link or keyword. Post appears (as it should). Now edit the post and put in the spam link/keyword. Post is live, instead of in the moderation queue.

motorhaven 10-01-2005 04:09 AM

Okay, here's the fix:

In editpost.php look for:
Code:

require_once('./includes/functions_editor.php');
Below that add:
Code:

require_once('./includes/spambuster-libs.php');
In editpost.php look for:
Code:

        build_post_index($postid , $foruminfo);

                $url = "showthread.php?$session[sessionurl]p=$postid#post$postid";
                eval(print_standard_redirect('redirect_editthanks'));

Above that add:
Code:

        sb_test( $edit['title'], $edit['message'] );
        if ( $foruminfo['moderatenewpost'] == 1 )
        {
                    $thepost = $DB_site->query_first("SELECT * FROM " . TABLE_PREFIX . "post WHERE postid = $postid");

            // First post in thread?
            if ( $thepost['parentid'] == 0 )
            {
                $hidetype = "thread";
                            $DB_site->query("UPDATE " . TABLE_PREFIX . "thread SET visible=0 WHERE threadid = $threadinfo[threadid]");
            }
            else
            {
                $hidetype = "post";
            }
                    $DB_site->query("UPDATE " . TABLE_PREFIX . "post SET visible=0 WHERE postid = $postid");

                    $DB_site->query("DELETE FROM " . TABLE_PREFIX . "moderation WHERE postid = $postid");

                        $DB_site->query("INSERT INTO " . TABLE_PREFIX . "moderation (threadid, postid, type )
                                        VALUES ($threadinfo[threadid], $postid, '$hidetype')" );
        }

Could be done more efficiently but I threw it together in 15 minutes and it works.

UK Jimbo 10-04-2005 12:03 PM

Thanks :)

I'll make sure that it's not an issue when I upgrade the code to work with vBulletin 3.5.

UK Jimbo 10-17-2005 12:00 AM

I've not forgotten about v3.5ing this (and possible enhancing it a bit).

Watch this space...

oldengine 10-18-2005 02:02 AM

Definitely been watching. It's my gateway to 3.5. :)

oldengine 11-06-2005 01:14 AM

<bump>

nwelsh 12-02-2005 07:21 PM

you know what, this hack is really good for the contact us form!


All times are GMT. The time now is 07:15 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.02565 seconds
  • Memory Usage 1,736KB
  • 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
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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