vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Moderators Functions - PM Moderation (https://vborg.vbsupport.ru/showthread.php?t=118983)

Alan @ CIT 06-17-2006 10:00 PM

PM Moderation
 
PM Moderation
Version 1.0
Introduction
PM Moderation does exactly what it says on the tin! It allows you to moderate your members Private Messages before they are sent.

Ever had a new member sign up and do nothing but spam your members with Private Messages inviting them to leave your forum and join theirs? Or perhaps you've got 1 particular user who constantly sends abusive Private Messages to your other members? If so, then PM Moderation is the idea solution!
Features
PM Moderation contains many handy features to make your life as a forum Adminstrator or Moderator easier. These include
  • Integrates fully with vBulletin 3.6.0 Beta 2!
  • Fully Usergroup Controlled
  • Moderate ALL Private Messages for a Particular Usergroup or...
  • Moderate Private Messages that have certain Keywords in them!
  • Simple Usergorup Permission for deciding who can Moderate Private Messages
  • Integrated within the existing Private Messaging Options in the AdminCP
  • Moderate Private Messages directly from within the ModCP and AdminCP
  • Fully Phrased
  • ... and much more!
Installation
Please see the manual.html in the zip for a full Installation and Configuration guide :)
Credits
PM Moderation was written by Alan @ CIT. The original idea came from Floris with the Keyword idea coming from an anonymous person. Thanks goes to everyone who helped test this modification before it was released, and in particular peterska2 who did a ton of Beta testing, and fixed countless bugs in my dodgy code :)


Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though :) See you all in early September! :D

PLEASE NOTE: This thread is NOT the place to discuss the rights and wrongs of monitoring users Private Messages. That topic has been discussed to death many times before, but if you really feel the need to discuss it, please do so in The Lounge, not in this thread. Thank you :)

Alan @ CIT 06-18-2006 09:08 PM

Known Bugs: None!

bashy 06-18-2006 09:42 PM

Does this work on 3.5.4?
I just done a search for the same for that version but it dont exist, hence asking.
Looks like a great hack :)

peterska2 06-18-2006 09:49 PM

No, it only works on 3.6.0

Alan @ CIT 06-18-2006 09:49 PM

It's nice and shiney and brand new, so unfortunately, a 3.5.x version doesn't exist, and this one will only work with 3.6 I'm afraid :(

Thanks,
Alan.

bashy 06-18-2006 09:55 PM

thats a mighty big shame, i take it a port is out of the question then?

Alan @ CIT 06-18-2006 10:06 PM

Sorry, 3.6 is the future, but if/when you do upgrade to 3.6, I hope you'll come back and install! :D

Thanks,
Alan.

Roms 06-18-2006 10:52 PM

Looks good, I'll use it when I upgrade. Nice work. :)

Alan @ CIT 06-18-2006 10:57 PM

Thanks :)

corn dog 06-18-2006 11:14 PM

This is a great modification since I have an advertising rule on my website.

Thanks :)

*installed

Chadi 06-18-2006 11:53 PM

Why am I getting this error when adding the product?

Code:

Database error in vBulletin 3.5.4:

Invalid SQL:

### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
    (`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
    ('1', '5', 'Add the ModCP Nav Group and Option', 'mod_index_navigation', 'construct_nav_option($vbphrase[\'modpm_moderate_private_messages\'], \'moderate_pm.php?do=list\');    \r\nconstruct_nav_group($vbphrase[\'modpm_pm_moderation\']);\r\nconstruct_nav_spacer();', 'cit_pm_moderation');

MySQL Error  : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date        : Sunday, June 18th 2006 @ 07:51:43 PM
Script      : http://www.talkjesus.com/admincp/plugin.php
Referrer    : http://www.talkjesus.com/admincp/plugin.php?do=productadd
IP Address  : xxx.xxx.28.214
Username    : Chad
Classname    : vb_database


Alan @ CIT 06-18-2006 11:54 PM

Because your installing it on vBulletin 3.5.4 - it only works on 3.6 Beta 2 or above :)

Thanks,
Alan.

Chadi 06-18-2006 11:56 PM

Oh just noticed. Anyway to get this for 3.5.4?

Alan @ CIT 06-18-2006 11:58 PM

Sorry, but with 3.6 due to replace 3.5.4 any day now, I won't be releasing a version for 3.5.4. Make sure you come back and install it when you upgrade to 3.6 though! :D

Thanks,
Alan.

Barakat 06-18-2006 11:59 PM

great hack Allan ! Bravo

Barakat 06-19-2006 12:09 AM

but there are no file called http://**********/modcp/adminpermiss...hp?do=edit&u=1 in modcp

so from where shall i give permision to myself for example

Alan @ CIT 06-19-2006 12:11 AM

In the usergroup editor - under Private Message Permissions

Thanks,
Alan.

Barakat 06-19-2006 12:17 AM

got it .

El-Gazaly 06-19-2006 12:21 AM

Thanks For It
Installed .

Floris 06-19-2006 06:38 AM

Glad you had the time to work out my idea and got some more feature/options ideas from me and <> to complete it. Nice of you to make it public; I didn't want to keep it exclusive to my sites :) I am sure many of the vb customers like to use this to prevent spam on their site.

hurry 06-19-2006 12:32 PM

Does it work for vB 3.6.0 Beta 1?

Alan @ CIT 06-19-2006 12:48 PM

Hi,

Quote:

Originally Posted by hurry
Does it work for vB 3.6.0 Beta 1?

I haven't tried it on Beta 1 I'm afraid, as I run Beta 2 :)

Thanks,
Alan.

Floris 06-19-2006 12:58 PM

It should have no problem running beta 1.

hurry 06-19-2006 01:15 PM

Got this error in beta 1, please help. It is still showing installed but I don't know whether it will work.
=============================

Database error in vBulletin 3.6.0 Beta 1:

Invalid SQL:

INSERT IGNORE INTO phrasetype
(fieldname, title, editrows, product)
VALUES
(,
'moderatepm',
'PM Moderation',
3,
'cit_pm_moderation');

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
'moderatepm',
'PM Moderation',
3,
'cit_pm_moderation')' at line 4
Error Number : 1064

hurry 06-19-2006 01:19 PM

I have private messaging switched off. I was planning to activate it after I install this mod. Is this the problem?

Alan @ CIT 06-19-2006 01:21 PM

Unfortunately, there was a bug in vBulletin 3.6 Beta 1 which caused this problem. I would recommend upgrading to Beta 2, as it also fixes a number of other bugs :)

Thanks,
Alan.

hurry 06-19-2006 01:24 PM

Thanks. My Beta 1 forum is heavily modded. So I don't want to upgrade till the final 3.6 is relesed. Is there a way I can patch this particular bug in Beta 1 and make PM Moderation work? Please I hope this is possible.

Sergio68 06-19-2006 02:25 PM

Really Great, that's just what I was looking for :D

Alan @ CIT 06-19-2006 02:29 PM

Quote:

Originally Posted by hurry
Thanks. My Beta 1 forum is heavily modded. So I don't want to upgrade till the final 3.6 is relesed. Is there a way I can patch this particular bug in Beta 1 and make PM Moderation work? Please I hope this is possible.

Edit plugin.php go to line 2091, and remove "$typeid," (note the comma, that must be removed as well)

Thanks,
Alan.

tommyxv 06-19-2006 02:42 PM

Alan,

I see all these new hacks for 3.6 from you, is Moderation Auto-PM ported for 3.6 ??

Great work!

Thanks

Alan @ CIT 06-19-2006 02:48 PM

I've ported it and am half-way through adding the new features. It'll be released by the end of the week (hopefully).

Thanks,
Alan.

tommyxv 06-19-2006 03:06 PM

Thanks Alan. Your mods are always top notch! Keep up the great high quality work!

-Tommy

Bad Bunny 06-20-2006 04:19 AM

When we finally upgrade I will install this. Thanks for the great work.

evenmonkeys 06-25-2006 01:11 AM

This is a really great idea. I'll keep this in mind.

Shazz 06-26-2006 04:48 AM

Dang it! i did all this and i relized it was for the 3.6.0 :(

sam anders 07-09-2006 07:40 AM

installed and works great thanks :)

cooldude714 07-18-2006 06:54 AM

How come it says I don't have permission? It says
Sorry, you don't have permission to access the administrative controls on this page.

If you need to access this page, ask your lead administrator to enable your permissions for this page using the Administrator Permissions section of the control panel.

And the Administrator Permissions link says page cannot be displayed.. why?

Alan @ CIT 07-18-2006 05:00 PM

Did you remember to set your Usergroup to be allowed to Moderate PMs ?

Thanks,
Alan.

xxskullxx 07-20-2006 08:09 PM

I have no need for this (yet) on my forums, but it looks very well thought out. Kudo's Alan.

Julie 07-20-2006 09:01 PM

I'll have to wait until I've upgraded, but one quick question.

Will the user who sends the PM be able to see that his/her PM is moderated? OR, does it simply send (like normally) without any message/warning to the user? Or could it be an admin choice?

Thanks :)


All times are GMT. The time now is 06:38 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.01601 seconds
  • Memory Usage 1,809KB
  • 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
  • (1)bbcode_code_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
  • (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