अप्रेल 25 2019 04:14:22
Language Switcher
· Start/घर
· Downloads/डाउनलोड
· Faq/एफ.ए.क्यू
· Forum/चर्चा मंच
· Weblinks/वेब लिंक्स
· Rules/नियम
· Privacy/गोपनीयता नीतियाँ
· Contact/संपर्क करें
· Search/खोज करें
· Advance Fusion Search
बॉक्स चिल्लाऊँ
You must login to post a message.

25-01-2019 21:05
In lo dam hlawm maw?
View Thread
Who is here? 1 guest(s)
All MODs and their Supported Threads goes here in this Section.
 Print Thread

[MOD]Messages.php no limits for user groups

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) {
Parsed in 0.028 seconds, using GeSHi

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

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;
$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 */ {
Parsed in 0.027 seconds, using GeSHi

Edited by Wanabo on 09-03-2011 02:19
.....and when we want two or more groups, then we will add more OR after the condition and hence it will allow them... hmm Smile

Thanks for this useful info ... Wink
Be What you want to be...Wink
Jump to Forum:
New Thread Post Reply
Gebruik BBcode of HTML om naar; '[MOD]Messages.php no limits for user groups', te verwijzen!
उपयोगकर्ता ऑनलाइन
· अतिथि ऑनलाइन: 1

· सदस्य ऑनलाइन: 0

· कुल सदस्य: 77
· नवीन सदस्य: Jonathan Boytloong
लॉग इन
उपयोगकर्ता नाम


अभी तक सदस्य नहीं?
रजिस्टर करने के लिए यहाँ क्लिक करें.

पासवर्ड भूल गए?
नए पासवर्ड यहाँ अनुरोध करें.
अंतिम देखा उपयोगकर्ताओं
Your ad here below?
Website Version

Download latest
PHP Fusion Package
This Website is using PHP Fusion v7.02.07 as Current Version.

· BetterClimate.Net
· ComplaintSupport.Com
· Daily-Breaking-News.Com
· Kidiot.Org
· Php-Fusion.Asia
· Php-Fusion.Cn
· Php-Fusion.Fr
· Php-Fusion.Org
· Php-Fusion.Start-Pages.Com
· Rain-Radar.Com
· Speed-Testing.Net
· Start-Pages.Com
· WebhostingTrouble.Com
· WebmasterTrouble.Com
681,025 unique visits