obey-robots.txt
View Thread
Post your improvements and modifications to messages.php here.
 Print Thread
Messages.php no limits for user groups
Fusioneer
I have some webcare teams on my sites. For granting rights in the forum I have placed them in a group.
Unfortunately the post limit from the Personal Messages system is limited to non admins. (limit setting adjustable in admin panel).

Webcare gets a lot of PM's from a lot of members so I needed a way around the PM limit.

No limits in PM system for groups (and groupmembers)

Here it is:
Open message.php and find around line 28
Download source  GeSHi: PHP
  1. if (iADMIN || $userdata['user_id'] == 1) {
  2.  
Parsed in 0.039 seconds, using GeSHi 1.0.8.10


Replace with
Download source  GeSHi: PHP
  1. if (iADMIN || $userdata['user_id'] == 1 || iUSER_GROUPS) /* Mod Wanabo, no limits for groups */ {
  2.  
Parsed in 0.017 seconds, using GeSHi 1.0.8.10


Remember, this mod will grant all groups no limits in PM system like the admins have.

When you just want to grant 1 group no limits change;
iUSER_GROUPS
in
$userdata['user_groups'] == .X

Where X is the group number. The dot before the number is necessary!!
See code;
Download source  GeSHi: PHP
  1. if (iADMIN || $userdata['user_id'] == 1 || $userdata['user_groups'] == .X) /* Mod Wanabo, no limits for groups */ {
  2.  
Parsed in 0.028 seconds, using GeSHi 1.0.8.10

Warning about ParkingCrew.com! Case: ParkingCrew.com acquires NameDrive.com but earnings are not transferred despite assurances and promises. Inquiries about this are ignored! It's just a con compagny. Don't do business with them!
 
Jump to Forum
New Thread Post Reply
Use BBcode or HTML to refer to; 'Messages.php no limits for user groups'
BBcode:
HTML:
Simular threads
Subject Discussion Forum         Last Post
Get email when new user registers Modifications to sendmail_include.php : 3 07-12-2016