The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

(Javascript) condition: new private message

View previous topic View next topic 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 : 2298
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 : 38038
Reputation : 2564
Language : English
Location : United States

http://ztwds.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 : 13072
Reputation : 2743
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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 itMr. GreenLolMr. 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 : 2298
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 : 6792
Reputation : 431
Language : EN, FR, ES
Location : || CSS || HTML || Graphics Designs || Support ||

Back to top Go down

View previous topic View next topic Back to top


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