By TSNetwork on
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
I tried adding the string to
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..
Try
Try http://api.drupal.org/api/function/drupal_set_message/6
Thanks. I tried it but I'm
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...
Anyone?
Anyone?
Still no solution...
Still no solution...
_
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.
I know bumping isn't great,
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.