Mahana Messaging Library |
[eluser]jmadsen[/eluser]
ah, I see what you did, but it was unnecessary if you look in the config file, mahana.php, you'll see these are already aliased: define('USER_TABLE_TABLENAME', 'users u'); define('USER_TABLE_ID', 'u.id'); define('USER_TABLE_USERNAME', 'CONCAT(u.first_name, " ", u.last_name) as user_name'); --- recipients is simple - either give ti a user_id, or give it an array of user_ids. The library does the rest
[eluser]jmadsen[/eluser]
[quote author="CI-Newb" date="1350628572"]would love to see a version of this build around datamapper [/quote] I've never worked with datamapper to be honest. might be interesting thinking more to build a simple HMVC module to dump into CI Bonfire or anywhere else
[eluser]anupwankhede[/eluser]
[quote author="jmadsen" date="1350634301"]ah, I see what you did, but it was unnecessary if you look in the config file, mahana.php, you'll see these are already aliased: define('USER_TABLE_TABLENAME', 'users u'); define('USER_TABLE_ID', 'u.id'); define('USER_TABLE_USERNAME', 'CONCAT(u.first_name, " ", u.last_name) as user_name'); --- recipients is simple - either give ti a user_id, or give it an array of user_ids. The library does the rest[/quote] Actually my users table has field user_name & not first_name & last_name
[eluser]jmadsen[/eluser]
that's what the config file is for - I'm assuming everyone will have a different table layout & names for their users, so you set it here and the model reads it into the queries without issue so make it: define(‘USER_TABLE_USERNAME’, ‘user_name’);
[eluser]anupwankhede[/eluser]
[quote author="jmadsen" date="1350635378"]that's what the config file is for - I'm assuming everyone will have a different table layout & names for their users, so you set it here and the model reads it into the queries without issue so make it: define(‘USER_TABLE_USERNAME’, ‘user_name’); [/quote] If not done , it was giving me sql error of ambiguous for user_id.
[eluser]anupwankhede[/eluser]
In db, what these fields 'status' & 'priority' specify?
[eluser]jmadsen[/eluser]
Sorry, I think it's time you read the source code a little and work some things out for yourself. There are instructions right here in the README: https://github.com/jrmadsen67/Mahana-Mes...odeIgniter and it's all open source for you to read, and everything is heavily commented. Its been up for a over a year & never had any bug reports. I don't see anything that isn't very clear & obvious if you put in some effort.
[eluser]anupwankhede[/eluser]
[quote author="jmadsen" date="1350644809"]Sorry, I think it's time you read the source code a little and work some things out for yourself. There are instructions right here in the README: https://github.com/jrmadsen67/Mahana-Mes...odeIgniter and it's all open source for you to read, and everything is heavily commented. Its been up for a over a year & never had any bug reports. I don't see anything that isn't very clear & obvious if you put in some effort. [/quote] I am using mysqli driver. May be this giving error.
[eluser]anupwankhede[/eluser]
Can I use 'status' field for identifying inbox & sent messages? I want to know how I identify 'received', 'sent', 'read' & 'unread' messages? Please give me suggestion.
[eluser]jmadsen[/eluser]
Well, a mere 2 years after first putting the library up on github, a little more verbose explanation of the setup, schema and files. http://www.codebyjeff.com/blog/2013/02/m...ng-library as always, feedback welcome |
Welcome Guest, Not a member yet? Register Sign In |