The Tricky.net

Forum
Welcome, Guest
Please Login or Register.    Lost Password?
message to authors only (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: message to authors only
#344
message to authors only 1 Year, 2 Months ago  
Hi,

I need to change the possibility to send messages to admin only to authors only.

Could you tell me where I should look to modify the fonction?

Thanks in advance.

Regards.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
  Reply Quote
#345
Killy ()
User Offline Click here to see the profile of this user
Re:message to authors only 1 Year, 2 Months ago  
Sorry, made a mistake using the inscription thingy.

Im the previous poster.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
  Reply Quote
#346
Killy ()
User Offline Click here to see the profile of this user
Re:message to authors only 1 Year, 2 Months ago  
Nevermind, I found how to do that using a previous post.

Here's the code (changes should be made to the file "models/message.php", + means add, - means remove):
At line 74:
Code:

- if($curUser->usertype=="Super Administrator"||$curUser->usertype=="Administrator"||$curUser->usertype=="Manager") + if($curUser->usertype=="Author")
At line 78:
Code:

- $query = $query." AND (usertype LIKE '%Administrator%' OR usertype LIKE '%Manager%')"; + $query = $query." AND (usertype LIKE 'Author')";
At line 86:
Code:

- if(!isset($reversedTypes[$toType[$i]])){ - $toType[$i] = "Registered"; - }
At line 243 (after deleting previous lines):
Code:

- $query = $query." AND (usertype LIKE '%Administrator%' OR usertype LIKE '%Manager%')"; + $query = $query." AND (usertype LIKE 'Author')";
*** This message was edited to highlight the changes that have been made. ***
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
 
Last Edit: 2009/06/29 18:46 By Sander.
  Reply Quote
Go to top Post Reply
Powered by FireBoard

Fly.net Artisan maçon