FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Error : Invalid group id when Mass Emailing
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re : Re: Re : Re: Error : Invalid group id when Mass Emailing [message #29716 is a reply to message #29714] Tue, 10 January 2006 22:00 Go to previous messageGo to previous message
blemish is currently offline  blemish   France
Messages: 13
Registered: October 2005
Location: France
Karma:
Junior Member

Great ! Thank you very much ! Smile

But ... Sad

I checked PM & "Send to all forum moderators" and every modo received 1 PM per forum (4 modos, 24 forums = 96 PM !).

What do you think about adding some DISTINCT to this :

	} else if ($gid == $all_mods) {
		$c = uq('SELECT '.$fld.' FROM '.$DBHOST_TBL_PREFIX.'mod m INNER JOIN '.$DBHOST_TBL_PREFIX.'users u ON u.id=m.user_id '.(isset($_POST['ignore_override']) ? '' : ' WHERE (users_opt & 8)=0'));

like :
	} else if ($gid == $all_mods) {
		$c = uq('SELECT DISTINCT '.$fld.' FROM '.$DBHOST_TBL_PREFIX.'mod m INNER JOIN '.$DBHOST_TBL_PREFIX.'users u ON u.id=m.user_id '.(isset($_POST['ignore_override']) ? '' : ' WHERE (users_opt & 8)=0'));


And probably the same trick for group leaders ... ?
Thank you again & again for your valuable help !
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Topics show above Announcements and Stickies + Consistency Check
Next Topic: Division by Zero in Compact Message
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 09:30:52 GMT 2024

Total time taken to generate the page: 0.03905 seconds