Reminder don't work
5 posters
Page 1 of 1
Reminder don't work
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/
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
Re: Reminder don't work
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.
If you have it set as a birthday message then it sends a PM to them not make a topic on the forum.
Re: Reminder don't work
when @Niko did this javascript for me, I understood that it would be in the topic. Otherwise, I did nothing.
Niko likes this post
Re: Reminder don't work
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.
Re: Reminder don't work
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
Did you placement the java script to be in the topics?
If yes try on all pages to check if this will help you
Re: Reminder don't work
Yes, I tried first ''in the topic'', and than ''in all pages'' but it still didn't work.
Re: Reminder don't work
Did this certain member have his/her birthday set in her/his profile?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Reminder don't work
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
Thanks!
edit: Just noticed I made a weird error, my bad
try with this instead:
It should work now
i saw your tag!
Thanks!
edit: Just noticed I made a weird error, my bad
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
Re: Reminder don't work
When you are copying & pasting the code, is it adding the numbers to the left? If yes, you need to remove them.
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Reminder don't work
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?
Last edited by SNooPy89 on Mon Jan 10, 2022 11:33 pm; edited 1 time in total
Re: Reminder don't work
@SNooPy89 yes, it may be the setting on how you see the date
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
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
Re: Reminder don't work
I changed it on admin panel (this format yyyy-mm-dd) but, still I don't see nothing.
Re: Reminder don't work
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:
Can I get a screenshot of these two pages?
- https://odabranodrustvo.forumsr.com/profile?mode=editprofile&page_profil=preferences
- your profile (where I can see the format of your birthday)
this is how I see it:
Re: Reminder don't work
Okay yes, it is related to the language which automatically changes the date-format
Try with this, it should work with your own settings:
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>');
}
}
});
});
});
SNooPy89, SarkZKalie and TonnyKamper like this post
Re: Reminder don't work
Problem solved & topic archived.
|
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» im think html dont work on my templates orr i dont know because im new in forumotion
» I dont know how to work the table? can anybody help?
» Facbook connect dont work!!!
» VM and Friend Request reminder
» Removing 1st Post Reminder
» I dont know how to work the table? can anybody help?
» Facbook connect dont work!!!
» VM and Friend Request reminder
» Removing 1st Post Reminder
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum