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.

Forumotion Notification box

View previous topic View next topic Go down

Solved Forumotion Notification box

Post by Luffy on April 28th 2014, 9:35 am

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.

I don't want to change the icon. I only want to add this function to it.
Is this possible?

Luffy
Manager
Manager

Male Posts : 4251
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Forumotion Notification box

Post by Sir Chivas™ on April 29th 2014, 1:38 am

Hi,

You're talking about the notifications of the toolbar?

Regards,
Sir Chivas.

Sir Chivas™
Support Moderator
Support Moderator

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

Back to top Go down

Solved Re: Forumotion Notification box

Post by Luffy on April 29th 2014, 7:26 am

Good morning!

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






Luffy
Manager
Manager

Male Posts : 4251
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Forumotion Notification box

Post by Luffy on April 30th 2014, 3:45 pm

Bump






Luffy
Manager
Manager

Male Posts : 4251
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Forumotion Notification box

Post by Niko on April 30th 2014, 5:06 pm

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
Hyperactive

Male Posts : 2298
Reputation : 97
Language : English, French, Italian, Spanish, Latin

Back to top Go down

Solved Re: Forumotion Notification box

Post by Luffy on April 30th 2014, 10:19 pm

Η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

Luffy
Manager
Manager

Male Posts : 4251
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Forumotion Notification box

Post by Niko on April 30th 2014, 10:23 pm

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
Hyperactive

Male Posts : 2298
Reputation : 97
Language : English, French, Italian, Spanish, Latin

Back to top Go down

Solved Re: Forumotion Notification box

Post by Luffy on April 30th 2014, 10:29 pm

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






Luffy
Manager
Manager

Male Posts : 4251
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Forumotion Notification box

Post by Niko on May 2nd 2014, 6:48 pm

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

i'm sorry :rose:

Niko
Hyperactive

Male Posts : 2298
Reputation : 97
Language : English, French, Italian, Spanish, Latin

Back to top Go down

Solved Re: Forumotion Notification box

Post by Michael_vx on May 2nd 2014, 10:57 pm

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
Forumember

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

Back to top Go down

Solved Re: Forumotion Notification box

Post by Luffy on May 3rd 2014, 11:16 am

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






Luffy
Manager
Manager

Male Posts : 4251
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

Solved Re: Forumotion Notification box

Post by SLGray on May 3rd 2014, 9:30 pm

Problem solved & topic archived.


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


SLGray
Administrator
Administrator

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

http://ztwds.forumotion.com/

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