#19: new version splash (Open)

Jan 16 2008 * 21:11
Reported by:   Assigned to:  
Priority: Normal  Milestone:  
Release:    Component:  add-art Firefox extension 

on first load, user is shown who the new curator is and new the artists.

Changelog:

Modified by – Jan 18 2008 * 13:50

  • Component set to add-art Firefox extension

Modified by Michael – Mar 26 2008 * 20:42

Here is code for this

// put this at the very top // version needs to be changed for every major version change for pop up // version = ‘0.0.7.1’; firstRun(version);

function firstRun(version){

// for resetting this script for debugging // GM_setValue(‘firstRun’, 0);

// if (version != GM_getValue(‘firstRun’))){ if (!GM_getValue(‘firstRun’) || version != GM_getValue(‘firstRun’)){ addGlobalStyle(‘div#firstRun a { color: #ccf;}’); var box = document.createElement(“div”); //box.setAttribute(“title”,”Click box to expand/collapse”); box.setAttribute(“id”,”firstRun”); box.setAttribute(“style”,”position:fixed;z-index:99;top:15px;left:15px;background-color:#FF8B19;padding:4px;text-align:left;opacity:.85;font:12pt sans-serif;color:#fff;overflow:hidden;width:400px;height:auto;margin:15px;padding-bottom:15px;padding-right:15px;padding-left:15px;-moz-border-radius-bottomleft:20px;-moz-border-radius-bottomright:20px;-moz-border-radius-topleft:20px;-moz-border-radius-topright:20px;”); box.innerHTML = ‘Welcome to the Real Costs v 0.0.7.1<p>Bug Fixes:</p> Fixes bugs associated with URLs beginning with numbersComing Soon:</p> Integration with Yahoo Maps</a>, and Google Local</a> Integration with HopStop</a> and Google Transit</a>this will only appear once</p>click here to close box’; document.getElementsByTagName(“body”)[0].appendChild(box);

var listenCloseFirstRun = document.getElementById('closeFirstRun');
    listenCloseFirstRun.addEventListener("click", closeFirstRun, true);
// un-commment this out for release!!!!!!!
    GM_setValue('firstRun', version);
}

}

function closeFirstRun(){ document.getElementById(‘firstRun’).style.display = ‘none’; }

Modified by Michael – Mar 26 2008 * 20:44

Put this at the very top

// version needs to be changed for every major version change for pop up //
    version = '0.0.7.1';
    firstRun(version);

This does the dirty work

{{{

function firstRun(version){

// for resetting this script for debugging // GM_setValue(‘firstRun’, 0);

// if (version != GM_getValue(‘firstRun’))){ if (!GM_getValue(‘firstRun’) || version != GM_getValue(‘firstRun’)){ addGlobalStyle(‘div#firstRun a { color: #ccf;}’); var box = document.createElement(“div”); //box.setAttribute(“title”,”Click box to expand/collapse”); box.setAttribute(“id”,”firstRun”); box.setAttribute(“style”,”position:fixed;z-index:99;top:15px;left:15px;background-color:#FF8B19;padding:4px;text-align:left;opacity:.85;font:12pt sans-serif;color:#fff;overflow:hidden;width:400px;height:auto;margin:15px;padding-bottom:15px;padding-right:15px;padding-left:15px;-moz-border-radius-bottomleft:20px;-moz-border-radius-bottomright:20px;-moz-border-radius-topleft:20px;-moz-border-radius-topright:20px;”); box.innerHTML = ‘Welcome to the Real Costs v 0.0.7.1<p>Bug Fixes:</p> Fixes bugs associated with URLs beginning with numbersComing Soon:</p> Integration with Yahoo Maps</a>, and Google Local</a> Integration with HopStop</a> and Google Transit</a>this will only appear once</p>click here to close box’; document.getElementsByTagName(“body”)[0].appendChild(box);

var listenCloseFirstRun = document.getElementById('closeFirstRun');
    listenCloseFirstRun.addEventListener("click", closeFirstRun, true);
// un-commment this out for release!!!!!!!
    GM_setValue('firstRun', version);
}

} function closeFirstRun(){ document.getElementById(‘firstRun’).style.display = ‘none’; }

)))

Modified by – May 02 2008 * 02:52

  • Assigned user set to tobi-x

get on it Tobi! Make us proud.

Modified by – May 02 2008 * 12:39

GM_* and addGlobalStyle() are GreaseMonkey functions

Firefox preference handling: And a nice wrapper around them:

Modified by – May 27 2008 * 18:10

Just noticed Flashgot takes you to an update page on restart i.e.: http://flashgot.net/?ver=1.0&prev=0.9.9

We could comb their code and do this.

Modified by – Jun 01 2008 * 00:27

  • Assigned user reset (from tobi-x)

Mattk and SteveL worked really hard on this one tonight. All our work is in /branches/versionsplash. It’s not entirely there but it’s very close. Works great on one machine and inconsistent on another. Hoping to be ready for 0.5.3 release.

Modified by – Jun 21 2008 * 15:36

  • Priority changed from Enhancement to Normal

switching to normal since this would allow us to better communicate with our users.

Add comment and/or change ticket properties




Status: Assigned to:
Priority: Milestone:
Release:    Component: