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.

Reminder don't work

5 posters

Go down

Solved Reminder don't work

Post by SNooPy89 Sun Dec 19, 2021 12:03 am

Hey! I opened this topic https://help.forumotion.com/t160919-reminders-or-event-in-topic-is-this-possible few days ago. Today is the birthday of one of the members of my forum, however, it is not shown in the topic. How do I fix that?

Link to my forum: https://odabranodrustvo.forumsr.com/


Last edited by SNooPy89 on Wed Jan 19, 2022 6:59 pm; edited 1 time in total
avatar
SNooPy89
Forumember

Posts : 102
Reputation : 2
Language : serbian
Location : Serbia

http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by Ape Sun Dec 19, 2021 12:34 am

It don't show in a topic it shows in the footer of your forum if you have it turned on.

If you have it set as a birthday message then it sends a PM to them not make a topic on the forum.


Reminder don't work Left1212Reminder don't work Center11Reminder don't work Right112
Reminder don't work Ape_b110
Reminder don't work Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19436
Reputation : 2010
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 Sun Dec 19, 2021 5:13 pm

when @Niko did this javascript for me, I understood that it would be in the topic. Otherwise, I did nothing.
avatar
SNooPy89
Forumember

Posts : 102
Reputation : 2
Language : serbian
Location : Serbia

http://cacak.forumsr.net

Niko likes this post

Back to top Go down

Solved Re: Reminder don't work

Post by Ape Mon Dec 20, 2021 1:32 am

oh ok well if this code was made by a member of the public then they will have to get back to you them self as we have no one who will make a change to others codes.


Reminder don't work Left1212Reminder don't work Center11Reminder don't work Right112
Reminder don't work Ape_b110
Reminder don't work Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19436
Reputation : 2010
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Reminder don't work

Post by skouliki Tue Dec 21, 2021 10:57 am

Hello

Did you placement the java script to be in the topics?
If yes try on all pages to check if this will help you
skouliki
skouliki
Manager
Manager

Female Posts : 15391
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 Tue Dec 21, 2021 10:18 pm

Yes, I tried first ''in the topic'', and than ''in all pages'' but it still didn't work.
avatar
SNooPy89
Forumember

Posts : 102
Reputation : 2
Language : serbian
Location : Serbia

http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by SLGray Tue Dec 21, 2021 10:56 pm

Did this certain member have his/her birthday set in her/his profile?


Reminder don't work 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 : 51555
Reputation : 3524
Language : English
Location : United States

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

Back to top Go down

Solved Re: Reminder don't work

Post by Niko Wed Dec 22, 2021 2:29 pm

Hello there,

i saw your tag! It would be useful if you could provide us the link to a post where an user should have the message, so a post published by a member whose birthday is today. That would be helpful to understand the reason of the jscript not to work Wink

Thanks!

edit: Just noticed I made a weird error, my bad Mr. Green Embarassed

try with this instead:
Code:
$(function() {
var d = new Date();
 var month = d.getMonth()+1;
var day = d.getDate();
var currentDate =  (month<10 ? '0' : '') + month + '-' +    (day<10 ? '0' : '') + day;
$(".postprofile").each(function() {
    var element = $(this);
    var profile = $(this).find('.postprofile-name a');
    var username = profile.html();
    var href = profile.attr('href');
    $.ajax({
          url:href,
          type:'GET',
          success: function(data){
                var birthday = $(data).find('dl#field_id-12 dd div:nth-child(1)').html();
                birthday = birthday.slice(5);   
                if(birthday != null && birthday == currentDate) {
                    $(element).parent().find('.postbody').append('<div class="birthdayBox">Today is '+username+'\'s birthday</div>');   
                }
          }
 
        });
    });
});

It should work now Wink
Niko
Niko
Helper
Helper

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

https://www.fmcodes.net/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 Sun Dec 26, 2021 11:07 pm

I changed the code, but it still don't work.
avatar
SNooPy89
Forumember

Posts : 102
Reputation : 2
Language : serbian
Location : Serbia

http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by SLGray Sun Dec 26, 2021 11:42 pm

When you are copying & pasting the code, is it adding the numbers to the left?  If yes, you need to remove them.


