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.
The forum of the forums
5 posters

    Forumotion Notification box

    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Forumotion Notification box

    Post by TheCrow 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.
    Forumotion Notification box 1CPRPr8
    I don't want to change the icon. I only want to add this function to it.
    Is this possible?
    Sir Chivasâ„¢
    Sir Chivasâ„¢
    Helper
    Helper


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

    Solved Re: Forumotion Notification box

    Post by Sir Chivasâ„¢ April 29th 2014, 1:38 am

    Hi,

    You're talking about the notifications of the toolbar?

    Regards,
    Sir Chivas.
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Forumotion Notification box

    Post by TheCrow April 29th 2014, 7:26 am

    Good morning!

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



    Forumotion Notification box Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Forumotion Notification box

    Post by TheCrow April 30th 2014, 3:45 pm

    Bump



    Forumotion Notification box Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Niko
    Niko
    Helper
    Helper


    Male Posts : 3285
    Reputation : 254
    Language : English, Italian, French
    Location : Italy

    Solved Re: Forumotion Notification box

    Post by Niko 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
    }
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Forumotion Notification box

    Post by TheCrow 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
    Niko
    Niko
    Helper
    Helper


    Male Posts : 3285
    Reputation : 254
    Language : English, Italian, French
    Location : Italy

    Solved Re: Forumotion Notification box

    Post by Niko 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
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Forumotion Notification box

    Post by TheCrow 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



    Forumotion Notification box Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    Niko
    Niko
    Helper
    Helper


    Male Posts : 3285
    Reputation : 254
    Language : English, Italian, French
    Location : Italy

    Solved Re: Forumotion Notification box

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

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

    i'm sorry :rose:
    Michael_vx
    Michael_vx
    Forumember


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

    Solved Re: Forumotion Notification box

    Post by Michael_vx 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
    TheCrow
    TheCrow
    Manager
    Manager


    Male Posts : 6916
    Reputation : 795
    Language : Greek, English

    Solved Re: Forumotion Notification box

    Post by TheCrow 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



    Forumotion Notification box Thecro10
     Forum of the Forums

    Forumotion Rules | Tips & Tricks |
    FAQ | Did you forget your password?



    *** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
    No support via PM!
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3524
    Language : English
    Location : United States

    Solved Re: Forumotion Notification box

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

    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.

      Current date/time is November 13th 2024, 7:20 pm