vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Ban Ignored/Specified Users from Replying v2.0 (https://vborg.vbsupport.ru/showthread.php?t=60844)

magnus 01-27-2004 10:00 PM

Ban Ignored/Specified Users from Replying v2.0
 
Ban Ignored/Specified Users from Replying v2.0

Description
This hack will prevent ignored users from replying to your threads, as well as give you the option to ban additional users without adding them to your ignore list.

Information
This hack was previously titled "User-Defined Posting Bans (Ban specified users from replying)"

Tested on RC4, should work on RC1+

Version History
v1.0 - Initial Release
v2.0 - Added auto-ban of ignored users, created installer script for convenience

Click here for upgrade instructions from 1.0!

Planned Features
v3.0
- Who knows? You tell me. :)

If you use this, please click https://vborg.vbsupport.ru/

eXtremeTim 01-28-2004 12:07 AM

This hack sounds wicked. I will install it shortly.

NTLDR 01-28-2004 12:44 AM

Please include the Text instructions for non-HTL installs as per vB.org's rules, otherwise your hack will have to be removed.

Thanks.

Merjawy 01-28-2004 02:31 AM

Quote:

Originally Posted by NTLDR
Please include the Text instructions for non-HTL installs as per vB.org's rules, otherwise your hack will have to be removed.

Thanks.

newbie question :) what does HTL stand for?


oops.. I read the book :)

I just found out what I needed to know :)

Sadie Frost 01-28-2004 07:15 AM

It's KuraFire's Hack Tracking Log hack :) Kind of like vbhacker, but not :D

LeeCHeSSS 01-28-2004 08:14 AM

Is this similar to the thread banning hack made by John for vB2 (https://vborg.vbsupport.ru/showpost....28&postcount=1) ?

magnus 01-28-2004 10:02 AM

Quote:

Originally Posted by LeeCHeSSS
Is this similar to the thread banning hack made by John for vB2 (https://vborg.vbsupport.ru/showpost....28&postcount=1) ?

Hrm, I've never seen that one before. It's similar in the fact that there is banning, but with that one it's an administrative option. With mine, it's at the original thread author's discretion as to who shouldn't be allowed to reply.

For instance, if I have a problem with {user x} who is always trolling my threads and flamebaiting me, I can put {user x} in the "Banned Posters" field when I create my thread, and he will be unable to reply.

This is purely at a user level, not administrative.

magnus 01-28-2004 11:16 AM

Quick edit for aesthetic purposes:

In newthread template,

Find:
HTML Code:

$vbphrase[banned_users_desc]
Replace with:
HTML Code:

$vbphrase[banned_users_desc]<br />
This has been updated in the zip file, so this is only necessary for previous installations. Nothing else has changed.

FleaBag 01-28-2004 11:19 AM

Looks good - will probably use. Cheers. :)

magnus 01-28-2004 05:43 PM

Version 1.01 Upgrade Instructions:

File: postings.php

Find:
PHP Code:

        $DB_site->query("
            UPDATE " 
TABLE_PREFIX "thread SET
                visible = 
$visible,
                open = 
$open,
                sticky = 
$sticky ,
                title = '" 
addslashes(htmlspecialchars_uni($title)) . "',
                iconid = 
$iconid,
                notes = '" 
addslashes($notes) . "'
            WHERE threadid = 
$threadid
        "
); 

Replace with:
PHP Code:

        $DB_site->query("
            UPDATE " 
TABLE_PREFIX "thread SET
                visible = 
$visible,
                open = 
$open,
                sticky = 
$sticky ,
                title = '" 
addslashes(htmlspecialchars_uni($title)) . "',
                iconid = 
$iconid,
                notes = '" 
addslashes($notes) . "',
                bannedposters = '" 
addslashes($bannedposters) ."'
            WHERE threadid = 
$threadid
        "
); 

File: postings.php

Find:
PHP Code:

        'title' => STR 

Replace with:
PHP Code:

        'title' => STR,
        
'bannedposters' => STR 


Template: threadadmin_editthread

Find:
HTML Code:

                <div class="fieldset">
                        $vbphrase[moderator_notes] / $vbphrase[thread_summary]:<br />
                        <input type="text" class="bginput" name="notes" value="$threadinfo[notes]" size="50" maxlength="250" />
                </div>

Below, add:
HTML Code:

                <div class="fieldset">
                        $vbphrase[banned_users]:<br />
                        <input type="text" class="bginput" name="bannedposters" value="$threadinfo[bannedposters]" size="50" maxlength="250" />
                </div>



All times are GMT. The time now is 01:52 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.01153 seconds
  • Memory Usage 1,757KB
  • 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_html_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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