Reminder don't work 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 : 51555
Reputation : 3524
Language : English
Location : United States

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

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 Mon Jan 10, 2022 4:11 pm

N0, I wasn't adding numbers in the left.
avatar
SNooPy89
Forumember

Posts : 102
Reputation : 2
Language : serbian
Location : Serbia

http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by Niko Mon Jan 10, 2022 4:40 pm

I set my birthday to current date on your forum, and I posted a topic to test. The code perfectly works for me Embarassed

Reminder don't work Scherm48
Niko
Niko
Helper
Helper

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

https://www.fmcodes.net/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 Mon Jan 10, 2022 10:54 pm

when I set my birthday, for example today and send a post, nothing is seen. I have no idea why I don't see it, but you see. Maybe some profile settings or no? Other reason? bwi


Last edited by SNooPy89 on Mon Jan 10, 2022 11:33 pm; edited 1 time in total
avatar
SNooPy89
Forumember

Posts : 102
Reputation : 2
Language : serbian
Location : Serbia

http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by Niko Mon Jan 10, 2022 11:24 pm

@SNooPy89 yes, it may be the setting on how you see the date Embarassed
Sadly this is a preference that can be customized user by user, so the only option would be to set the default one as needed, and then eventually hide the field to change the date-time format with templates

Check if you see the birthday date in this format: yyyy-mm-dd
Niko
Niko
Helper
Helper

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

https://www.fmcodes.net/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 Mon Jan 10, 2022 11:49 pm

I changed it on admin panel (this format yyyy-mm-dd) but, still I don't see nothing.
avatar
SNooPy89
Forumember

Posts : 102
Reputation : 2
Language : serbian
Location : Serbia

http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by Niko Tue Jan 11, 2022 12:42 am

The setting in the ACP will be the default one, but with your profile you need to check your preferences (which is personal) @SNooPy89

Can I get a screenshot of these two pages?


this is how I see it:

Reminder don't work Scherm49
Niko
Niko
Helper
Helper

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

https://www.fmcodes.net/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 Wed Jan 12, 2022 5:57 pm

Reminder don't work 114
Reminder don't work 213
Reminder don't work 312
avatar
SNooPy89
Forumember

Posts : 102
Reputation : 2
Language : serbian
Location : Serbia

http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by Niko Thu Jan 13, 2022 9:48 pm

Okay yes, it is related to the language which automatically changes the date-format

Try with this, it should work with your own settings:

Code:
$(function() {
var d = new Date();
 var month = d.getMonth()+1;
var day = d.getDate();
var currentDate =  (day<10 ? '0' : '') + day + '.' + (month<10 ? '0' : '') + month;
$(".postprofile").each(function() {
    var element = $(this);
    var profile = $(this).find('.postprofile-name a');
    var username = profile.html();
    var href = profile.attr('href');
    $.ajax({
          url:href,
          type:'GET',
          success: function(data){
                var birthday = $(data).find('dl#field_id-12 dd div:nth-child(1)').html();
                birthday = birthday.substring(0, birthday.length-5);
                if(birthday != null && birthday == currentDate) {
                    $(element).parent().find('.postbody').append('<div class="birthdayBox">Today is '+username+'\'s birthday</div>'); 
                }
          }
 
        });
    });
});
Niko
Niko
Helper
Helper

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

https://www.fmcodes.net/

SNooPy89, SarkZKalie and TonnyKamper like this post

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 Wed Jan 19, 2022 6:58 pm

It works! Thank you very much!
avatar
SNooPy89
Forumember

Posts : 102
Reputation : 2
Language : serbian
Location : Serbia

http://cacak.forumsr.net

Niko likes this post

Back to top Go down

Solved Re: Reminder don't work

Post by Niko Wed Jan 19, 2022 7:01 pm

You are welcome 1st
Niko
Niko
Helper
Helper

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

https://www.fmcodes.net/

SNooPy89 and TonnyKamper like this post

Back to top Go down

Solved Re: Reminder don't work

Post by SLGray Wed Jan 19, 2022 11:05 pm

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


Reminder don't work 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 : 51555
Reputation : 3524
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