Reminders (or event) in topic, is this possible?
3 posters
Page 1 of 1
Reminders (or event) in topic, is this possible?
Is there a possibility that we have some reminders (or events) within the topic, such as a notification coming out when it's someone's birthday? I know about the birthday option in the footer, but is there any option to set it to be within the topic?
Last edited by SNooPy89 on December 6th 2021, 1:06 am; edited 1 time in total
Re: Reminders (or event) in topic, is this possible?
Birthday option in the footer?
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: Reminders (or event) in topic, is this possible?
Hello @SNooPy89
do you mean a kind of "banner" that appears under the posts of someone when it's her/his birthday?
I mean, something automatic in this sense or you mean something the user needs to set-up?
do you mean a kind of "banner" that appears under the posts of someone when it's her/his birthday?
I mean, something automatic in this sense or you mean something the user needs to set-up?
Re: Reminders (or event) in topic, is this possible?
It's not just birthdays. In addition, most users did not specify a birthday in the profile, but whoever did, usually does not look at the footer.
@Niko, anything, just to be in the topic. It can also be something like a text slider. I tried in the calendar, but it doesn't show an event reminder.
@Niko, anything, just to be in the topic. It can also be something like a text slider. I tried in the calendar, but it doesn't show an event reminder.
Re: Reminders (or event) in topic, is this possible?
@SNooPy89 a possible solution that pops in my mind is to show a banner under users' post when their birthday (if set) is close to X days, for example:
But I don't know if this is what you had in mind
But I don't know if this is what you had in mind
skouliki, Ape, TonnyKamper and tikky like this post
Re: Reminders (or event) in topic, is this possible?
Yes, but more users don't set birhday in profile and other event isn't possible to set in profile?
And how can I do what you stated and will it show on the day of the birthday, for example, that it was someone's birthday (who stated the birthday in the profile)?
And how can I do what you stated and will it show on the day of the birthday, for example, that it was someone's birthday (who stated the birthday in the profile)?
Re: Reminders (or event) in topic, is this possible?
@SNooPy89 I would need to write the code, but I haven't started because I wanted to see if that was what you wanted (to avoid doing it for no reason )
About "other events", you may create a profile field of date type and that could be used as well as a date reference - but in any case, birthday or other date/event, you will always need a reference and an input from the user, because the code would need data to rely on in any case.
About "other events", you may create a profile field of date type and that could be used as well as a date reference - but in any case, birthday or other date/event, you will always need a reference and an input from the user, because the code would need data to rely on in any case.
TonnyKamper likes this post
Re: Reminders (or event) in topic, is this possible?
Okay, then maybe what you suggested. Can you write me that code? Is it possible for the message below the post to appear on the birthday?I will tell users to list birthdays in the profile, and I will set other events in the calendar.
Niko likes this post
Re: Reminders (or event) in topic, is this possible?
@SNooPy89 sure!
Just give me a confirmation the forum is http://cacak.forumsr.net/ and that your forum version is PhpBB3 (I guess) ?
Just give me a confirmation the forum is http://cacak.forumsr.net/ and that your forum version is PhpBB3 (I guess) ?
Re: Reminders (or event) in topic, is this possible?
I think for my second forum (oh, I forgot ti paste link to my forum) https://odabranodrustvo.forumsr.com/
It is modern version on this forum
It is modern version on this forum
Niko likes this post
Re: Reminders (or event) in topic, is this possible?
Here I am!
Go to ACP > Modules > HTML & Javascript > Javascript codes management and create a new javascript code with these settings:
Notes: from this you can change this part
with your own custom message. It is only important to
Then you need to go to ACP > Display > Images & Colors > Colors > CSS and add this css code, which you can edit however you wish. I made it look like your forum
If you have any trouble editing, just ask
this is the demo:
Go to ACP > Modules > HTML & Javascript > Javascript codes management and create a new javascript code with these settings:
- Title: as you prefer
- Where: in topics
- Content:
- 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 + '.' + d.getFullYear();
$(".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 font font').html();
if(birthday == currentDate) {
$(element).parent().find('.postbody').append('<div class="birthdayBox">Today is '+username+'\'s birthday</div>');
}
}
});
});
});
Notes: from this you can change this part
|
- keep
to have it replaced with the user name- Code:
'+username+'
- If you use any time in the message the symbol
you need to add a backslash- Code:
'
before (as I already did in the default message)- Code:
/
Then you need to go to ACP > Display > Images & Colors > Colors > CSS and add this css code, which you can edit however you wish. I made it look like your forum
- Code:
.birthdayBox {
background: #6c2f00;
color: white;
padding: 8px;
border-radius: 4px;
margin-top: 10px;
clear: both;
}
If you have any trouble editing, just ask
this is the demo:
skouliki, SNooPy89, TonnyKamper, tikky and Winging like this post
Re: Reminders (or event) in topic, is this possible?
Hey Niko, you are the best! Thank you very much.
I am sorry for waiting for an answer, I had a lot of responsibilities these days.
I am sorry for waiting for an answer, I had a lot of responsibilities these days.
Niko likes this post
Re: Reminders (or event) in topic, is this possible?
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
» Calender event without a topic?
» Calendar reminders
» Calendar Reminders
» First Post Reminders
» The Report System: Reminders
» Calendar reminders
» Calendar Reminders
» First Post Reminders
» The Report System: Reminders
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum