Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.


New Thread  Post Reply
Daz's Avatar
Daz : To right I fecking bite
Daz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond repute
offline Joined: Sep 2007 Posts: 455 Thanked: 166
  #1  
Thread Starter Unread 11-06-07
Ban via Post

This mod allows your moderators to do the following:

1. Ban a user from the site and/or a thread via the username drop down menu in a post
(as well as the admin/mod cp).

All moderators with banning/unbanning permissions for the forum can use this feature.
This opens a page which allows you to select a ban period, whether or not to allow the user to view the thread (for thread bans), and provide a text message which the user will see when trying to enter the site or view / reply to the thread.
2. Once you ban the user you are returned to the same post from which you banned the user.
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 and in the case of a thread ban, also 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.
3. From the admin cp vbulletin settings you can set whether you wish to have a Private Message sent to the user whenever they are banned/unbanned from a thread.
4. You may also view, edit, or lift bans from the admin/mod control panel. Just click on the ‘view banned users’ or 'view banned from thread users' link. If you turned on the feature to moderate permanent bans, this is where you will see a list of bans awaiting approval. You may approve, reject (lift), or edit (modify) moderated bans.


Available Options:

* Limit bans to only Thread, only Site, or both Thread and Site bans via the postbit
* Send PM to User:
You may choose whether you wish to send a private message to the user whenever they are thread banned/unbanned
* Moderate Permanent Bans:
Whether to moderate (approve, edit, reject) permanent site and/or thread bans.
If this feature is turned on, all permanent site and/or thread bans are entered into a moderation queue requiring admin attention within 7 days of ban date. If no action is taken (approve, edit, reject), the ban reverts to a 7 day ban.
You may also provide an email address to be used for notification that a permanent ban awaits approval.




Attached Files Click the thanks button to view this attachment.
KnoPPerS's Avatar
KnoPPerS : Member
KnoPPerS is on a distinguished road
offline Joined: Oct 2007 Location: Germany Posts: 26 Thanked: 0
  #2  
Unread 11-06-07
wow thanks very much!
shunli's Avatar
shunli : Newbie
shunli is on a distinguished road
offline Joined: Nov 2007 Posts: 4 Thanked: 0
  #3  
Unread 11-07-07
I think I messed up the code so, could anyone please attatch the files you need to modify here, Thnx in advance

( maybe this is usefull, I am using vbulletin 3.6.8 )
dutchwii's Avatar
dutchwii : OldSkool
dutchwii is a jewel in the roughdutchwii is a jewel in the roughdutchwii is a jewel in the roughdutchwii is a jewel in the rough
offline Joined: Sep 2007 Location: The Hague (The Netherlands) Posts: 216 Thanked: 36
  #4  
Unread 11-07-07
Originally Posted by shunli View Post
Hover to view full quote
I think I messed up the code so, could anyone please attatch the files you need to modify here, Thnx in advance

( maybe this is usefull, I am using vbulletin 3.6.8 )
Maybe a nice tip before you have a mod where you need edit files make a backup of files and database so when messed up you can restore
shunli's Avatar
shunli : Newbie
shunli is on a distinguished road
offline Joined: Nov 2007 Posts: 4 Thanked: 0
  #5  
Unread 11-07-07
well yes, I did so i restored them en redid the files, but when I go to adminCP then ban user or view banned users ( from thread ) I get this error
Parse error: syntax error, unexpected $end in /mnt/web2/11/32/51647432/htdocs/forum/upload/modcp/banning.php on line 2232
so i go to that file and go to line 2232, but that line it completely blank.
Daz's Avatar
Daz : To right I fecking bite
Daz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond reputeDaz has a reputation beyond repute
offline Joined: Sep 2007 Posts: 455 Thanked: 166
  #6  
Thread Starter Unread 11-07-07
The coder has released a couple of bug fixes today, maybe thats your problem, they are

in the postings php info it said:


3). FIND (~ line 85)

case 'mergethread'$navbits[''] = $vbphrase['merge_threads']; break;

REPLACE with

// start code 'ban via post'
case 'banuserthread'$navbits[''] = $vbphrase['bvp_banthread']; break;
case 
'liftbanthread'$navbits[''] = $vbphrase['bvp_liftthread']; break;
case 
'banthreadinfo'$navbits[''] = $vbphrase['bvp_banthreadinfo']; break;
case 
'banusersite'$navbits[''] = $vbphrase['ban_from_site']; break;
case 
'liftbansite'$navbits[''] = $vbphrase['bvp_liftsite']; break;
case 
'bansiteinfo'$navbits[''] = $vbphrase['bvp_bansiteinfo']; break;
// end code 'ban via post'

it should really say:
FIND (~ line 85)

case 'mergethread'$navbits[''] = $vbphrase['merge_threads']; break;

REPLACE with

case 'mergethread'$navbits[''] = $vbphrase['merge_threads']; break;
// start code 'ban via post'
case 'banuserthread'$navbits[''] = $vbphrase['bvp_banthread']; break;
case 
'liftbanthread'$navbits[''] = $vbphrase['bvp_liftthread']; break;
case 
'banthreadinfo'$navbits[''] = $vbphrase['bvp_banthreadinfo']; break;
case 
'banusersite'$navbits[''] = $vbphrase['ban_from_site']; break;
case 
'liftbansite'$navbits[''] = $vbphrase['bvp_liftsite']; break;
case 
'bansiteinfo'$navbits[''] = $vbphrase['bvp_bansiteinfo']; break;
// end code 'ban via post'



and

there is also a mistake in the modcp/banning.php instructions.

it says

4). FIND (~ line 339)

$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_INT,
'period' => TYPE_STR,
'threadid' => TYPE_INT
)); 
REPLACE with


// start code 'ban via post'
// added 'threadid' => TYPE_INT,
// end code 'ban via post'

$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_INT,
'period' => TYPE_STR,
'threadid' => TYPE_INT
)); 

and it should say:


4). FIND (~ line 339)

$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_INT,
'period' => TYPE_STR,
)); 
REPLACE with

// start code 'ban via post'
// added 'threadid' => TYPE_INT,
$vbulletin->input->clean_array_gpc('r', array(
'userid' => TYPE_INT,
'period' => TYPE_STR,
'threadid' => TYPE_INT
));
// end code 'ban via post' 
shunli's Avatar
shunli : Newbie
shunli is on a distinguished road
offline Joined: Nov 2007 Posts: 4 Thanked: 0
  #7  
Unread 11-07-07
Going to redo the entire thing "again" Hopefully it will work now, but thank you for your fast reply's

*EDIT*

Still an error, so think its has something to do with the code.
Hopefully someone has it working though and wants to share the files, please
~Shunli

Last edited by shunli; 11-07-07 at 11:36 PM.
KnoPPerS's Avatar
KnoPPerS : Member
KnoPPerS is on a distinguished road
offline Joined: Oct 2007 Location: Germany Posts: 26 Thanked: 0
  #8  
Unread 11-15-07
has anyone version 1.5? =)
New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
post, ban
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021