CodeIgniter Forums
Mahana Messaging Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Mahana Messaging Library (/showthread.php?tid=43225)

Pages: 1 2 3


Mahana Messaging Library - El Forum - 07-04-2011

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

https://github.com/jrmadsen67/Mahana-Messaging-library-for-CodeIgniter


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!


Mahana Messaging Library - El Forum - 09-10-2012

[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


Mahana Messaging Library - El Forum - 09-10-2012

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

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


Mahana Messaging Library - El Forum - 09-16-2012

[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!


Mahana Messaging Library - El Forum - 10-18-2012

[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


Mahana Messaging Library - El Forum - 10-18-2012

[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?


Mahana Messaging Library - El Forum - 10-18-2012

[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


Mahana Messaging Library - El Forum - 10-18-2012

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

Can you give me guideline for implementing recepients level.


Mahana Messaging Library - El Forum - 10-18-2012

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


Mahana Messaging Library - El Forum - 10-18-2012

[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.