Hello,
I want to have a message show up to the user (above the content) when the string pm_lite_unread() (it's from the PM lite module) returns higher than 0. Could you please give me an example on how can I achieve that?

Or simply DO SOMETHING if that variable returns higher than 0. Something like
if %pm_lite_unread() > 0 {do something};

I'm a beginner with that type of scripting...
Please help.

Thank you.

Comments

TSNetwork’s picture

I tried adding the string to a primary link title, but it doesn't show the result but the string instead. Why doesn't that work either? Help please..

hershel’s picture

TSNetwork’s picture

Thanks. I tried it but I'm not familiar enough with this kind of coding. If anyone can give me an example with code I would be really thankful...

TSNetwork’s picture

Anyone?

TSNetwork’s picture

Still no solution...

WorldFallz’s picture

Incessantly bumping a post several times in the same day tends to irritate the very people you're seeking assistance from.

That said, you might be able to do this with the http://drupal.org/project/rules module.

TSNetwork’s picture

I know bumping isn't great, I'm used to work things out on my own but in that case I can't, as I said I don't understand this type of scripting at all...

But yet I found the code I need, thanks everyone.