Skip to Content Skip to Menu

Need Code for Custom Module with uddeIM

  • bezworks
  • bezworks
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 3 months ago #70913 by bezworks
Need Code for Custom Module with uddeIM was created by bezworks
I have taken some of the code from the uddeIM source and placed it inside of a module that parses PHP. What I've simply done is display the number of messages a user has. But it's not working as I hoped it would. What I want it to do is show the number of UNREAD messages only. Right now it displays a number for the total messages in the inbox (much like the module that comes with uddeIM).

Is there a way to only show the number of unread messages? And if there aren't any unread messages, to just show zero?

I only need this specific piece of code so that I can place it in a very specific module position (don't need the module that came with uddeIM, as it doesn't fit with the template of my site. Thanks!

I have Joomla 1.5.x and CB 1.2 RC2.

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
16 years 3 months ago #70919 by nant
bezworks wrote:

I have taken some of the code from the uddeIM source and placed it inside of a module that parses PHP. What I've simply done is display the number of messages a user has. But it's not working as I hoped it would. What I want it to do is show the number of UNREAD messages only. Right now it displays a number for the total messages in the inbox (much like the module that comes with uddeIM).

Is there a way to only show the number of unread messages? And if there aren't any unread messages, to just show zero?

I only need this specific piece of code so that I can place it in a very specific module position (don't need the module that came with uddeIM, as it doesn't fit with the template of my site. Thanks!

I have Joomla 1.5.x and CB 1.2 RC2.


You could take a look at the CB login module that has similar code in it.

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

  • bezworks
  • bezworks
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 3 months ago #70921 by bezworks
Replied by bezworks on topic Re:Need Code for Custom Module with uddeIM
That's exactly what I'm doing, but I don't know what to keep and what to throw away. I'm getting errors over here. :) Any ideas yourself? Thanks!

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

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 3 months ago #70930 by slabbi
Replied by slabbi on topic Re:Need Code for Custom Module with uddeIM
Have a look into mod_uddeim_mailbox. There you will find all SQL queries you need.

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

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

  • bezworks
  • bezworks
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 3 months ago #70932 by bezworks
Replied by bezworks on topic Re:Need Code for Custom Module with uddeIM
I was able to get it to work show the total messages, but I need it to tell only the total unread messages. I'm not that versed in programming, so any help or code snippets that I can use would be helpful.

Basically all I need is this:


IF unread messages
--> show number of unread messages
ELSE
--> display 0 (zero) as the number of messages




Any help is appreciated!

Thanks!

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

  • bezworks
  • bezworks
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
16 years 3 months ago #70991 by bezworks
Replied by bezworks on topic Re:Need Code for Custom Module with uddeIM
slabbi wrote:

Have a look into mod_uddeim_mailbox. There you will find all SQL queries you need.

Any ideas? Thanks!

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum