WWWiki:Scratchpad

From World Wind Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 05:19, 7 February 2005 (edit)
Jessi (Talk | contribs)
(wiki - more response to llynix)
← Previous diff
Current revision (19:42, 28 August 2009) (edit) (undo)
Mkpl (Talk | contribs)
m (Reverted edits by NochiTamon (Talk); changed back to last version by Mkpl)
 
(67 intermediate revisions not shown.)
Line 1: Line 1:
-=Jessi=+This is some information on what needs to be done for the wiki. There was a lot of information in this document which may be out of date, hopefully it will get sorted through soon.
-* Figure out namespace policy+
-* Initial top-level organization+
-* Style guide? (Do you mean guidelines?) (yeah -jessi)+
-* Import Worldwind.arc.nasa.gov redesign plan, SourceForge tutorials, manuals, FAQ, etc.+
-* After DNS gets updated and this is wiki.worldwindcentral.com we need to (pending discussion) temp make a few moderators on the forums so they can easily cut and paste into the wiki. Also for things like FAQ, Lists, and other hot topics a message pointing to the new wiki'ized version should be put up there. (okay, let's talk about it on IRC -jessi)+If you feel like contributing to any page, please do so, especially for the pages below.
-* <strike> Collaborate with Worldwindcentral staff on transferring Wiki to them (almost there) </strike>+==Pages that require attention==
-* <strike>2ndary header; footer NASA-site standardization; sidebar graphic</strike>+===User Pages===
-* <strike>Better, locally hosted tutorial (or link to MediaWiki user guide)</strike>+*'''update pages for 1.4 release ([[World Wind FAQ]], [[:Category:End User Documentation]], [[:Category:Dev]])'''
 +*examples of WW use:
 +**[[Personal]]
 +**[[Education]]
 +**[[Professional/Business]]
 +*[[USGS]] shortly describe 3 USGS layers; link to [[USGS Urban Areas]]
 +*[[Main Page]] needs polishing (it should scale nicely on all browsers and screen resolutions)
 +*[[Product Comparison]] comparison of virtual globes; add more features and info
 +*Pages need to be [[Special:Categories|categorized]] better
 +*Improve [[World Wind Central]]
-=Llynix=+====External Pages====
 +*[http://en.wikipedia.org/wiki/World_wind_central WWC on Wikipedia]
 +*[http://en.wikipedia.org/wiki/NASA_World_Wind World Wind on Wikipedia] :: [http://en.wikipedia.org/wiki/Talk:NASA_World_Wind Discussion page]
-==wiki==+==Information below this point may be outdated==
-*Figure out how to set up a Developers Sketchpad that doesn't have the share-alike clause. +===(Partially) Done===
 +*[[World Wind Walkthrough Tutorial]]
 +*[[World Wind Users Document]]
-:*Ok I looked into this. The options are (in order from easiest to hardest): 1) just place a warning up on any dev pages saying that the content on these pages is copyright original author and is up for evaluation, testing and for open comment purposes only. 2) Put a go between page on the license policy that explains the funny 'dual' license. 3) Try our best to 'hack' media wiki to accept two licenses. +===Administration===
 +*[[World Wind Wiki:Help]]
 +*[[World Wind Wiki:Copyrights]]
 +*[[World_Wind_Wiki:Protected_page]] - explains why some pages are protected
 +*[[World Wind Wiki:User preferences help]] - page explaining user preferences
-::(''i think #1 would be fine. just mention at the top and bottom of dev articles that this page is specifically exempted from the Creative Commons Attribution-ShareAlike license. --[[User:Jessi|Jessi]] 22:16, 6 Feb 2005 (MST))+===Non-English Pages===
 +The following pages need to be translated into their respective languages and may need supporting text. Note that the wiki is having issues with Chinese characters.
 +*[[Chinese]]
 +*[[French]]
 +*[[German]]
 +*[[Portuguese]]
-*<strike>Get worldwind style links to work:</strike> [worldwind://goto/lat=36.1589&lon=-112&altitude=31010.4 WW Link]+The installer needs to be translanted into non English languages as well.
 +*[[Installer Translations]]
 +==wiki==
 +*Figure out how to set up a Developers Sketchpad that doesn't have the share-alike clause.
 +:*Ok I looked into this. The options are (in order from easiest to hardest): 1) just place a warning up on any dev pages saying that the content on these pages is copyright original author and is up for evaluation, testing and for open comment purposes only. 2) Put a go between page on the license policy that explains the funny 'dual' license. 3) Try our best to 'hack' media wiki to accept two licenses.
 +::(''i think #1 would be fine. just mention at the top and bottom of dev articles that this page is specifically exempted from the Creative Commons Attribution-ShareAlike license. --[[User:Jessi|Jessi]] 22:16, 6 Feb 2005 (MST))
*Do a diff with mediawiki 1.4b5 figure out what files you messed with. *Do a diff with mediawiki 1.4b5 figure out what files you messed with.
**Done [[Diff]] (This is old?) **Done [[Diff]] (This is old?)
**I'm slowly unraveling the mess. Some files I can't help changing and will have to patch each time. But apparently I shouldn't have screwed with MonoBook.php which I modified heavily. There is a more elegant solution, but I haven't figured it out yet. (Simply renaming it to another skin doesn't work and will break your account, luckily I can copy / paste in the database :) **I'm slowly unraveling the mess. Some files I can't help changing and will have to patch each time. But apparently I shouldn't have screwed with MonoBook.php which I modified heavily. There is a more elegant solution, but I haven't figured it out yet. (Simply renaming it to another skin doesn't work and will break your account, luckily I can copy / paste in the database :)
-* Apparently you can add a logo to the [worldwind://] link above using css. If so I'd like the GOTO logo associated with it. External link logo shows up in IE, does not in firefox. 
- 
-: (''can you post the CSS and i can take a look? if this is still an issue. --[[User:Jessi|Jessi]] 22:19, 6 Feb 2005 (MST)'') 
- 
-==installer== 
- 
-*[http://forums.winamp.com/showthread.php?s=&threadid=196640 Winamp forum thread] about multiple instancies. 
-*Localize 
-*check .NET function, maybe rewrite. 
- 
-=Whoever= 
- 
-Placename links: 
-http://earth-info.nga.mil/gns/html 
-http://geonames.usgs.gov/gnishome.html 
- 
- 
- 
-=Dave= 
-*point mars and proxy, but I'm not sure how nowak has it orginized and we're not at all ready yet. 
-*unpack your house :) 
=World Wind Central Hotspots= =World Wind Central Hotspots=
Line 53: Line 55:
*recode index.php for 3 querys instead of one. *recode index.php for 3 querys instead of one.
*Add a commenting system *Add a commenting system
-*multiple images+*multiple images - [[List of Duplicate Hotspots]]
-*remove unneeded images : http://hotspots.worldwindcentral.com/uploads/diff.txt+*remove unneeded images : http://hotspots.worldwindcentral.com/uploads/diff.txt (done, need to check numbers again though)
 + 
==Database work== ==Database work==
*image needs a user attached *image needs a user attached
Line 61: Line 64:
==Todo== ==Todo==
-*add all information to view_hotspot infobox+*add world info to worldwind url
 +*add layer info to worldwind url
 +*add all information to view_hotspot infobox (mostly done, need to fix comments)
 +*finish up cookie code, which works now but has a security risk
*rip out image code *rip out image code
*Create accounts like admin,sysop,root, and make them trolls. Also perhaps george carlins 7? *Create accounts like admin,sysop,root, and make them trolls. Also perhaps george carlins 7?
*Add date submited to infobox *Add date submited to infobox
-*Add full clickable category in infobox 
*I would like addhotspot to utilize View On World before actually adding a hotspot. That way users could see where it is, their image and data before actually adding the hotspot. In addition we should check and display any hotspots in the area to cut down on duplicates *I would like addhotspot to utilize View On World before actually adding a hotspot. That way users could see where it is, their image and data before actually adding the hotspot. In addition we should check and display any hotspots in the area to cut down on duplicates
*Add a user level system (in progress) *Add a user level system (in progress)
-*Top 10 users 
*Add a news system (this should be a wwc main site project?) *Add a news system (this should be a wwc main site project?)
*for each category.. a view all on map *for each category.. a view all on map
Line 100: Line 104:
correctly. correctly.
</pre> </pre>
 +
 +Hmm.. might work better
 +<pre>
 +function translate_uri($uri) {
 + $parts = explode('/', $uri);
 + for ($i = 0; $i < count($parts); $i++) {
 + $parts[$i] = rawurlencode($parts[$i]);
 + }
 + return implode('/', $parts);
 +}
 +</pre>
 +
 +===Done?===
 +*Add full clickable category in infobox
 +*Top 10 users
 +
 +[[Category:Dev]]

Current revision

This is some information on what needs to be done for the wiki. There was a lot of information in this document which may be out of date, hopefully it will get sorted through soon.

If you feel like contributing to any page, please do so, especially for the pages below.

Contents

[edit] Pages that require attention

[edit] User Pages

[edit] External Pages

[edit] Information below this point may be outdated

[edit] (Partially) Done

[edit] Administration

[edit] Non-English Pages

The following pages need to be translated into their respective languages and may need supporting text. Note that the wiki is having issues with Chinese characters.

The installer needs to be translanted into non English languages as well.

[edit] wiki

  • Figure out how to set up a Developers Sketchpad that doesn't have the share-alike clause.
  • Ok I looked into this. The options are (in order from easiest to hardest): 1) just place a warning up on any dev pages saying that the content on these pages is copyright original author and is up for evaluation, testing and for open comment purposes only. 2) Put a go between page on the license policy that explains the funny 'dual' license. 3) Try our best to 'hack' media wiki to accept two licenses.
(i think #1 would be fine. just mention at the top and bottom of dev articles that this page is specifically exempted from the Creative Commons Attribution-ShareAlike license. --Jessi 22:16, 6 Feb 2005 (MST))
  • Do a diff with mediawiki 1.4b5 figure out what files you messed with.
    • Done Diff (This is old?)
    • I'm slowly unraveling the mess. Some files I can't help changing and will have to patch each time. But apparently I shouldn't have screwed with MonoBook.php which I modified heavily. There is a more elegant solution, but I haven't figured it out yet. (Simply renaming it to another skin doesn't work and will break your account, luckily I can copy / paste in the database :)

[edit] World Wind Central Hotspots

[edit] In Progress

[edit] Database work

  • image needs a user attached
  • hotspots needs date attached (import from image)
  • set unknown dates to site launch (oct 14?)

[edit] Todo

  • add world info to worldwind url
  • add layer info to worldwind url
  • add all information to view_hotspot infobox (mostly done, need to fix comments)
  • finish up cookie code, which works now but has a security risk
  • rip out image code
  • Create accounts like admin,sysop,root, and make them trolls. Also perhaps george carlins 7?
  • Add date submited to infobox
  • I would like addhotspot to utilize View On World before actually adding a hotspot. That way users could see where it is, their image and data before actually adding the hotspot. In addition we should check and display any hotspots in the area to cut down on duplicates
  • Add a user level system (in progress)
  • Add a news system (this should be a wwc main site project?)
  • for each category.. a view all on map
  • Need to automagically change them to hyperlinks.. but then also have to do something about the length of them because it messes up the layout if the link is too long
Nowak: s/(^http:\/\/|^)([^\/]*).*(\/[^\/]*(\/$|$))/\1\2\/...\3/

try this :D

echo "http://test.com/a/b/c/d.php" | sed -E ' s/(^http:\/\/|^)([^\/]*).*(\/[^\/]*(\/$|$))/\1\2\/...\3/'

http://test.com/.../d.php
  • set redirects on add / edit / delete hs (goto)
  • if a category is empty it's name doesn't show up
  • allow worldwind:// style entry
(again provided by nowak)
$wwc = array();
if (strncasecmp($link, 'worldwind://goto/', 17)) return array2object($wwc);
$types = array('lon' => 'float', 'altitude' => 'float', 'world' => 'string');
foreach (explod('&', substr($link,17)) as $field) {
  $field = explod('=',$field, 2);
  $x .= $field[0] . '->' . $field[1] . ' | ';
  if (isset($field[0]) && array_key_exists($field[0], $types)) {
    settype($field[1], $types[$field[0]]);
    $wwc[$field[0]] = $field[1];
  }
}
$wwc should be an array with all the info if I'm reading the code 
correctly.

Hmm.. might work better

function translate_uri($uri) {
   $parts = explode('/', $uri);
   for ($i = 0; $i < count($parts); $i++) {
     $parts[$i] = rawurlencode($parts[$i]);
   }
   return implode('/', $parts);
}

[edit] Done?

  • Add full clickable category in infobox
  • Top 10 users
Personal tools