I guess I should post this under its own thread, too.
Here’s some bad coding for a custom dashboard, if you’d like it. (The
Beeminder api files need to be placed in the appropriate places alongside
this, as well.)
Once it’s up and running, tweak to your heart’s content to make any kind of
groups you’d like. Also, it pulls a picture for each goal from a Dropbox
folder, making it easier to find graphs quickly if you have many of them,
as well as giving you something visual to add to your motivation.
dashboard.php
div.outter { float:left; border:thin solid black; padding-top: 0px; padding-right: 5px; padding-bottom: 0in; padding-left: 5px; margin: 5px; }div.inner {
float:left;
height: 275px;
width: 160px;
}
div.innersmall {
float:left;
width: 205px;
}
div.outterarchive {
background: #BABABA;
float:left;
border:thin solid black;
padding-top: 0px;
padding-right: 5px;
padding-bottom: 0in;
padding-left: 5px;
margin: 5px;
}
div.innerarchive {
background: #BABABA;
float:left;
height: 275px;
width: 160px;
}
img.MaxSized {
max-width: 150px;
max-height:43.63%;
}
Could Derail Today
"; foreach ($goals as $goal) { if ( ($goal->losedate < $endToday) ){ echo ""; echo "{$goal->limsum} \n
"; echo "slug}\" target=\"_blank\"> thumb_url}\" alt=\"{$goal->title}\"> \n
"; echo "
Needs Today's Data
"; foreach ($goals as $goal) { if ( // NAME ( // As soon as I figure out how to request whether "pessimistic presumptive" is set to "on" for a goal, I will add that here. ($goal-> goal_type == "drinker") // If you've changed your goals to the custom type, you'll have to change this to list the do-less goals individually, which uses this format: ($goal-> slug == "goalslugtitlegoeshere") || ($goal-> slug == "nextgoalslugtitle") ) && ($goal->lastday < $startToday) && ($goal->burner != "backburner") && ($goal->frozen != 1) ) { echo ""; echo "{$goal->limsum} \n
"; echo "slug}\" target=\"_blank\"> thumb_url}\" alt=\"{$goal->title}\"> \n
"; echo "slug}\" target=\"_blank\">slug}.jpg\" alt=\"{$goal->title}\"> \n
"; echo "
Limit Set
"; foreach ($goals as $goal) { if ( // Limit Set ( ($goal-> goal_type == "drinker") // The same note about custom goals applies here ) && ($goal->burner != "backburner") && ($goal->frozen != 1) ) { echo ""; echo "Max: "; echo "{$goal->limsum} \n
"; echo "slug}\" target=\"_blank\"> thumb_url}\" alt=\"{$goal->title}\"> \n
"; echo "slug}\" target=\"_blank\">slug}.jpg\" alt=\"{$goal->title}\"> \n
"; echo "
Could Derail Tomorrow
"; foreach ($goals as $goal) { if ( // NAME ($endToday < $goal->losedate) && ($goal->losedate < $endTomorrow) && ($goal->burner != "backburner") && ($goal->frozen != 1) ) { echo ""; echo "{$goal->limsum} \n
"; echo "slug}\" target=\"_blank\"> thumb_url}\" alt=\"{$goal->title}\"> \n
"; echo "slug}\" target=\"_blank\">slug}.jpg\" alt=\"{$goal->title}\"> \n
"; echo "
Could Derail This Week
"; foreach ($goals as $goal) { if ( // NAME ($endTomorrow < $goal->losedate) && ($goal->losedate < $endWeek) && ($goal->burner != "backburner") && ($goal->frozen != 1)) { echo ""; echo "{$goal->limsum} \n
"; echo "slug}\" target=\"_blank\"> thumb_url}\" alt=\"{$goal->title}\"> \n
"; echo "slug}\" target=\"_blank\">slug}.jpg\" alt=\"{$goal->title}\"> \n
"; echo "
Work Projects
"; foreach ($goals as $goal) { if ( ((substr($goal->title, -6)) == "(Work)") // When you change this, don't forget to change the "6" to the right number of characters ) { echo ""; echo "{$goal->limsum} \n
"; echo "slug}\" target=\"_blank\"> thumb_url}\" alt=\"{$goal->title}\"> \n
"; echo "slug}\" target=\"_blank\">slug}.jpg\" alt=\"{$goal->title}\"> \n
"; echo "
Active Goals
"; foreach ($goals as $goal) { if ( ($goal->burner != "backburner") ) { echo ""; echo "{$goal->limsum} \n
"; echo "slug}\" target=\"_blank\"> thumb_url}\" alt=\"{$goal->title}\"> \n
"; echo "slug}\" target=\"_blank\">slug}.jpg\" alt=\"{$goal->title}\"> \n
"; echo "
'On Hold' or 'To Be Archived'
"; foreach ($goals as $goal) { if ( // NAME ($goal->burner == "backburner") ) { echo ""; echo "{$goal->limsum} \n
"; echo "slug}\" target=\"_blank\"> thumb_url}\" alt=\"{$goal->title}\"> \n
"; echo "slug}\" target=\"_blank\">slug}.jpg\" alt=\"{$goal->title}\"> \n
"; echo "{$goal->frozen} \n
"; echo "
==================================