[BETA] Advanced disable PM for users

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

[BETA] Advanced disable PM for users

Post by Ramon Fincken » Sat Jun 17, 2006 6:53 pm

Features

*Admins + mods have full PM rights
*Admins + mods can create/post a new PM > a checkbox will set the permissions for the reciever ( may or may not reply )

*Users can have all PM rights except for a new PM
*Users can reply to a PM from Admins + mods when the Admins or mods granted the permissions to ' may reply ' for the PM

*Users will not see the reply button when they may not reply
*Users will not see the newPM button
*If users try to enter the newPM url manually the action is stopped


Screenshot of administrator posting a new PM:
Image


Instructions:
0] Make a backup of your files + database first !

1]
Download : http://www.creativepulses.nl/upload/php ... _1.0.0.rar
the rar file contains 2 files:

* install file
* sql.php

2]
run the install instructions
next, go to your board and run the sql.php file to upgrade your database
Last edited by Ramon Fincken on Sat Jul 08, 2006 12:57 pm, edited 3 times in total.
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here

MarkTheDaemon
Former Team Member
Posts: 2770
Joined: Thu Oct 20, 2005 2:42 am
Location: United Kingdom
Name: Mark Barnes

Post by MarkTheDaemon » Sat Jun 17, 2006 7:07 pm

Nice MOD Ramon!

Good Work :)

User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken » Thu Jul 06, 2006 7:59 pm

thanks mark,

keep up the good work too ;)


Rfn
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw » Thu Jul 06, 2006 9:06 pm

You want me to REPLACE privmsg.php? No way! I can make a code changes file for you if you like :D
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken » Thu Jul 06, 2006 9:08 pm

eviL<3 wrote: You want me to REPLACE privmsg.php? No way! I can make a code changes file for you if you like :D


If you can replace those and provide the code changes for me I'll make you co-author of this mod :)

and yes I have indicated the code changes in the file
[ // MOD Ramon Fincken, Restrict Reply 1.0.0 ]

Rfn
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw » Thu Jul 06, 2006 9:33 pm

Here: advanced_disable_pm_for_users.txt

I havn't tested it though. It was a quick Job with MOD Studio and WinMerge :)
Last edited by igorw on Thu Jul 06, 2006 9:45 pm, edited 1 time in total.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken » Thu Jul 06, 2006 9:37 pm

will check the file out tomorrow, many thanks !!


Rfn
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here

User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken » Sat Jul 08, 2006 12:54 pm

thanks evil<3

you missed some lines but I used the set to create a full install file.
( see 1rst post for download url )

Rfn
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here

User avatar
will_hough
Former Team Member
Posts: 1952
Joined: Mon Feb 06, 2006 8:47 pm
Location: Michigan
Name: Will Hough
Contact:

Post by will_hough » Thu Aug 17, 2006 5:00 pm

I run a board where the owner of the company is a member. When he signs on he gets alot of PM's.

Will this MOD
1. Allow him to Block all PM's from everyone?
2. Allow him to send PM's to who he wishes, and he gives permission for reply?
3. Allows him to recieve all PM's from Admin's ans Mod's?

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw » Thu Aug 17, 2006 5:09 pm

will_hough wrote: I run a board where the owner of the company is a member. When he signs on he gets alot of PM's.

Will this MOD
1. Allow him to Block all PM's from everyone?
2. Allow him to send PM's to who he wishes, and he gives permission for reply?
3. Allows him to recieve all PM's from Admin's ans Mod's?


As it seems, yes. Or perhaps this only applies for admins? Not sure...

Ramon:
In the MOD file, this is "wrong"...

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
/templates/subSilver/posting_body.tpl
It's without a "/" at the beginning.

I'd also add some kind of MOD template header, and use .ZIP format, so the Unix/Mac users can also use it! :)

Suggestion: *If users try to enter the newPM url manually the action is stopped and an email sent to the admin, containing user id, session id, ip, user agent (browser) and whatever else...
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
will_hough
Former Team Member
Posts: 1952
Joined: Mon Feb 06, 2006 8:47 pm
Location: Michigan
Name: Will Hough
Contact:

Post by will_hough » Thu Aug 17, 2006 5:15 pm

I will make him an admin if that is what it takes.

User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken » Thu Aug 17, 2006 5:27 pm

will_hough wrote: I run a board where the owner of the company is a member. When he signs on he gets alot of PM's.

Will this MOD
1. Allow him to Block all PM's from everyone?
2. Allow him to send PM's to who he wishes, and he gives permission for reply?
3. Allows him to recieve all PM's from Admin's ans Mod's?


if you are admin OR a moderator there are NO restrictions

if you are a normal user you can only reply to the PM's on which the admin or moderator have set the option 'may reply'

so:

*Admins + mods have full PM rights
*Admins + mods can create/post a new PM > a checkbox will set the permissions for the reciever ( may or may not reply )

*Users can have all PM rights except for a new PM
*Users can reply to a PM from Admins + mods when the Admins or mods granted the permissions to ' may reply ' for the PM

*Users will not see the reply button when they may not reply
*Users will not see the newPM button
*If users try to enter the newPM url manually the action is stopped
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here

User avatar
will_hough
Former Team Member
Posts: 1952
Joined: Mon Feb 06, 2006 8:47 pm
Location: Michigan
Name: Will Hough
Contact:

Post by will_hough » Thu Aug 17, 2006 6:20 pm

But normal users can PM eachother normally, correct?

User avatar
Ramon Fincken
Registered User
Posts: 4835
Joined: Thu Oct 14, 2004 1:04 am
Location: NL, The Netherlands Amsterdam area @GMT +1
Contact:

Post by Ramon Fincken » Thu Aug 17, 2006 6:22 pm

* MOD error solved
* @Evil<3 ... that would be a nice add on, but not with priority...
besides... IF a users tries to enter the newPM url manually the action is stopped
and
IF a user tries to enter the reply PM url manually .. > the reciever cannot reply because the 'May reply checkbox' is not there :)
Dutch quality fully managed WordPress hosting - ManagedWPHosting.nl

Before changing a file, some code or installing a MOD >> Make a backup first!

Do you like my mods? paypal me $1 :) forumsoftware[AT}creativepulses[DOT}nl [/size]
PhpBBantispam.com || Instant find your mod here

MitchSchaft
Registered User
Posts: 292
Joined: Fri Jun 06, 2003 10:22 pm
Location: exiled

Post by MitchSchaft » Wed Aug 23, 2006 1:03 am

Well, I tried to install the mod, but receive the following sql error:
SQL Error : 1064 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 'AND
privmsgs_to_userid = LIMIT 1' at line 2<br /><br />SELECT privmsgs_mayreply FROM phpbb_privmsgs
WHERE privmsgs_id = AND
privmsgs_to_userid = LIMIT 1<br /><br />Line : 63<br />File : privmsg.php


I did run the sql.php file. I'm hoping to give my users the ability to shut off PMs. I'm not 100% what this mod does.

Post Reply

Return to “[2.0.x] MODs in Development”