(Javascript) condition: new private message

Go down

Solved (Javascript) condition: new private message

Post by Niko on May 21st 2014, 9:32 pm

Hello

I would like to make a popup (not the forumotion one) appear when a member has a new private message

I have the toolbar active, but it seems that there are no variables concerning new private messages

Cna you help me? :rose:


Last edited by Niko! on May 21st 2014, 9:55 pm; edited 1 time in total
avatar
Niko
Hyperactive

Male Posts : 2299
Reputation : 98
Language : English, French, Italian, Spanish, Latin

Back to top Go down

Solved Re: (Javascript) condition: new private message

Post by SLGray on May 21st 2014, 9:40 pm

Members can set it in their profiles.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 43471
Reputation : 3086
Language : English
Location : United States

http://fmthemesdesignteam.forumotion.com/

Back to top Go down

Solved Re: (Javascript) condition: new private message

Post by Ange Tuteur on May 21st 2014, 9:43 pm

Hello Niko,

Are you wanting to alert new toolbar notifications, or just private messages. If it's just private messages are you using the default navbar ?

Thank you for providing the needed information.
avatar
Ange Tuteur
Forumaster

Male Posts : 13201
Reputation : 2917
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: (Javascript) condition: new private message

Post by Niko on May 21st 2014, 9:45 pm

this is what I'd like to have


if a member has a new private message, a customized html popup is shown thumleft


Thank you anyway, I managed to do it  Mr. Green  Lol  Mr. Green

Code:
$(window).load(function() {
  var pmnumber = document.getElementById("i_icon_mini_new_message").title.split(" ")[2];
if(Number(pmnumber) > 0 && _userdata["user_posts"] > 1){
      $('#fa_toolbar').before('HTML CONTENT HERE');
}
});
avatar
Niko
Hyperactive

Male Posts : 2299
Reputation : 98
Language : English, French, Italian, Spanish, Latin

Back to top Go down

Solved Re: (Javascript) condition: new private message

Post by Sir Chivas™ on May 21st 2014, 10:00 pm

Thank you for providing the answer, Niko.

Topic Locked & Solved.
avatar
Sir Chivas™
Support Moderator
Support Moderator

Male Posts : 6810
Reputation : 433
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum