The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Forumotion Notification box

5 posters

Go down

Solved Forumotion Notification box

Post by TheCrow Mon 28 Apr 2014 - 2:35

Hello. I would like to have the forumotion notification box,
=> the box that appears when someone sends a pm, or when someone posts in a thread you posted etc <=
i want to add it where this bell is on my forum.
Forumotion Notification box 1CPRPr8
I don't want to change the icon. I only want to add this function to it.
Is this possible?
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Forumotion Notification box

Post by Sir Chivas™ Mon 28 Apr 2014 - 18:38

Hi,

You're talking about the notifications of the toolbar?

Regards,
Sir Chivas.
Sir Chivas™
Sir Chivas™
Helper
Helper

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

https://aforums.org

Back to top Go down

Solved Re: Forumotion Notification box

Post by TheCrow Tue 29 Apr 2014 - 0:26

Good morning!

Yes i am talking about the notification box that appears below the toolbar.
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Forumotion Notification box

Post by TheCrow Wed 30 Apr 2014 - 8:45

Bump
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Forumotion Notification box

Post by Niko Wed 30 Apr 2014 - 10:06

Hello,

you just have to add this html code where you want to display the "bell-icon" if there are new pms in your inbox
Code:
<div id="newpm" style=" "><div><img src="http://www.skinbox.net/demo/public/style_images/elegant/clear.gif"></div></div>
<script>if(document.getElementById('i_icon_mini_message')) {document.getElementById('newpm').style.display = 'none';    }</script></div>

Explanation
the first part with the image is the box with the icon that is on your forum;
with the second code (a javascript code) if the code finds the id i_icon_mini_message (stands for: no new pms) it will hide the box with the image Wink

Hope it works Mr. Green
I used that on my forum with the previous theme



you can customize the box with:
Code:
#newpm {
//* code here
}

you can customize the image with:
Code:
#newpm img {
//* code here
}
Niko
Niko
Helper
Helper

Male Posts : 3106
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: Forumotion Notification box

Post by TheCrow Wed 30 Apr 2014 - 15:19

Ηello Niko!, 
At first, thanks for the codes and your time, but i mostly want the notification for the post. The pms i have a counter that appears a box on the screen that says that you have a pm. 

The post notifications, i cannot see them anywhere.. Sad
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Forumotion Notification box

Post by Niko Wed 30 Apr 2014 - 15:23

Actually, I don't get the issue

we already have this function, it is the notifications box in the toolbar 
can you explain it better? Wink
Niko
Niko
Helper
Helper

Male Posts : 3106
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: Forumotion Notification box

Post by TheCrow Wed 30 Apr 2014 - 15:29

Yes ofc.
That notification that forumotion toolbar has, i want it to display somewhere on the screen, even if the forumotion toolbar is switched off.
I actually have it off and those notifications, don't come anywhere now. Sad
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Forumotion Notification box

Post by Niko Fri 2 May 2014 - 11:48

Actually it isn't possible to have notifications if the toolbar is switched off,

i'm sorry :rose:
Niko
Niko
Helper
Helper

Male Posts : 3106
Reputation : 244
Language : English, Italian, French
Location : Italy

https://www.fmcodes.net/

Back to top Go down

Solved Re: Forumotion Notification box

Post by Michael_vx Fri 2 May 2014 - 15:57

hi try this in javascripts

Code:
var sec_inter= 60;

function cook_no_new_message() { my_setcookie("new_message",-new Date(),1,0); no_new_message(); }

function no_new_message() { $('#new_message').remove(); }

function cook_new_message() { my_setcookie("new_message",+new Date(),1,0); new_message(); }


function new_message() { $("body").append('<div id="new_message"
style="position:fixed;bottom:0;left:0"><a
href="/privmsg?folder=inbox" onClick="cook_no_new_message();return
true;"><img
src="http://i46.servimg.com/u/f46/15/46/85/43/arnewm10.png"
/></a></div>'); }

function new_message_update() {
var dnew_message= my_getcookie("new_message");
var enew_message= dnew_message>0;

if(($('#new_message').length>0)==enew_message)
{
if(!enew_message) dnew_message*=-1;
if(dnew_message<+new Date()-1000*sec_inter)
$.get('http://script-error.www?mode=newpm',function(data){
if(!data.match("No new private messages are waiting for you")!=enew_message)
{
if(enew_message) cook_no_new_message();
else cook_new_message();
}
});
}
else
{
if(enew_message) new_message();
else no_new_message();
}
}

$(function(){
if($('#i_icon_mini_new_message').length) cook_new_message();
else cook_no_new_message();
setInterval("new_message_update()",5000);
});

dont forget to change the image url to what ever you like
hope you like it
Michael_vx
Michael_vx
Forumember

Male Posts : 664
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: Forumotion Notification box

Post by TheCrow Sat 3 May 2014 - 4:16

Also this script is for new messages. i am looking for post notifications.
I will specify it to a new post.
Thanks for your replies.

SOLVED
TheCrow
TheCrow
Manager
Manager

Male Posts : 6913
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

Solved Re: Forumotion Notification box

Post by SLGray Sat 3 May 2014 - 14:30

Problem solved & topic archived.


Forumotion Notification box Slgray10

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

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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