141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Google's Highly Open Participation Program tries to get young students into Open Source and Joomla! specifically. Everyone is welcome, there are not limits. You can be a coder, documenter, tester, translator to help out. Jump in and start helping!
User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Thu Jan 03, 2008 7:44 pm

Hi,

I have already done tasks 127 and 130, so no need to introduce myself  ;D

Sander Kromwijk
Last edited by AmyStephen on Tue Jan 29, 2008 8:55 pm, edited 1 time in total.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Thu Jan 03, 2008 9:06 pm

Hi,

JWChat needs http polling or http binding to work. The programs who can do this require access to the apache config file, and some need tomcat or python installed. If I write an extension, it will only work for people who have their own server or at least one where they can install programs (-> root access), which makes it impossible to use for most poeple who have a virtual web server.

Sander Kromwijk
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by AmyStephen » Thu Jan 03, 2008 11:17 pm

Ew. Not good.  :P

This is the second "wish list" item that didn't turn out well.

What about Jabber integration?

http://www.phpclasses.org/browse/package/995.html

http://www.phpbb.com/community/viewtopic.php?t=43942

What do you think?

Amy

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Fri Jan 04, 2008 3:14 pm

What do you mean? Do you want a button that brings you to a vcard of the author in Jabber (as in the phpBB conversation) or a Jabber client using the jabber.class.php class?

Sander Kromwijk
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by AmyStephen » Fri Jan 04, 2008 3:19 pm

I just did a quick search on what I hoped might be a workable extension to provide chat ability on a site.

No button for vcard.

What are your thoughts on the jabber.class.php class? What could you provide with that? What is your interest in doing so?

We are reinventing your task, here, so please let me know what is of interest. You could also look around - see what you think might be good. Do not hesitate to recommend something.

Thanks!
Amy :)

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Fri Jan 04, 2008 3:53 pm

I've looked at the classes, but a jabber or a XMMP server is always necessary. The only way I could make a chat program, is if the user has such a server installed or can install programs on the server.

Sander Kromwijk
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by AmyStephen » Fri Jan 04, 2008 4:09 pm

Sander -

One thing people ask about a lot is a Private Messaging System for J! v 1.5.

What if you designed a way that users on a Joomla! website could message one another? It could be like the forum's private mail, add email capability, if they choose?

Kevin Devine has a User Meta System Plugin that allows you to define parameters for the User that might be helpful too.

Just brainstorming - but if you are up for this challenge - it WOULD get use.

Amy :)

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Fri Jan 04, 2008 4:27 pm

Ok, I think I can try. What kind of extension should it become (component or a module, I haven't understood the difference yet)?

Sander
Last edited by SanderKromwijk on Fri Jan 04, 2008 9:24 pm, edited 1 time in total.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by AmyStephen » Sun Jan 06, 2008 6:42 am

Cool! Thanks Sander. I look forward to watching your progress!

Amy :)

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Sun Jan 06, 2008 2:07 pm

Hi,

Here's my first version.

Sander
You do not have the required permissions to view the files attached to this post.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Sun Jan 06, 2008 7:59 pm

Hi,

Here's my second version. It is now possible to send the same message to multiple users by seperating their names by a comma (no space after the comma).

Sander
You do not have the required permissions to view the files attached to this post.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by AmyStephen » Sun Jan 06, 2008 8:12 pm

I sure do love what you have so far. It made me SMILE and I really needed a smile today, so thanks so much.

This is a very advanced task!

The send and receive worked great - I can send a member a note - and they can get it. Woot!!!!

Now, I assume as you continue, you will break that apart into a MVC framework, create a router for your component and hook into the core router so that all the various types of URLs work. For example, getting the display put into a layout file will make this component ready for template overrides - for those who don't want tables.

It would also be nice to have a user list to choose from, if possible.

There are things that could be offered using Kevin's User Meta Plugin, too, where someone could request PM's are emailed or not, or that they are even possible, or not.

But, I am guessing you are already thinking of such things and it is *very* impressive to see what you have accomplished in such a short period of time.

In terms of popularity, this will be RED HOT. There are CONSTANT posts in the forums looking for a J! v 1.5 Private Messaging System. Amazing work already.

Thanks so much,
Amy :)

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Sun Jan 06, 2008 8:15 pm

AmyStephen wrote: Now, I assume as you continue, you will break that apart into a MVC framework, create a router for your component and hook into the core router so that all the various types of URLs work. For example, getting the display put into a layout file will make this component ready for template overrides - for those who don't want tables.
??? I haven't quite understood the part about the MVC framework and the router part.

Sander
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 141 - Implement JWChat as a Joomla! v 1.5 extension(s) (Advanced)

Post by AmyStephen » Sun Jan 06, 2008 8:47 pm

Look closely at com_weblinks and still if the structure makes sense.

Also, Ian put together a tutorials series on MVC. (Hello World MVC 1 Component through Hello World MVC 4 Component).

We might be able to get his assistance if you have specific questions, too. Given your obvious skill and since I believe this will be very popular, I recommend you look at this framework for this component.

Do not hesitate to ask questions as you go along, too. It will also help others learn as they follow along.

Amy :)

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Mon Jan 07, 2008 8:40 pm

Hi,

Does the MVC framework also work with editing on the "client" side, which is necessary for my program? Because then the toolbar buttons don't exist, so I think it will be a bit harder. Would it also be OK if I make my own code without controller, but which supports templates?

Sander
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Mon Jan 07, 2008 8:45 pm

Hi,

Is it possible to merge two extensions? For example, put the UserMeta extension in the extension so it installs with only one file. Or put a module and a component in one package.

