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

26-04-2018 22:26
Hello

24-07-2017 21:53
Hello all members.
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

Wanabo
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.026 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.026 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.027 seconds, using GeSHi 1.0.8.10

Edited by Wanabo on 09-03-2011 02:19
Cool
 
Ankur
.....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
 
www.php-fusion.in
Jump to Forum:
New Thread Post Reply
Gebruik BBcode of HTML om naar; '[MOD]Messages.php no limits for user groups', te verwijzen!
BBcode:
HTML:
उपयोगकर्ता ऑनलाइन
· अतिथि ऑनलाइन: 1

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

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

पासवर्ड



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

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

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

Portfolio
· 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
599,438 unique visits