Welcome, Guest. Please Login or Register.
April 19, 2024, 07:02:09 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1] Send Email/IM By Member Group 1.3 « previous next »
Pages: [1] 2 3 Reply Ignore Print
Author Topic: [Done 1.4.1] Send Email/IM By Member Group 1.3  (Read 10037 times)
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

[Done 1.4.1] Send Email/IM By Member Group 1.3
« on: September 26, 2002, 06:33:35 PM »
Reply with quote

So even though the "rules and regs" from almost a year ago said not to touch the Admin.php file for a couple of weeks but no update has been made about it... I went ahead and decided to release a mod that does just that.

I made a few changes to the Admin.php so that when you click on the "Email your Members" link you now get a list of Member Groups (that have members assigned) with check boxes.  When you click next, only the members in the selected groups will be in the address field for the email.

emailbygroupmod - updated 10/22/02

Updates:
10/14/02 - fixed a bug that was not showing the default member groups that are based on number of posts.

10/17/02 - fixed a bug that was not showing the Admin and GlobMod member groups if the display title has been changed.  Also added logic to create a moderators only (Not Global Mods) email group and put in filters to eliminate duplicate emails due to member fitting into more than one group.

10/22/02 - Added the option to send the members an IM rather than an email.  You must uninstall old version before installing this one!

Enjoy!

I should mention that be sure to back up your data before applying this, or any, mod.  As it is still in beta, I can offer no guarantee.  Everything I post works fine in my YaBB installation but your milage may vary.

-Jack
« Last Edit: March 04, 2003, 01:29:12 AM by Jack.R.Abbit » Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta 1.4.1] Send Email By Member Group 1.0
« Reply #1 on: October 14, 2002, 02:15:14 AM »
Reply with quote

Hi,

Great Mod, Just one thing missing realy - how can it be changed to so that it will detect all the membergroups off the table?

It only seems to have Admins and Global Moderators - but it would be nice to have all groups.

If thats not possible, can a third option which selects All members be added?

I did take a look at admin.php - but it kind of scared  me :o

Thanks for this.

Tony.
Logged

To the world - you are just one person, but to one person you are the world!
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Beta 1.4.1] Send Email By Member Group 1.0
« Reply #2 on: October 14, 2002, 04:10:49 PM »
Reply with quote

I am not seeing the same problem.  On my board, the mod lists each member group that has one or more members in it. This includes the custom added member groups.

Here is how it works: It queries the membergroup table and then for each member group in the table it queries for a list of members belonging to that group.  If it finds members in that group it lists it.  If it finds none it does not list it.  If you have properly added member groups and assigned members to those groups, I see no reason why it is not listing all the groups that have members in.

Also, this mod was built using YabbSE 1.4.1.  I have never used anything prior to this version therefore can not support anything prior.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:[Beta 1.4.1] Send Email By Member Group 1.0
« Reply #3 on: October 14, 2002, 04:52:54 PM »
Reply with quote

this is just a notice to all mod-makers (since you mentioned it).. it is perfectly okay to edit your admin.php
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta 1.4.1] Send Email By Member Group 1.0
« Reply #4 on: October 14, 2002, 04:58:05 PM »
Reply with quote

Hi,

I am using 1.4.1 and the only groups that I can see in the panel are admins and Gobal moderators.

All other members are in the groups that dictated by the amount of posts they have done.

For instance newbies = 10 posts or more

Am I doing something wrong?

Tony
Logged

To the world - you are just one person, but to one person you are the world!
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Beta 1.4.1] Send Email By Member Group 1.0
« Reply #5 on: October 14, 2002, 08:02:13 PM »
Reply with quote

OK I see the problem but I am not sure if it is a YabbSE bug or not.  I will look into it. I don't use the built in member groups based on number of posts so I did not realize that when a user advances through these levels, it is not reflected in their member profile.  Yabb should do that.  I'll see if there is a fix.  Sorry until then.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta 1.4.1] Send Email By Member Group 1.0
« Reply #6 on: October 14, 2002, 08:56:53 PM »
Reply with quote

Thanks Jack,

It much appreciated :)

Tony.
Logged

To the world - you are just one person, but to one person you are the world!
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Beta 1.4.1] Send Email By Member Group 1.1
« Reply #7 on: October 14, 2002, 11:35:33 PM »
Reply with quote

Tony,

fixed the problem.  see first post.

Thanks for using the mod and letting me know the problem.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta 1.4.1] Send Email By Member Group 1.1
« Reply #8 on: October 15, 2002, 09:35:41 AM »
Reply with quote

Hi Jack,

Thanks for fixing it.

Its the first time I have used yabb packs as I have heard that they mess up all the time.

I must say that I have used your yabb packs on my live board and my test board and they all work fine :)

Whats the best way to apply this yabbpack now that I have the old one installed? shall I just appply over the top?

Thanks again.
Tony.
Logged

To the world - you are just one person, but to one person you are the world!
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:[Beta 1.4.1] Send Email By Member Group 1.1
« Reply #9 on: October 15, 2002, 02:18:23 PM »
Reply with quote

Actually, I have heard both good and bad things about the YabbPak system.  But then again I have also heard good and bad things about BoardMod also.  So I decided to start by using the system that is built into the board itself.  I think a lot of times the "bad" results you get from mods are due to mods written to work for a specific board but don't translate well to aonther, modded board.  Just like what happened with this mod.   I can honestly say that the only times my board has been screw up was when I forgot to get the latest modded file from the server before I started makeing more changes so it wrote over the mod.  The Package Manager sems to doa  good job.  There are a few strange things about it when creating a mod, but they can be worked around and noone is the wiser.

The best thing to do is uninstall the previous mod, download the new mod aned reinstall it.  I don't know how board mod does it exactly, but with the "search and replace" and "search and add", if you apply a mod over itself, you will likely get duplicate entries where there was an add, and you will fail to find the things that have already been replaced.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta 1.4.1] Send Email By Member Group 1.1
« Reply #10 on: October 15, 2002, 02:28:06 PM »
Reply with quote

Thanks Jack.

I will try and use the Package Manager(Yabb Pack) removal feature then :)

I was just a bit hesitant about using it :)

Thanks Again.

Tony.
Logged

To the world - you are just one person, but to one person you are the world!
nferreri
Noobie
*
Posts: 45


Re:[Beta 1.4.1] Send Email By Member Group 1.1
« Reply #11 on: October 16, 2002, 04:31:21 PM »
Reply with quote

well, for some reason mine isn't showing the admins or global moderators.  it is, however, showing the custom groups.

I have these listed:

Bashful
Jr. Poster
Guild Member
Trial Member
Class Leader

It most definetely doesn't show all the post groups either.  Only 2 of them.  The other 3 are custom groups (not related to posts).

I'm gonna play around a bit and see if I can figure out what the problem is.
Logged
Coyote
YaBB God
*****
Posts: 702


I love YaBB SE!

Re:[Beta 1.4.1] Send Email By Member Group 1.1
« Reply #12 on: October 16, 2002, 04:34:55 PM »
Reply with quote

I noticed this,

What I did was go into the profile of a newbie - and change his status to ---------- instead of blank

It then detected Newbies

I have only tried this on my test board, not the live system.

I still need to update my live system with the new update :)

Logged

To the world - you are just one person, but to one person you are the world!
nferreri
Noobie
*
Posts: 45


Re:[Beta 1.4.1] Send Email By Member Group 1.1
« Reply #13 on: October 16, 2002, 04:46:03 PM »
Reply with quote

Well, apparently this method of code isn't going to work very well with anyone who has customized their group names.

This sytem takes all member group names from the membergroups table, then does a query to find all matches against that name from the members table.  If the group doesn't have any members in it then it won't display the group.

That logic is fine.. but for the case of Administrator and Global Moderator it's not going to work.

Global moderators are stored member group names as GLOBAL MODERATOR NOT the text displayed in the membergroups table.  Same for Admin.  It's stored as Administrator in the member table but this NOT the same as what a custom title would be in the membergroups table...

need special cases in the code for these instances.

Also, the moderator group isn't going to work unless you do special query to find out who has special access to forums.  I guess this one isn't too important though.

I'm gonna fiddle around with adding some more if statements and letcha know what I come up with.
Logged
nferreri
Noobie
*
Posts: 45


Re:[Beta 1.4.1] Send Email By Member Group 1.1
« Reply #14 on: October 16, 2002, 04:57:36 PM »
Reply with quote

I added these lines to the if statements and it seemed to work fine:

Quote         } else if ($curgroup == $membergroups[0]) {
            $rqst = mysql_query("SELECT emailAddress FROM {$db_prefix}members WHERE memberGroup='Administrator'");
         } else if ($curgroup == $membergroups[7]) {
            $rqst = mysql_query("SELECT emailAddress FROM {$db_prefix}members WHERE memberGroup='Global Moderator'");




Quote      } else if ($curgroup == $membergroups[0]) {
         $rqst = mysql_query("SELECT memberGroup,posts FROM {$db_prefix}members WHERE memberGroup='Administrator'");
      } else if ($curgroup == $membergroups[7]) {
         $rqst = mysql_query("SELECT memberGroup,posts FROM {$db_prefix}members WHERE memberGroup='Global Moderator'");


I guess these will work assuming everyone has Admin as ID #1 and Global Moderator as ID #8 which I'm pretty sure is the case.

please note:  the first else if is membergroups (left bracket)0(right bracket)

not quite sure how to make it so YaBB doesn't turn that into an ordered list.
« Last Edit: October 16, 2002, 05:17:02 PM by nferreri » Logged
Pages: [1] 2 3 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done 1.4.1] Send Email/IM By Member Group 1.3 « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.043 seconds with 20 queries.