Skip to Content Skip to Menu

[SOLVED] Filter on relative age in lists?

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
10 years 2 weeks ago - 10 years 2 weeks ago #251081 by fribse2011
[SOLVED] Filter on relative age in lists? was created by fribse2011
I've lost all my filters and list formatting with the 2.0 upgrade, so I need to make a filter for my list that shows people below 18 years. I can't remember how I did it before.
I have their birthday (of course) in the profile, but how do I construct a filter that does that?

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
Last edit: 10 years 2 weeks ago by fribse2011.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 2 weeks ago #251142 by krileon
Replied by krileon on topic Filter on relative age in lists?
Advanced filter or basic filter? There was a problem with advanced filter migration, which we've fixed in latest CB 2.0 nightly. If you've a backup you can restore to the backup then install the nightly so it can remigrate. I've no idea what your filter was either so I don't know what to suggest, sorry.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
10 years 2 weeks ago #251255 by fribse2011
Replied by fribse2011 on topic Filter on relative age in lists?
A lot of stuff is updated since the move to 2.0, but I found an old backup, and looked in the advanced filters for those lists.
It had a filter like this:
( ( YEAR( NOW() ) - YEAR( ue.`cb_birthday` ) ) < 19 )
To show people 18 year old or younger, and that filter worked in the 2.0 as well.

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
10 years 2 weeks ago #251282 by nant
Replied by nant on topic Filter on relative age in lists?

fribse2011 wrote: A lot of stuff is updated since the move to 2.0, but I found an old backup, and looked in the advanced filters for those lists.
It had a filter like this:
( ( YEAR( NOW() ) - YEAR( ue.`cb_birthday` ) ) < 19 )
To show people 18 year old or younger, and that filter worked in the 2.0 as well.


We have just released CB 2.0.1 that does address various issues identified with migrating user lists from CB 1.9.1 upgrades.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 2 weeks ago #251342 by krileon
Replied by krileon on topic Filter on relative age in lists?

fribse2011 wrote: A lot of stuff is updated since the move to 2.0, but I found an old backup, and looked in the advanced filters for those lists.
It had a filter like this:
( ( YEAR( NOW() ) - YEAR( ue.`cb_birthday` ) ) < 19 )
To show people 18 year old or younger, and that filter worked in the 2.0 as well.

Yup, that was broken in 2.0, but it's fixed in 2.0.1. You can restore to the backup then install 2.0.1 to redo the migration or you can just add your filter back in to your userlist manually.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • fribse2011
  • fribse2011
  • OFFLINE
  • Posts: 921
  • Thanks: 79
  • Karma: 8
10 years 2 weeks ago #251395 by fribse2011
Replied by fribse2011 on topic Filter on relative age in lists?
And it works as it should, thankyou!

Best regards
Fribse

Frømandsklubben Nikon, www.nikondyk.dk
We're a volunteer driven diving club in Ishøj, Denmark.
Har du brug for en dykkerklub der rummer alle, så kom ned til os.
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum