Welcome Guest, Not a member yet? Register   Sign In
Mahana Messaging Library
#1

[eluser]jmadsen[/eluser]
Introducing the Mahana Messaging Library!

https://github.com/jrmadsen67/Mahana-Mes...odeIgniter


Not sure how "ignited" this code is, but I hope someone will find it helpful/time-saving. I've been reading a lot of posts lately asking about how to get started creating an internal messaging system, and so I thought I would formalize and share some typical code I use.

There are no controllers or views - I think that is too dependent on the particular app, and so I don't really have any plans to include one.

Please let me know any bugs or ideas for improvement in the code or instructions.

Thanks!
#2

[eluser]janson0[/eluser]
I know this is a long dead thread, but I really appreciate this library!!

I will let you know once I get it fully integrated so you can check out your cool handiwork in action Smile
#3

[eluser]jmadsen[/eluser]
Thanks! :-)

Been a long time since I've done anything with it - let me know if have any trouble
#4

[eluser]janson0[/eluser]
Thanks Jeff. I'm rewriting a lot of it because I am using a json approach to storing the threads and messages. I am basically just using your messaging system as a bit of a guide. Do you mind if I do that and keep your credit in the code?

I'll let you know how it turns out!
#5

[eluser]jmadsen[/eluser]
A small addition:

function get_msg_count() - returns integer with count of message for user, by status. defaults to new messages

pretty simple addition that just lets you put a "new messages" flag on the home page.

have a few additions I'm considering - thinking to build this library up a bit more. if anyone using it (or thinking about it) has a request, give me a shout
#6

[eluser]anupwankhede[/eluser]
Thanks a lot for this very well written library.
I did one correction: while joining users table i did it with
Code:
' JOIN ' .USER_TABLE_TABLENAME. [b]' u ON (u.'[/b].USER_TABLE_ID.'
instead of
Code:
' JOIN ' .USER_TABLE_TABLENAME. ' ON ('.USER_TABLE_ID.', to prevent error.

I have one query for you:
If I want to add cc field in messaging, which tables & functions I should update?
#7

[eluser]jmadsen[/eluser]
hi @anupwankhede

thanks for that - can you tell me what line & function that was in so I can take a look?

Re: cc,

I don't really have it set to show people at different "levels", if that's your concern, but to simple copy more than one person on a message, use $recipients and feed it an array of user ids in the send_message() function
#8

[eluser]anupwankhede[/eluser]
I did it wherever we have joined users table with user_id.

Can you give me guideline for implementing recepients level.
#9

[eluser]CI-Newb[/eluser]
would love to see a version of this build around datamapper
#10

[eluser]anupwankhede[/eluser]
[quote author="jmadsen" date="1350627669"]hi @anupwankhede

thanks for that - can you tell me what line & function that was in so I can take a look?

Re: cc,

I don't really have it set to show people at different "levels", if that's your concern, but to simple copy more than one person on a message, use $recipients and feed it an array of user ids in the send_message() function[/quote]

I did it wherever we have joined users table with user_id.

Can you give me guideline for implementing recepients level.




Theme © iAndrew 2016 - Forum software by © MyBB