Welcome, Guest. Please Login or Register.
March 28, 2024, 08:36:52 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Done] Calendar Mod [Ver 1.4] « previous next »
Pages: 1 2 3 [4] 5 6 ... 23 Reply Ignore Print
Author Topic: [Done] Calendar Mod [Ver 1.4]  (Read 147856 times)
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #45 on: May 02, 2002, 02:38:03 PM »
Reply with quote

Do you have a somewhat simple formula for calculating the moon phase? I tried to do it based on the Synodic cycle length but that doesn't appear to be accurate enough -- or I'm doing something wrong. I found some java code that will do it, but it's not even close to "simple".
Logged
vorapoap (vory)
Sr. Member
****
Posts: 424


Not considered either a living or death

WWW
Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #46 on: May 02, 2002, 05:31:47 PM »
Reply with quote

http://www.simplythebest.net/info/javascript82.html

I am trying to change it to php.. but I think php has a problem with big integer... the result is incorrect :(

Logged

On the route to hell...
opus
Jr. Member
**
Posts: 59


I'm an opus!

ICQ - 16116986 WWW
Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #47 on: May 02, 2002, 05:35:44 PM »
Reply with quote

 ;D  :D


Thank you!  I can't believe you made the holiday change so quickly.   I guess I am just used to slow developers.

It works great!


Scott
Logged

If I were two people I would still be busy.
Delinquently insane
Foolish One
YaBB God
*****
Posts: 529


The One Surpassed By God!!!!

Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #48 on: May 02, 2002, 05:39:23 PM »
Reply with quote

Interesting Find ..I Looked At The Code And From My Javascript Knowledge It Doesnt Look To Complicated To Do.. Just A Couple Variable Adjustments should do the trick.. about it being accurate dont know about that one but ill toy around with it and see what i come up with  :)
Logged

ALL MODS Cancelled projected terminated
vorapoap (vory)
Sr. Member
****
Posts: 424


Not considered either a living or death

WWW
Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #49 on: May 02, 2002, 05:49:16 PM »
Reply with quote

<?// Written by James Thiele [email protected] http://www.eskimo.com/~jet/javascript/moonphase
// Permission granted to SimplytheBest.net to feature script in its
// DHTML script collection at http://simplythebest.net/info/dhtml_scripts.html

function MoonPhase($day, $month, $year) {
   $currentDate = mktime(0, 0, 0, $month, $day, $year);
   $blueMoonDate = mktime(16, 15, 0, 2, 3, 1996);
   // Compute length of lunar period -- source: World Almanac
   //$today = date("F j, Y, g:i a",$currentDate);  
   //$currentDate=1020356811408;
   //$blueMoonDate=823364100000;
   print "$today<br>";
   print "CD:$currentDate<br>BD:$blueMoonDate<br>";
   
   $lunarPeriod  = 29*(24*3600*1000) + 12*(3600*1000) + 44.05*(60*1000);
   print "LD:$lunarPeriod <br>";
   $moonPhaseTime = ($currentDate - $blueMoonDate) % $lunarPeriod;
   print "MT:$moonPhaseTime <br>";
   // Compute various percentages of lunar cycle
   //$percentRaw = (moonPhaseTime / lunarPeriod);
   // alert("% = "+percentRaw);
   //$percent = round(100 * percentRaw) / 100;
   // alert("% = "+percent)
    $nextFullmoon = round( ($lunarPeriod-$moonPhaseTime)/(24*3600*1000) );
    return $nextFullmoon;
}

print '<H1>'.MoonPhase(2,5,2002).'</H1>';

?>

The floating value is wrong.. :( The final result should be 23.. means 23 days to full moon. but it is 33
Logged

On the route to hell...
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #50 on: May 02, 2002, 05:50:48 PM »
Reply with quote

Quote from: opus on May 02, 2002, 05:35:44 PM;D  :D


Thank you!  I can't believe you made the holiday change so quickly.   I guess I am just used to slow developers.


You are welcome.  I had some free time and was interested in doing that once it was mentioned. Took me longer to find those 9 years worth of data for the floating holidays than it did to make the coding changes I think. :P
« Last Edit: May 02, 2002, 05:51:12 PM by Myiasis » Logged
azard
Noobie
*
Posts: 8


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #51 on: May 03, 2002, 11:58:21 AM »
Reply with quote

please help me i don't see calendar buttons
but i 've changed all files and upload gif into images directory
Logged
vorapoap (vory)
Sr. Member
****
Posts: 424


Not considered either a living or death

WWW
Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #52 on: May 03, 2002, 12:49:13 PM »
Reply with quote

Quote from: azard on May 03, 2002, 11:58:21 AMplease help me i don't see calendar buttons
but i 've changed all files and upload gif into images directory

Hee Hee you are one more person who forgot to upload index.php in ./ not ./Sources. :D
Logged

On the route to hell...
azard
Noobie
*
Posts: 8


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #53 on: May 03, 2002, 01:09:02 PM »
Reply with quote

sorry i don't made this mistake

i upload index.php in ./
Logged
Myiasis
Full Member
***
Posts: 178


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #54 on: May 03, 2002, 05:53:28 PM »
Reply with quote

Quote from: azard on May 03, 2002, 11:58:21 AMplease help me i don't see calendar buttons
but i 've changed all files and upload gif into images directory

Did you turn it on? If you insterted the rows into the settings table 'as-is' from the Readme.txt it will be off by default. Go into the Admin|Mod Settings screen and enable it.
Logged
lenaP
Jr. Member
**
Posts: 97


Well well...

Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #55 on: May 03, 2002, 10:29:52 PM »
Reply with quote

I have a tiny... or not so very tiny problem with the calendar mod.

I've just installed it, it shows up fine, the menu button shows up, it found availible birthdays and show them as expected. I haven't inserted any holydays in the database yet, because they differ quite a lot from the ones in Sweden, so of course the calendar don't show any holidays.

The problem is that I can't add any events! Iv'e tried several times, and I've checked the setting over and over, but I just can't find out where the problem is, they just wont show up. Since no one else seems to have had that problem, I wonder if it is because of the missing holidays after all?

Oh, by the way, I haven't modified any files more than with this mod, I did set up the entire board today...

Some time later... Now I have inserted the fixed holidays. No difference. And I have checked the database table named calendar, my added event is there, but it still doesn't show up in the calendar... :(

Please, can anyone help me out here?
« Last Edit: May 03, 2002, 11:51:39 PM by lenaP » Logged
azard
Noobie
*
Posts: 8


I'm a llama!

Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #56 on: May 03, 2002, 10:55:09 PM »
Reply with quote

Quote from: Myiasis on May 03, 2002, 05:53:28 PMDid you turn it on? If you insterted the rows into the settings table 'as-is' from the Readme.txt it will be off by default. Go into the Admin|Mod Settings screen and enable it.

Thanks so much i ve forgot it
Logged
Ironman
Guest
Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #57 on: May 03, 2002, 11:09:39 PM »
Reply with quote

Anyone interested on the german buttons for that awesome mod? Downlad here.

And here is the Translation for the german.lng:
// Calendar.
$txt['calendar1']  = "Ungültiger Monat.";
$txt['calendar2']  = "Ungültiges Jahr.";
$txt['calendar3']  = "Geburtstage:";
$txt['calendar4']  = "Events:";
$txt['calendar5']  = "";  // Prompt for holidays in the calendar, leave blank to just display the holiday's name.
$txt['calendar6']  = "Sie haben nicht die Berechtigung Events zu posten.";
$txt['calendar7']  = "Event Monat fehlt.";
$txt['calendar8']  = "Event Jahr fehlt.";
$txt['calendar9']  = "Monat:";
$txt['calendar10'] = "Jahr:";
$txt['calendar11'] = "Tag:";
$txt['calendar12'] = "Event Name:";
$txt['calendar13'] = "Posten in:";
$txt['calendar14'] = "Event Tag fehlt.";
$txt['calendar15'] = "Event Name fehlt.";
$txt['calendar16'] = "Ungültiges Datum.";
$txt['calendar17'] = "Kein Event Name eingegeben.";
$txt['calendar18'] = "Event ID fehlt.";
$txt['calendar19'] = "Sie haben nicht die Berechtigung diesen Event zu bearbeiten.";
$txt['calendar20'] = "Event bearbeiten";
$txt['calendar21'] = "Diesen Event löschen?";
$txt['calendar22'] = "Event löschen";
$txt['calendar23'] = "Event posten";
$txt['calendar24'] = "Kalender";
$txt['calendar25'] = "Aktiviert";
$txt['calendar26'] = "Minimum Jahr";
$txt['calendar27'] = "Maximum Jahr";
$txt['calendar28'] = "Farbe aktueller Tag";
$txt['calendar29'] = "Geburtstagsfarbe";
$txt['calendar30'] = "Eventfarbe";
$txt['calendar31'] = "Feiertagsfarbe";
$txt['calendar32'] = "Eventposting auf bestimmte Membergruppen beschränken";

Bitteschön... ;)
« Last Edit: May 03, 2002, 11:41:27 PM by Ironman » Logged
vorapoap (vory)
Sr. Member
****
Posts: 424


Not considered either a living or death

WWW
Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #58 on: May 03, 2002, 11:14:30 PM »
Reply with quote

Ha  :-[ I have a good button for calendar in Thai language.. but I don't think anybody is interested :P
Logged

On the route to hell...
Cutter
Noobie
*
Posts: 14


If it ain't broke, fix it until it is!

ICQ - 51715434
Re:[Beta] Calendar Mod [New Ver 1.1]
« Reply #59 on: May 04, 2002, 03:39:03 AM »
Reply with quote

Excellent mod Myiasis!

I've been using a seperate calendar for my site, but this is much better. IMHO all message boards should have an integrated calendar of some sort. *hint, hint*  ;D

My forums members and I thank you...  :)
Logged
Pages: 1 2 3 [4] 5 6 ... 23 Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Done] Calendar Mod [Ver 1.4] « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.024 seconds with 19 queries.