I used the Biorhythms module but as far as I know the support for this one has ended. There is a problem with the module which I hope someone can fix. I looked through the php.net pages and tried some things but failed so far. The problem is the piece of code below:
//
$lived_days = (mktime(date('H'),date('i'),date('s'),$m2,$D2,$y2)-mktime(0, 0, 1, $m1, $d1, $y1));
$lived_days /= 86400.0;
$lived_days = abs($lived_days);
//
the use of mktime restricts the years to 1970 - 2038 and since this is a Biorhythms module you can imagine I have users that are born before 1970. Anyone got any idea how i can get a correct amount of "days lived" from people born before 1970??
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 created topic »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 01:39 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
- frw responded to »Bug in the SMTP mail transfer protocol - Port 25 - Zikula 1.2.9« 22. May
- mdee responded to »Short URL questions« 22. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Biorhythms days problem
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 34
Can't find the edits I made just now but I just took the module from my modules folder and zipped it for you, it should work ok, let me know if you got any problems with it.
you can download it here:
biorhythms10.zip
Have fun
- Moderated by:
- Support
