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

[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
#12

[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
#13

[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
#14

[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’);


#15

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

[eluser]anupwankhede[/eluser]
In db, what these fields 'status' & 'priority' specify?
#17

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

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

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

#20

[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




Theme © iAndrew 2016 - Forum software by © MyBB