Latest topics
Recent Tutorials
Top posting users this month
Who is online?
In total there are 8 users online :: 1 Registered, 0 Hidden and 7 Guests :: 1 Bot

snows

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Request notification script

View previous topic View next topic Go down

avatar
jessy

Title :
Gender : Female
Posts : 102
Points : 701
Reputation : 14
Language : italy
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision
Awards :
View all awards
View user profile http://ilgiornaledibordo.forumattivo.com/

Postjessy on Wed 17 Aug 2016, 17:58

I tried the codes

http://fmdesign.forumotion.com/t918-add-time-in-notication-list

not work with invision,with permission of Ch@lo Valdez



you can do to invision (avatar+time) thank you very much in advance flower
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4680
Points : 9695
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 17 Aug 2016, 18:34

Hi @jessy,

Try using this script instead :
Code:
$(document).on('click', function(e) {
  var that = e.target, list;
 
  if (that.id == 'fa_notifications' && !window.fa_notif_checked) {
    window.fa_notif_checked = true;

    $.get('/notification.forum').done(function (o) {
        for (var h = o.store, i = 0, a, b, c, d, e; i < h.length; i++) {
            a = h[i].time;
            b = h[i].text.id;
            c = document.getElementById('n' + b);
            d = new Date(a);
            e = d.toLocaleString();
            c.insertAdjacentHTML('beforeend', '<b class="time_notif"><i class="fa fa-clock-o" aria-hidden="true"></i> '+ e +'</b>')
        }
    });
  }
});
I just took what was posted in the topic and modified it a bit. I'd suggest contacting Ch@lo further if you want the actual codes. Wink
avatar
jessy

Title :
Gender : Female
Posts : 102
Points : 701
Reputation : 14
Language : italy
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision
Awards :
View all awards
View user profile http://ilgiornaledibordo.forumattivo.com/

Postjessy on Wed 17 Aug 2016, 18:56

this is OK..(time ok ) you do not see avatar Smooch
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4680
Points : 9695
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 17 Aug 2016, 19:00

I know, in that topic we were not discussing avatars in the notification list. So, I do not have a code for that, at least not currently.
avatar
jessy

Title :
Gender : Female
Posts : 102
Points : 701
Reputation : 14
Language : italy
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision
Awards :
View all awards
View user profile http://ilgiornaledibordo.forumattivo.com/

Postjessy on Thu 18 Aug 2016, 04:45

I'm sorry for the trouble I have no hurry.
you have to open new topic ?
avatar
Guest
Guest
View all awards

PostGuest on Thu 18 Aug 2016, 04:58

@jessy wrote:I'm sorry for the trouble I have no hurry.
you have to open new topic ?

@jessy: Ange asked you to contact @Ch@lo Valdez via PM on this, but since I just mentioned him, we may just as well wait for his answer in this topic. If Ch@lo isn't able to write it all up for your Invision board, Ange will probably put it on his very long list of stuff he still needs to take care off. So for now, I suggest you just be patient and wait for it to come together. Thanks!

Hello Samantha.
avatar
jessy

Title :
Gender : Female
Posts : 102
Points : 701
Reputation : 14
Language : italy
Browser : Browser : Google Chrome Forum Version : Forum Version : Invision
Awards :
View all awards
View user profile http://ilgiornaledibordo.forumattivo.com/

Postjessy on Thu 18 Aug 2016, 05:08

no problem thanks Samantha

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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