Sander
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
ianmac
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4784
Joined: Sat Sep 24, 2005 11:01 pm
Location: Toronto, Canada

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by ianmac » Mon Jan 07, 2008 9:14 pm

SanderKromwijk wrote: Hi,

Does the MVC framework also work with editing on the "client" side, which is necessary for my program? Because then the toolbar buttons don't exist, so I think it will be a bit harder. Would it also be OK if I make my own code without controller, but which supports templates?

Sander
Yes, you can do anything with the MVC framework that you can do in a component using the old design pattern.

How are you calling your component from the frontend now?

We would like to see the component designed in MVC.

Ian

User avatar
ianmac
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4784
Joined: Sat Sep 24, 2005 11:01 pm
Location: Toronto, Canada

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by ianmac » Mon Jan 07, 2008 9:15 pm

SanderKromwijk wrote: Hi,

Is it possible to merge two extensions? For example, put the UserMeta extension in the extension so it installs with only one file. Or put a module and a component in one package.

Sander
No, that is not possible in the current release.

Ian

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by AmyStephen » Mon Jan 07, 2008 9:29 pm

Sander -

On the UserMeta extension, it's best to add instructions for the site developer to install it and how to add specific parameters you require. It is a good extension to create a group blog/social networking app using Joomla! and your component will likely be just one of many extensions configured "per person."

I agree with Ian on the MVC preference and, given the resources mentioned, and with Ian's help, I absolutely believe you are capable of doing that. There are lots of benefits to doing it that way, one of which I already mentioned with the ability to define different layout files.

This is already looking like an amazing extension, Sander. Good work!
Amy :)

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by AmyStephen » Wed Jan 09, 2008 6:19 pm

Sander -

Want some assistance thinking through how best to split this into an MVC component - and module. Or, are you doing okay? Don't forget, we are here to help you be successful with your task. It holds much value for the community.

Thanks, again!
Amy :)

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Wed Jan 09, 2008 8:24 pm

Hi,

I haven't managed to rewrite the component in the MVC framework yet. I've been trying to start off from the Hello World tutorial, but now each time I try to install, the program tells me it can't find the install file.

Sander
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Wed Jan 09, 2008 9:00 pm

Hi,

The problem I mentionned above was an error I made. I forgot to close an xml tag.  :-[
But now I have another problem. When I try to install, the installer returns the following error message: "# Component Install: SQL error or missing or unreadable SQL file. DB function reports no errors". I've checked the mysql files in phpmyadmin, but they work. Could someone help?

Sander
You do not have the required permissions to view the files attached to this post.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Thu Jan 10, 2008 6:53 pm

Hi,

For some reason the install works fine now. I really don't understand this as I haven't changed the file since the last time I tried, but it works. I'll have to debug it a little, then I'll post it.

Sander
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by AmyStephen » Thu Jan 10, 2008 6:59 pm

Sorry, Sander!  :-[

I'm glad you are moving forward, though. Thanks!

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Thu Jan 10, 2008 7:38 pm

Hi,

How can I insert an entry into a mysql table? I took the code from the HelloWorld tutorial, but it won't work. It returns "Table message not supported. File not found.", but the class TableMessage exists and is declared. The file is also at the right place (tables/message.php). What could the problem be?

Sander
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7018
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by AmyStephen » Thu Jan 10, 2008 7:41 pm

Sander -

Can you link me to the tutorial you are using, and I will try to catch up and go through it as you are going through it? That way, I'm not so lost when you have a question.

Did you start on the Developing a Model-View-Controller Component - Part 1 page? And, if so, what step are you now on?

Thanks!
Amy :)

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Thu Jan 10, 2008 8:03 pm

Hi,

I was using the Model-View-Controller Component tutorial. I'm currently using the code of the 4th part. (http://dev.joomla.org/component/option, ... orld_mvc4/)
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Fri Jan 11, 2008 6:34 pm

Hi,

I converted a part of the messaging program into the MVC framework. But there are parts that won't work:
- When sending a message, it reports it doesn't find the table file.
- When you click on a message, you should be brought to a view of the message. But the program returns the new message form. It doesn't even seem to call the ViewMessage model.

So here is the program with these (very slight  :P) bugs. Could someone help me?

Sander
You do not have the required permissions to view the files attached to this post.
Last edited by SanderKromwijk on Fri Jan 11, 2008 6:37 pm, edited 1 time in total.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details

User avatar
depresz
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 104
Joined: Thu Nov 29, 2007 4:14 pm
Location: Piotrków Trybunalski, Poland
Contact:

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by depresz » Fri Jan 11, 2008 9:13 pm

It's so interesting extension. I have to take a look on it.
Tommorow I'll give you an anserw.
Great Hacking Opportunity Project
numbers? sure! 3d 22h on forum, about 500h of work <- this is real GHOP

User avatar
SanderKromwijk
Joomla! Intern
Joomla! Intern
Posts: 68
Joined: Thu Dec 13, 2007 2:59 pm

Re: 141 - Implement Private Messaging as a Joomla! v 1.5 extension(s) (Advanced)

Post by SanderKromwijk » Fri Jan 11, 2008 10:10 pm

Hi,

Thanks for offering help depresz! But I've found a way to work around the problem. It now works. Here is the new version. It is possible to send messages and to read them. I will now work on the possibility to delete messages.

Sander
You do not have the required permissions to view the files attached to this post.
Simple and elegant messaging. Download the Messaging extension for Joomla! See http://extensions.joomla.org/extensions/4026/details


Locked

Return to “Google's Highly Open Participation Contest”