All times are UTC [ DST ]




Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
  Offline
PostPosted: October 7th, 2016, 2:36 pm 
User avatar
King

Joined: May 30th, 2015, 10:17 am
Posts: 3723
Location: Stirling - Scotland
message siden directly with what you need help with incase he missed this post. excited to see what your long awaited character sheets will be like!

_________________
Talja-Sameria Tourmaline II - Tip of the Spear
Queen of Dawnstar, Deputy Minister for Hermertian Culture.
Adjudicator for Valyrian Affairs, Forums Administrator

Gold Roads. Fractal Mining. Lore Compliance Ducks.


Top
 Profile  
Reply with quote  
  Offline
PostPosted: November 1st, 2016, 7:39 pm 
User avatar

Joined: April 28th, 2016, 6:15 pm
Posts: 2001
Location: California
It's off by two years as of Nov 1, and still off by an entire era.

_________________
Ealdorman Cerdic Beoden Accynnafon of Östlond
Runner Up of the Glas Claddach Boat Building Competition
Minister of Justice


Top
 Profile  
Reply with quote  
  Offline
PostPosted: December 1st, 2016, 7:25 am 
User avatar

Joined: April 28th, 2016, 6:15 pm
Posts: 2001
Location: California
It's off by years and now off by two entire eras. Update this Siden!

_________________
Ealdorman Cerdic Beoden Accynnafon of Östlond
Runner Up of the Glas Claddach Boat Building Competition
Minister of Justice


Top
 Profile  
Reply with quote  
  Offline
PostPosted: January 6th, 2017, 7:43 pm 
User avatar

Joined: April 28th, 2016, 6:15 pm
Posts: 2001
Location: California
Could this either be updated or removed?

_________________
Ealdorman Cerdic Beoden Accynnafon of Östlond
Runner Up of the Glas Claddach Boat Building Competition
Minister of Justice


Top
 Profile  
Reply with quote  
  Offline
PostPosted: January 31st, 2017, 7:39 pm 
User avatar

Joined: April 28th, 2016, 6:15 pm
Posts: 2001
Location: California
^^^^^^^^^^

_________________
Ealdorman Cerdic Beoden Accynnafon of Östlond
Runner Up of the Glas Claddach Boat Building Competition
Minister of Justice


Top
 Profile  
Reply with quote  
  Offline
PostPosted: January 31st, 2017, 9:02 pm 
User avatar
King

Joined: June 4th, 2015, 12:02 am
Posts: 259
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

_________________
King Tiber Elenvar, third of his name.
Lord of New Isilioth
Lord of Elenya
Blood of the Ancient Kingdom of Isilioth
Grandmaster of the Drachenfeuer Order.


Top
 Profile  
Reply with quote  
  Offline
PostPosted: January 31st, 2017, 11:49 pm 
Count

Joined: April 13th, 2016, 6:40 pm
Posts: 120
Figuring it out, I'm gonna try and get it working soon.

_________________
Brillant Wizard
Count of The Scarlet Territories


Top
 Profile  
Reply with quote  
  Offline
PostPosted: February 11th, 2017, 5:01 pm 
User avatar

Joined: April 28th, 2016, 6:15 pm
Posts: 2001
Location: California
Appears it is goofed again. The calendar converter works correctly though!

_________________
Ealdorman Cerdic Beoden Accynnafon of Östlond
Runner Up of the Glas Claddach Boat Building Competition
Minister of Justice


Top
 Profile  
Reply with quote  
  Offline
PostPosted: February 12th, 2017, 6:48 am 
Count

Joined: February 9th, 2016, 4:03 am
Posts: 82
Anyone can share with me what the current code looks like? I've got an accurate calendar written in java currently, could attempt to help

_________________
Aren the Fallen

Cedrek Axefall
-Mayor of Graycott
-Earl of Graycott
-Corpse
-Traitor?


Top
 Profile  
Reply with quote  
  Offline
PostPosted: February 12th, 2017, 7:08 am 
Count

Joined: April 13th, 2016, 6:40 pm
Posts: 120
Here is the relevant code

From the date display on the header:
Quote:
<?php
$day = date('d'); //today
$month2 = date('m') + 1;
$year2 = date('y');
$date1 = '7-31-2009';
$month1 = '7';
$year1 = '09';

$month_diff = (($year2 - $year1) * 12) + ($month2 - $month1);
$canonyears_diff = $month_diff * 6;

$base_year = -2;
if($day >= 0 && day < 6) {
$extra_year = $base_year;
}
else if($day >= 6 && $day < 11) {
$extra_year = $base_year + 1;
}
else if($day >= 11 && $day < 16) {
$extra_year = $base_year + 2;
}
else if($day >= 16 && $day < 21) {
$extra_year = $base_year + 3;
}
else if($day >= 21 && $day < 26) {
$extra_year = $base_year + 4;
}
else if($day >= 26) {
$extra_year = $base_year + 5;
}

$current_year = $canonyears_diff + $extra_year;

?>


From the Calendar converter page (the accurate version):

Quote:
$( ".target" ).change(function() {
//var value = this.value; // omit "var" to make it global
//var date1 = '07/31/2009';
//$(".target").text(value);
//alert( value );
});

$('#calendar').datepicker({
minDate: '2015-11-26', //Start date, before this the dates get all messed up
dateFormat: 'yy-m-d',
inline: true,
onSelect: function(dateText, inst) {
var date = $(this).datepicker('getDate'),
day = date.getDate(),
month2 = date.getMonth() + 1,
year2 = date.getFullYear();

var date1 = '7-31-2009';
var month1 = '7';
var year1 = '2009';
month_diff = ((year2 - year1) * 12) + (month2 - month1);
canonyears_diff = month_diff * 6;

base_year = -2;
if (day >= 0 && day < 6) {
extra_year = base_year;
} else if (day >= 6 && day < 11) {
extra_year = base_year +1;
} else if (day >= 11 && day < 16) {
extra_year = base_year +2;
} else if (day >= 16 && day < 21) {
extra_year = base_year +3;
} else if (day >= 21 && day < 26) {
extra_year = base_year +4;
} else if (day >=26) {
extra_year = base_year +5;
}

current_year = canonyears_diff + extra_year;

$('#datepicker2').val(current_year + ' AI');

}
});



Remember, the one from the popup calendar is written in JS and the one for the header is written in PHP. That is how it has to be as PHPBB is weird. But obviously the logic should be the same, just different syntax.

_________________
Brillant Wizard
Count of The Scarlet Territories


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 32 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Imperium - Modified by Rey phpbbmodrey