Welcome, Guest. Please Login or Register.
May 03, 2025, 12:02:22 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  IM all members « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: IM all members  (Read 730 times)
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
IM all members
« on: April 10, 2002, 05:21:59 PM »
Reply with quote

Like the feature to email all your members, I think the ability to instant message them would be a good idea. I personally would use it for announcements, sort of like a newsletter. I know some of my members do not use email regularly, but they use the forum on a daily basis. Would this be hard to do? I was thinking either you could have it use a wildcard to send it to everyone (although the query may not work with this) or have it cycle through all the member IDs and send IMs to them.
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:IM all members
« Reply #1 on: April 10, 2002, 09:18:06 PM »
Reply with quote

I think an easier way to do it would be just to add a link in the mod settings area and have it just link to the PM function but automatically put in all the users names, whether this would be practical or not I'm not sure, but it sounds easier. Maybe this can be my next mod, we'll see :)
Logged
Krip730
Full Member
***
Posts: 128


ICQ - 59900494 WWW
Re:IM all members
« Reply #2 on: April 11, 2002, 01:14:22 AM »
Reply with quote

Quote from: Mach8 on April 10, 2002, 05:21:59 PMLike the feature to email all your members, I think the ability to instant message them would be a good idea. I personally would use it for announcements, sort of like a newsletter. I know some of my members do not use email regularly, but they use the forum on a daily basis. Would this be hard to do? I was thinking either you could have it use a wildcard to send it to everyone (although the query may not work with this) or have it cycle through all the member IDs and send IMs to them.

that is a great idea !
Logged

Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:IM all members
« Reply #3 on: April 11, 2002, 08:02:53 AM »
Reply with quote

That's one way to do it, Anonymous Jedi, but the only problem with that is if you have LOTS of members... I'm talking 500+. Either the textbox where you enter the usernames won't hold them all, or it'll be quite slow to process.

:-\
Logged
thetaxiforums
Jr. Member
**
Posts: 54


taxi drivers do it with the meter running

WWW
Re:IM all members
« Reply #4 on: April 11, 2002, 10:42:22 AM »
Reply with quote

cracking idea ;D ;D
Logged

Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:IM all members
« Reply #5 on: April 11, 2002, 02:42:03 PM »
Reply with quote

Mach, true, but do you have any other ways of doing it? Where it's any faster? ;)

Although you are right about the fact that it might not hold all of those usernames, maybe it could be tested to see how many it can hold and just determine whether you have more members than it can hold, if it does it'll auto-create another text box continuing the line of usernames, although this may require a good ammount of changing to the IM system itself. Can't tell exactly or not because I'm just now starting to familarize myself on the workings of YaBB (would of started with gold, but I don't know Perl.) This may be a project for me later on, I'm not sure, we'll see if I have any ideas first and what goes on with my mute users mod.
Logged
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:IM all members
« Reply #6 on: April 11, 2002, 02:54:41 PM »
Reply with quote

I don't see what's wrong with my initial idea of using wildcards... that way it would match up with all users. Just got to modify the query slightly to take this into account.
Logged
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:IM all members
« Reply #7 on: April 11, 2002, 10:12:17 PM »
Reply with quote

You know, I must of been really tired when I made the first reply, but your right, wild cards should work :)
Logged
mediman
Support Team
YaBB God
*****
Posts: 2858


WWW
Re:IM all members
« Reply #8 on: April 11, 2002, 10:26:27 PM »
Reply with quote

best way is to use an wildcard like toallusers or something like that!

medi
Logged

mainComm Dev Team
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:IM all members
« Reply #9 on: April 12, 2002, 10:31:52 AM »
Reply with quote

Looking at the instant messages table at the minute, it seems both a member ID and the member name is stored... so perhaps the member ID should be a wildcard and the member name be something generic like "Forum Members"
Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:IM all members
« Reply #10 on: April 13, 2002, 02:35:43 AM »
Reply with quote

after you delete a member, does it recount the memid?  If so, you can just get the last id :)
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
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:IM all members
« Reply #11 on: April 13, 2002, 09:44:08 AM »
Reply with quote

I've got an idea! I'll check the code in a minute but I think it would work by changing the query slightly.

At the minute (this is what I check) I think the query prints all messages to screen that EQUAL the logged in user's ID. What if you added in:

OR id= -456

The number is deliberately negative to prevent the forum tampering with it, and then the IMs could be sent to that ID... that way every member would get it in addition to their normal IMs.
Logged
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Re:IM all members
« Reply #12 on: May 08, 2002, 08:10:12 AM »
Reply with quote

So long as you don't create multiple messages - that would bloat the database enormously!
Logged

You can't have everything... where would you put it? -- Steve Wright
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:IM all members
« Reply #13 on: May 08, 2002, 10:40:52 AM »
Reply with quote

groundup, there's a small bug with that. If it got the last ID number every time and just did a for loop until that number, you could have a lot of blanks when you have deleted a member. Remember, mySQL doesn't update the IDs, so if you were to delete member 3 you would be trying to send a message to someone that doesn't exist any more.
Logged
Greg Robson
Training to be like Joseph
YaBB SE Developer
YaBB God
*****
Posts: 1459


Hello!

ICQ - 81390136 WWW
Just a thought...
« Reply #14 on: May 08, 2002, 10:59:35 AM »
Reply with quote

With people wanting to send to multiple recipients, shouldn't the DB structure be like this...

instant_message
id
body etc.

IM_send
id_send (unique key)
id_from (from member ID)
id_to (to member ID)
new (has the user read the message)
deleted (has the user deleted the message)

This way you can have one copy of the message and loads of small records showing who has been sent which message.

N.B. You may not want the deleted field as it would be easier to delete the record, however this allows you to have a trash can facility :)
Logged

You can't have everything... where would you put it? -- Steve Wright
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  IM all members « 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.066 seconds with 20 queries.