Latest topics
» Sticky navbar
by Joost Today at 11:04

» Logo Request
by Valoish Today at 10:23

» [HELP] Improve the reputation system so it counts votes
by omarpop23 Today at 02:55

» Chit Chat Thread
by Wolfuryo Yesterday at 11:23

» Dark Mode
by Ange Tuteur Yesterday at 10:22

» Help to update a code that does not work after JQuery Update!
by Ange Tuteur Yesterday at 10:18

» problen in Select a Category javascript
by Ange Tuteur Yesterday at 10:16

» random theme
by Ange Tuteur Yesterday at 10:16

» [GAME] Countdown from 200,000
by Wolfuryo Tue 27 Jun 2017, 14:46

» FM Chatbox
by Wolfuryo Tue 27 Jun 2017, 14:28

» [GAME] Animal Game
by Valoish Tue 27 Jun 2017, 11:32

» [GAME] What are you doing right now?
by Valoish Tue 27 Jun 2017, 11:32

» [GAME] this or that
by Valoish Tue 27 Jun 2017, 11:31

» [GAME] Count to 1000 using even numbers Van-Helsing Edition
by Valoish Tue 27 Jun 2017, 11:30

» [GAME] Count to 999 using odd numbers Van-Helsing Edition
by Valoish Tue 27 Jun 2017, 11:30

Recent Tutorials
Who is online?
In total there are 6 users online :: 2 Registered, 0 Hidden and 4 Guests

STBW, Wolfuryo

[ 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 : 646
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 : 4593
Points : 9464
Reputation : 2306
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 : 646
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 : 4593
Points : 9464
Reputation : 2306
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 : 646
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 : 646
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