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 December 19th 2021, 1: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 January 19th 2022, 7:59 pm; edited 1 time in total
avatar
SNooPy89
Forumember

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

View user profile http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by Ape December 19th 2021, 1: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 Keep_s10
Reminder don't work Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 17962
Reputation : 1913
Language : fluent in dork / mumbojumbo & English haha

View user profile http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 December 19th 2021, 6: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 : 97
Reputation : 2
Language : serbian
Location : Serbia

View user profile http://cacak.forumsr.net

Niko likes this post

Back to top Go down

Solved Re: Reminder don't work

Post by Ape December 20th 2021, 2: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 Keep_s10
Reminder don't work Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 17962
Reputation : 1913
Language : fluent in dork / mumbojumbo & English haha

View user profile http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Reminder don't work

Post by skouliki December 21st 2021, 11: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 : 12676
Reputation : 1544
Language : English,Greek
Location : Greece

View user profile http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 December 21st 2021, 11:18 pm

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

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

View user profile http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by SLGray December 21st 2021, 11: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 : 50441
Reputation : 3478
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Reminder don't work

Post by Niko December 22nd 2021, 3: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
Hyperactive

Male Posts : 2497
Reputation : 138
Language : English, Italian, French
Location : Italy

View user profile https://www.fmcodes.net/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 December 27th 2021, 12:07 am

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

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

View user profile http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by SLGray December 27th 2021, 12:42 am

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 : 50441
Reputation : 3478
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 January 10th 2022, 5:11 pm

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

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

View user profile http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by Niko January 10th 2022, 5: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
Hyperactive

Male Posts : 2497
Reputation : 138
Language : English, Italian, French
Location : Italy

View user profile https://www.fmcodes.net/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 January 10th 2022, 11: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 January 11th 2022, 12:33 am; edited 1 time in total
avatar
SNooPy89
Forumember

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

View user profile http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by Niko January 11th 2022, 12:24 am

@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
Hyperactive

Male Posts : 2497
Reputation : 138
Language : English, Italian, French
Location : Italy

View user profile https://www.fmcodes.net/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 January 11th 2022, 12:49 am

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

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

View user profile http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by Niko January 11th 2022, 1: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
Hyperactive

Male Posts : 2497
Reputation : 138
Language : English, Italian, French
Location : Italy

View user profile https://www.fmcodes.net/

Back to top Go down

Solved Re: Reminder don't work

Post by SNooPy89 January 12th 2022, 6:57 pm

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

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

View user profile http://cacak.forumsr.net

Back to top Go down

Solved Re: Reminder don't work

Post by Niko January 13th 2022, 10: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
Hyperactive

Male Posts : 2497
Reputation : 138
Language : English, Italian, French
Location : Italy

View user profile 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 January 19th 2022, 7:58 pm

It works! Thank you very much!
avatar
SNooPy89
Forumember

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

View user profile http://cacak.forumsr.net

Niko likes this post

Back to top Go down

Solved Re: Reminder don't work

Post by Niko January 19th 2022, 8:01 pm

You are welcome 1st
Niko
Niko
Hyperactive

Male Posts : 2497
Reputation : 138
Language : English, Italian, French
Location : Italy

View user profile https://www.fmcodes.net/

SNooPy89 and TonnyKamper like this post

Back to top Go down

Solved Re: Reminder don't work

Post by SLGray January 20th 2022, 12:05 am

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 : 50441
Reputation : 3478
Language : English
Location : United States

View user profile 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