Skip to Content Skip to Menu

Intergrate UddeIM to module

13 years 2 months ago #177272 by Penfold100
Intergrate UddeIM to module was created by Penfold100
Hi,

I have created a module for my site members. Is it possible to add uddeIM within that module so how and if so what do i need to do coding wise?

I would like to code uddeIM directly into my module rather than just include the notifier module within mine.

Many Thanks

CHRIS

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 2 months ago #177279 by slabbi
Replied by slabbi on topic Re: Intergrate UddeIM to module
There are two ways:
1. You can call uddeIM using a link
2. You can use uddeIM API
Both are exlained in the FAQ document.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

13 years 1 month ago #177546 by Penfold100
Replied by Penfold100 on topic Re: Intergrate UddeIM to module
Hi Slabbi,

Cheers for that and sorry - i had not read all of the FAQ document properly :blush:

I have managed to include uddeIM in my module using the API just wonder if you can help with one problem i have run into - it is my code rather than the component.

How do i get the $uddeim->getInboxUnreadMessages($userid) function to give the number of messages for the currently logged in user?

Do i need to do some sort of SQL count based on the toid?

Any help appreciated

CHRIS

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
13 years 1 month ago #177554 by slabbi
Replied by slabbi on topic Re: Intergrate UddeIM to module
function uddeIMgetUserID() {
$user =& JFactory::getUser();
return $user->id;
}

You can also use uddeIM's libraries for that.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum