Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

JS Birthday does not show todays birthdays

7 years 7 months ago
  • Guido's Avatar
    Topic Author
  • Guido
  • Offline
  • Fresh Boarder
  • Posts: 69
  • Thank you received: 7
Licenses:
JomSocial Active

ISSUE SUMMARY:
JS birthday only shows upcoming birthdays but not the todays birthdays. It should as you could send a greeting.

STEPS TO REPLICATE:
1 check birthday of tomorrow (users will have birthday)
2 check tomorrow (users will be hidden and users with birthday tomorrow will be shown)

I could solve it by changing /modules/mod_community_birthdays/helper.php in line 71 from

$query .= " AND DATE_ADD(value, INTERVAL YEAR(CURDATE())-YEAR(value) + IF(DAYOFYEAR(CURDATE()) > DAYOFYEAR(value),1,0) YEAR) BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL ".$days." DAY)";
to
$query .= " AND DATE_FORMAT(value,'%m%d') >= ".date('md');

7 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Guido,

thank you, i will talk this with our developer

cheers!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW