vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - Ban from Thread (https://vborg.vbsupport.ru/showthread.php?t=158445)

FullyTested 09-21-2007 10:00 PM

Ban from Thread
 
Ban from Thread

This mod allows your moderators to do the following:
  • Ban a user from a thread via the username drop down menu in a post (as well as the admin/mod cp).
    This opens a page which allows you to select a ban period, whether or not to allow the user to view the thread, and provide a text message which the user will see when trying to view or reply to the thread.
  • Once you ban the user you are returned to the same post from which you banned.
    You will now notice a small icon besides the ip icon.
    Clicking on that will open a page that will display the current ban information as well as a list of other threads from which this user is banned.
    You will also have the option to edit or lift the ban from here.
    You may now also unban the user from the username drop down menu.
  • From the admin cp you can set whether you wish to have a Private Message sent to the user whenever they are banned/unbanned.
  • You may also view, edit, or lift bans from the admin/mod control panel. Just click on the 'view banned from thread users' link.

To Intall:
Please see the 'readme' text file for installation instructions.


Revisions:

version 1.1
Fixed a problem with search bots.
Just re-import the product, but remember to select 'allow overwrite'.


I hope you find this mod useful.
Sincerely,
FullyTested.

johnrizz 09-22-2007 10:50 AM

Looks good, I'll give it a shot! thanks

BaHyXuH 09-22-2007 11:09 AM

Won`t be disturbed if try it

BaHyXuH 09-22-2007 12:00 PM

What to d0 please tell me :?
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/vhosts/soccer-union.com/httpdocs/postings.php on line 52

FullyTested 09-22-2007 12:38 PM

Quote:

Originally Posted by BaHyXuH (Post 1344528)
What to d0 please tell me :?
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/vhosts/soccer-union.com/httpdocs/postings.php on line 52

Ensure your code around line 52 looks like this:
PHP Code:

// pre-cache templates used by specific actions
$actiontemplates = array(
    
'editthread' => array(
        
'threadadmin_editthread',
        
'threadadmin_logbit',
        
'posticonbit',
        
'posticons'
    
),
    
'deleteposts'  => array('threadadmin_deleteposts'),
    
'deletethread' => array('threadadmin_deletethread'),
    
'managepost'   => array('threadadmin_managepost'),
    
'mergethread'  => array('threadadmin_mergethread'),
    
'movethread'   => array('threadadmin_movethread'),
    
'copythread'   => array('threadadmin_movethread'),
    
// start code 'ban from thread'
    
'banuserthread' => array('threadadmin_banuserthread'),
    
'liftbanthread' => array('threadadmin_liftbanthread'),
    
'banthreadinfo' => array('threadadmin_banthreadinfo'),
    
// end code 'ban from thread'
); 

I would have included the modified php files but was not sure if it is legal to include them with these mods.

BaHyXuH 09-22-2007 12:44 PM

I corrected.Now `Parse error: syntax error, unexpected T_CASE in /home/vhosts/soccer-union.com/httpdocs/postings.php on line 94`

FullyTested 09-22-2007 12:46 PM

Once again, insure the code is inside the curly brackets:

PHP Code:

    switch ($_REQUEST['do'])
    {
        case 
'movethread':   $navbits[''] = $vbphrase['move_thread']; break;
        case 
'copythread':    $navbits[''] = $vbphrase['copy_thread']; break;
        case 
'editthread':   $navbits[''] = $vbphrase['edit_thread']; break;
        case 
'deletethread'$navbits[''] = $vbphrase['delete_thread']; break;
        case 
'deleteposts':  $navbits[''] = $vbphrase['delete_posts']; break;
        case 
'mergethread':  $navbits[''] = $vbphrase['merge_threads']; break;
    
// start code 'ban from thread'
        
case 'banuserthread'$navbits[''] = $vbphrase['ban_from_thread']; break;
        case 
'liftbanthread'$navbits[''] = $vbphrase['lift_threadban']; break;
        case 
'banthreadinfo'$navbits[''] = $vbphrase['banthread_info']; break;
    
// end code 'ban from thread'
    



Snake 09-22-2007 01:16 PM

Thanks for the release!

BrotherX 09-22-2007 03:10 PM

I was not install this but if this working, this is revolution in the forum.

m002.p 09-22-2007 03:20 PM

Great work there mate! Will download & "keep on reference" to use when required.

Thanks

Ramsesx 09-22-2007 04:12 PM

This is a great release and surely a lot of work, thank you.
But a hell of files edits are necessary.

BaHyXuH 09-22-2007 05:05 PM

This is revolution.Can we nominate for MOTM

iogames 09-22-2007 06:06 PM

Quote:

Originally Posted by BaHyXuH (Post 1344688)
This is revolution.Can we nominate for MOTM

I agree! this a 'MUST HAVE' a 'Two Thumbs Up!' a 'Better than S3X with Gasoline!'

But I will wait for 1.01 ;)

FreshFroot 09-22-2007 08:04 PM

Nice hack, though it's already been released by 2 other devs.

Allan 09-22-2007 09:25 PM

Very great hack, congrat :)

Hornstar 09-22-2007 10:43 PM

Thanks, I will keep this in mind and might install it when I see a member spamming a specific thread. thanks.

BaHyXuH 09-23-2007 09:32 AM

Can you update the mod so that we can ban IPs from thread ?It is too easy someone just to register again and start spamming..

sola 09-23-2007 10:27 AM

Quote:

Originally Posted by FreshFroot (Post 1344783)
Nice hack, though it's already been released by 2 other devs.

Not necessarily. This one allows the Mods to ban, if I understand correctly. The other one didn't. Mods need it more than the Admin, in my opinion.

Thanks guy.

rizelim 09-23-2007 10:37 AM

thanks. Nice hack

yoyoyoyo 09-23-2007 12:34 PM

thanks alot

BaHyXuH 09-23-2007 01:03 PM

Quote:

Originally Posted by BaHyXuH (Post 1345074)
Can you update the mod so that we can ban IPs from thread ?It is too easy someone just to register again and start spamming..

???

FullyTested 09-23-2007 05:11 PM

Quote:

Not necessarily. This one allows the Mods to ban, if I understand correctly. The other one didn't. Mods need it more than the Admin, in my opinion.
That is correct. If a Mod has banning or unbanning rights for that forum, they can then exercise those right for thread bans.

FullyTested 09-23-2007 05:13 PM

Quote:

Originally Posted by BaHyXuH (Post 1345074)
Can you update the mod so that we can ban IPs from thread ?It is too easy someone just to register again and start spamming..

Good idea. I will look into it.
Don't all AOL customers from the same region use the same IP address?

FreshFroot 09-23-2007 06:13 PM

Quote:

Originally Posted by sola (Post 1345090)
Not necessarily. This one allows the Mods to ban, if I understand correctly. The other one didn't. Mods need it more than the Admin, in my opinion.

Thanks guy.

really? I thought all mods/smods/admins could ban in the other ones.. hmm i'll double check, if not then this might be a new hack I need installed.

l3it3r 09-25-2007 06:19 PM

Reminder to try later.

powerful_rogue 10-11-2007 10:01 PM

Got so close, however the edits werent available in postbit_legacy. Im guessing the made some big changes from 3.6.7 - 3.6.8

Just to make clear, I attempted to install on 3.6.7 (thought id take the chance!)

FullyTested 10-11-2007 10:24 PM

Quote:

the edits werent available in postbit_legacy
If you PM me the 3.6.7 template, I'll have a look at it.
Was that the only difference?

tiredoff 10-12-2007 04:43 AM

Hi
i dont see any error , and cannot see anything ( I dont see any of the screeshots after installations)
i followed the steps one by one modifying and uploading
any suggestion please?

FullyTested 10-12-2007 05:27 AM

Unfortunately, we are not allowed to include complete PHP files (modified ones), so the install instruction leave a lot of room for mistakes in the cut and paste process.

Which version of VB are you using?

tiredoff 10-12-2007 05:28 AM

Quote:

Originally Posted by FullyTested (Post 1358029)
Unfortunately, we are not allowed to include complete PHP files (modified ones), so the install instruction leave a lot of room for mistakes in the cut and paste process.

Which version of VB are you using?

vb 3.6.8
http://www.lebroom.com/vb

FullyTested 10-12-2007 05:34 AM

Well I'm afraid I cannot read that :)
Do you at least get the ban link in the postbit?
Do you have the ban option in the admin/mod cp?

It all should work. You must have cut-and-pasted something wrong.

tiredoff 10-12-2007 05:43 AM

Quote:

Originally Posted by FullyTested (Post 1358033)
Well I'm afraid I cannot read that :)
Do you at least get the ban link in the postbit?
Do you have the ban option in the admin/mod cp?

It all should work. You must have cut-and-pasted something wrong.

well sorry for u cannot read it
i see only in th admincp {view banned from thread user}
i didnt see the ban link in the postbit

FullyTested 10-12-2007 05:53 AM

It looks like the 'ban_from_thread' product was not imported properly.
Perhaps it stopped half way through.
Try importing it again and don't forget to select 'allow overwrite' when doing so.

tiredoff 10-12-2007 05:59 AM

Quote:

Originally Posted by FullyTested (Post 1358046)
It looks like the 'ban_from_thread' product was not imported properly.
Perhaps it stopped half way through.
Try importing it again and don't forget to select 'allow overwrite' when doing so.

I imported it again and still the same thing
i dont see the image too in the thread , i uploded it to image/buttom too

tiredoff 10-12-2007 06:07 AM

I will check every thing again and will reply you
sorry for bothering you

tiredoff 10-12-2007 06:21 AM

1). Open the banning.php file
2). Find 'period' => TYPE_STR
and REPLACE it with:

'period' => TYPE_STR,
'threadid' => TYPE_INT <---this dont need (,) or just like seen ?

FullyTested 10-12-2007 07:43 AM

It does not matter if you add a comma or not.

It's no bother. It's just that I cannot help you without looking at your php files to see where you went wrong.
But if you do not see the ban link in the username drop down menu then that would mean that you either did not modify the template properly or the product was not imported correctly somehow.
Or perhaps you have another mod installed that is causing this one to break.

By the way, a moderator would not see the ban link (or little ban icon when the user is banned) unless they have banning rights for that particular forum.

ehsanix 10-12-2007 10:53 AM

Excellent

pollon 10-12-2007 05:31 PM

Great. Installed :up:

tiredoff 10-13-2007 08:03 AM

Quote:

Originally Posted by FullyTested (Post 1358100)
It does not matter if you add a comma or not.

It's no bother. It's just that I cannot help you without looking at your php files to see where you went wrong.
But if you do not see the ban link in the username drop down menu then that would mean that you either did not modify the template properly or the product was not imported correctly somehow.
Or perhaps you have another mod installed that is causing this one to break.

By the way, a moderator would not see the ban link (or little ban icon when the user is banned) unless they have banning rights for that particular forum.

If you like i can make a link to the php files , and u can check all them :)
and taking screenprint to the post_legacy and postbit too
i will be greatfull with you


All times are GMT. The time now is 06:06 PM.

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.01407 seconds
  • Memory Usage 1,836KB
  • 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
  • (2)bbcode_php_printable
  • (12)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
  • (40)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