UBB.Dev
Posted By: Robje Fetch usergroupid in sendmessage - 03/21/2009 4:52 PM
Can onyone tell me how to fetch the GROUP_ID from ubbt_USER_GROUPS for current user in sendmessage?
Got it working in viewmessage, but don't know how to fetch it here..

Rob
Posted By: Robje Re: Fetch usergroupid in sendmessage - 03/21/2009 5:04 PM
Actually i want to enable HTML in PM for usergroups.
I added this option in the control panel and that works, but i hope i can enable it in my viewmessage and sendmessage.

Rob
Posted By: blaaskaak Re: Fetch usergroupid in sendmessage - 03/21/2009 9:18 PM
Best thing permission wise would not be to check group membership, but to actually add the permission to the permission matrix and check on that.
Posted By: Robje Re: Fetch usergroupid in sendmessage - 03/22/2009 1:14 AM
Okay, that's done.

I added a new option with predefined PM replies. Problem was that you cannot use the $STRING with
and other html tags, even linebreaks between the quotes are not permitted. Now i solved it for the admin's or the groups i permit to get the predefined messages with one click.

p.s. didn't know that sendmessage.inc.php is not in use anymore (i guess) only mess_reply.inc.php

Thnx Yarp™
© UBB.Developers