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.

New Message Announcement

View previous topic View next topic Go down

Solved New Message Announcement

Post by Histori on April 12th 2012, 4:25 am

Hey Forumotion team. This idea came to me after a member of my forum sent me a private message.

I won't go into the details, but the problem was that he sent me the message 2 days before I actually realized I had a private message. I had a custom navigation bar, so I was not notified that I had a new message. I also noticed that there is a small notifier in the Login module, but the way it's set up it is difficult for someone to easily notice.

My idea was to possibly have a very noticeable message on top of the Login module stating "You have a new message!". This link will then send you to your PM inbox. Once the message is read, the link goes away just as the PM system in the Navigation bar.

I'm sure this is possible, but I'm not a Javascript coder. Any assistance will be greatly appreciated.

Thanks for reading!


Last edited by Histori on April 14th 2012, 4:50 am; edited 1 time in total

Histori
New Member

Posts : 21
Reputation : 1
Language : English

http://killfaction.9forum.net/

Back to top Go down

Solved Re: New Message Announcement

Post by SLGray on April 12th 2012, 4:56 am

Members can go to their profiles and set the option for a pop up message to appear when they have a new private message. They will have to allow pop ups though.


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


SLGray
Administrator
Administrator

Male Posts : 36692
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: New Message Announcement

Post by Histori on April 12th 2012, 5:00 am

slg wrote:Members can go to their profiles and set the option for a pop up message to appear when they have a new private message. They will have to allow pop ups though.
Is there anyway in the admin panel I can make this automatic for all members?

Histori
New Member

Posts : 21
Reputation : 1
Language : English

http://killfaction.9forum.net/

Back to top Go down

Solved Re: New Message Announcement

Post by SLGray on April 12th 2012, 5:01 am

Sorry there is not a way to set it for all members.


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


SLGray
Administrator
Administrator

Male Posts : 36692
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: New Message Announcement

Post by Histori on April 12th 2012, 6:17 am

So is there anyway I can still do this idea? Because I am trying to remove my entire navigation bar and this will be a very helpful addition to the function of my forum.

Histori
New Member

Posts : 21
Reputation : 1
Language : English

http://killfaction.9forum.net/

Back to top Go down

Solved Re: New Message Announcement

Post by Nera. on April 12th 2012, 11:22 am

If you are trying to make a custom navbar and you have removed the whole navbar offered by FM Sir Saxaca's code will count your PM's. That's your problem? No PM notification if I'm right?
http://www.webartzforum.com/t2442-numbercount-on-inbox-mails#35996
You'll need to replace the image in the code with the one you use in your Pm box for New Pm's cause it counts them and the class a.mainmenu with the one you have now for the PM's.

Nera.
Energetic

Female Posts : 7077
Reputation : 2013
Language : English
Location : -

http://webartzforum.com

Back to top Go down

Solved Re: New Message Announcement

Post by Histori on April 12th 2012, 3:24 pm

Not exactly.

I just want to have a notification at the top of the log in module that links to that persons mailbox whenever they receive a new message. It's the same method as the navigation notifier but I would like to have it on the log in module as I will be removing my top navigation bar completely.

The reason for this is I have a side bar navigation which has links all around the site. Thus, I will no longer need the top navigation.

(I am sorry if I am not explaining myself clear)

Histori
New Member

Posts : 21
Reputation : 1
Language : English

http://killfaction.9forum.net/

Back to top Go down

Solved Re: New Message Announcement

Post by LGforum on April 13th 2012, 5:14 am

The best way to do this is to put your old navbar back but hidden.

The navbar contains some good information, Which can help make some good features. Including this one.

If you add this back into your overall header at some point, I'll help you get this feature.
Code:

<div id="realNav" style="display:none">{GENERATED_NAVBAR}</div>

*if someone could correct me on the template variable of the default navbar that would be great.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: New Message Announcement

Post by Histori on April 13th 2012, 6:49 pm

I have added the code to my General Header but there are no noticeable changes. Am I doing something wrong?

Histori
New Member

Posts : 21
Reputation : 1
Language : English

http://killfaction.9forum.net/

Back to top Go down

Solved Re: New Message Announcement

Post by LGforum on April 13th 2012, 9:46 pm

No no, you've done nothing wrong.
What you have done is added the old navbar back into your page but it is hidden. Why?

Because this now allows us with Javascript to check if the user has a new message.

Can you let me know where you added it, and exactly what you want to happen and where when a user recieves a new PM.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: New Message Announcement

Post by Histori on April 14th 2012, 12:03 am

On the template sheet for the Overall Header, I placed the code on line 263, replacing the original code that would show the navbar.

Now I just would like to have a simple statement/link saying "You have a new message" under the header of the Login Module(module that displays member avatar and etc. when logged in).

It's basically the same method as the Navbar notifier, but just located differently.

Histori
New Member

Posts : 21
Reputation : 1
Language : English

http://killfaction.9forum.net/

Back to top Go down

Solved Re: New Message Announcement

Post by LGforum on April 14th 2012, 2:09 am

Put this in a javascript file and tick in all pages:
Code:

$(function(){
if(document.getElementById('i_icon_mini_new_message')){
  document.getElementById('pmNotice').innerHTML = 'You have a new message!';
}
});

Then, wherever you want the message to be when the user recieves a new PM put this:
Code:

<span id="pmNotice"></span>

So wherever you put that small bit of code, is where the message will show up.

You can style the message to make it more obvious in the CSS like so:
Code:

#pmNotice {
  color: red;
  ... bla bla bla
}

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: New Message Announcement

Post by oisdjoiw on April 14th 2012, 3:15 am

Member Banned ~ Content Removed. (slg)

oisdjoiw
New Member

Posts : 5
Reputation : 1
Language : dfgfdger

Back to top Go down

Solved Re: New Message Announcement

Post by Histori on April 14th 2012, 4:49 am

Got it! Thank you so much!

Histori
New Member

Posts : 21
Reputation : 1
Language : English

http://killfaction.9forum.net/

Back to top Go down

Solved Re: New Message Announcement

Post by Jophy on April 14th 2012, 5:19 am

Since this thread is marked as solved, this will be moved now.

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

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