Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Difference between revisions of "Appropedia:Site development/archive (Admin tasks)"

From Appropedia
Jump to: navigation, search
(List poisoning for the wiki and/or forum?: == Image upload... == - need warnings)
(Misc old issues: de-link deleted page - don't want anyone to recreate)
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{shortcut|[[a:at]]}}
+
----
=Suggested tasks=
+
<center>'''This an archived page.''' </center>
==Enable Firefox users to add an Appropedia search to their toolbar==
+
Currently if viewing Appropedia, and you select "Add Appropedia (English)" from the search menu, it comes back with the warning:
+
:'''Download error'''
+
:Firefox could not download the search plugin from http://www.appropedia.org/Opensearch_desc.php
+
--[[User:Chriswaterguy|Chriswaterguy]] &middot; <small>[[User talk:Chriswaterguy|talk]]</small> 19:05, 6 March 2007 (PST)
+
::Wohoo!  I think it is fixed.  The code is somewhat undeveloped, and I think that there may be some functionality built into mediawiki (since there is already atom and rss feeds) that we are not using.  For now the additional fix came just from excluding the rewrite of opensearch_desc.php, by adding to .htaccess the following code-
+
:<code>RewriteCond %{REQUEST_URI} !^/opensearch_desc.php</code>
+
:--[[User:Lonny|Lonny]] 17:27, 11 May 2007 (PDT)
+
  
==Add bigger edit toolbar==
 
Add bigger edit toolbar, like Wikipedia now has. This includes a redirect button, which I'd find useful. There might be other useful things to add as well, in future, so it would be good to document here. --[[User:Chriswaterguy|Chriswaterguy]] &middot; <small>[[User talk:Chriswaterguy|talk]]</small> 17:34, 30 April 2007 (PDT)
 
  
==List poisoning for the wiki and/or forum?==
+
<center>'''To respond or edit to an item, please see the relevant item [https://secure.bettermeans.com/projects/181/dashboard BetterMeans workstream] or comment on the current page, [[Appropedia:Site development/Desired features]] or its talk page - not here.'''</center>
Only if it's easy... Is it worth doing {{WP|list poisoning}} on the wiki and/or forum? This could ''possibly'' reduce the impact of {{WP|email harvesting}} by reducing the value of any list of email addresses harvested from the site. Not sure if it would actually make a difference... It also assumes that some people will not adequately encrypt their email addresses - a safe assumption, especially if we assume that sophisticated email harvesting bots can figure out basic encryption (e.g. fred AT domain DOT com, or use of NOSPAM as part of the address). The relevant lists of email addresses would need to be somewhere that's not noticeable/obtrusive to a human web surfer.
+
  
It would also be a bit of a contribution by us to the global spam problem. --[[User:Chriswaterguy|Chriswaterguy]] &middot; <small>[[User talk:Chriswaterguy|talk]]</small> 22:46, 17 May 2007 (PDT)
 
  
== Image upload... ==
+
<center>Feel free to copy and quote from the discussion below if you wish to, in your new edit or comment on the current page.</center>
  
Image uploading needs a wizard, or at the very least some prominent warning notices. Images are being uploaded without license and attribution info.
+
----
 +
[[Category:Archived pages]]
 +
  
At the Wikmedia Commons upload page, [[Commons:Project:Upload]], questions are asked in large font. Hard to miss. And on clicking through (if logged in) a further warning in red stands out from the other text, saying "If you do not provide suitable license and source information, your file will be deleted without further notice. Thanks for your understanding."
+
{{help us tech}}
 +
 
 +
{{shortcut|A:AT}}
 +
=Suggested tasks=
 +
:''To suggest a new feature, see [[Appropedia:Desired features]]. Other tasks go here.''
  
--[[User:Chriswaterguy|Chriswaterguy]] &middot; <small>[[User talk:Chriswaterguy|talk]]</small> 07:48, 2 November 2007 (PDT)
+
===UTC timestamp===
 +
Change the time stamp from PDT/PST to UTC (or GMT which is the same thing... for some reason UTC is used at Wikipedia - maybe GMT suggests the user is in the UK, whereas UTC is just a universal time?)  --[[User:Chriswaterguy|Chriswaterguy]] &middot; <small>[[User talk:Chriswaterguy|talk]]</small> 16:33, 21 December 2007 (PST)
  
 
=Current Work=
 
=Current Work=
Line 66: Line 61:
 
:See [[User:Chriswaterguy]] / [[User:Singkong2005]] for an example.
 
:See [[User:Chriswaterguy]] / [[User:Singkong2005]] for an example.
 
==Site Map==
 
==Site Map==
*[http://www.mediawiki.org/wiki/Extension:Google_Sitemap Google Sitemap extension]
+
*http://forums.appropedia.org/blog/making-sitemap-opensource-documentation-wild-goose-chase
*Somewhere [[User:Lonny|I]] have a detailed set of instructions on how I made this happen.  I will try to find them.
+
 
+
;Must visit [[Special:GoogleSitemap&limit=5500]] often.  Change limit to meet number of pages we want indexed.
+
  
 
==Interwiki map==
 
==Interwiki map==
Line 171: Line 163:
 
===More notes===
 
===More notes===
 
Still not working correctly.
 
Still not working correctly.
 +
 +
== Fix RecentChanges cache ==
 +
 +
Fix RecentChanges cache (?) so it's possible to view more than 7 days:
 +
 +
A simple code change which seems to produce something more like the intended results (suggested by Woozle from Issuepedia):
 +
 +
 +
:'''<nowiki>in SpecialRecentchanges.php, line 226 -- currently "conds[] = 'rc_timestamp >= ' . $dbr->addQuotes( $cutoff );" -- change the ">=" to "<=".</nowiki>'''
 +
 +
Woozle says:
 +
 +
"I don't know if this is a known bug or even a genuine bug (rather than a misunderstanding on my part), but maybe you can test that and see if it works as expected.
 +
 +
"Or, more to the point, consistently works as expected... it seemed to do fine for me, but I only did one test."
 +
 +
''Done - some months ago. --[[User:Chriswaterguy|Chriswaterguy]] 21:52, 8 July 2011 (PDT)''
 +
 +
== Misc old issues ==
 +
 +
<small>''These notes were made at "Appropedia:Site development/priorities/archive" and I was the only editor. I now realize these all fit under "Admin tasks" also. I'm deleting the original rather than creating a redirect, as I want to keep the site development subpages tidy.''</small>
 +
 +
# WYSIWYG editor - FCKEditor looks very close, but not ready yet. We need a replacement for Uniwiki, which is proving to be a problem for some editors, and which clashes with Mediawiki 1.14. So either we work with wikiHow on accelerating the implementation of [https://svn.wikia-code.com/wikia/trunk/extensions/wikia/Wysiwyg/ Wikia's WYSIWYG editor code] (which contains a lot of wikia specific hooks) or we find an alternative interface (any suggestions?) - '''Done'''
 +
# Social features: better integration with network sites such as [http://www.wiserearth.org/ WiserEarth] and [http://www.globalswadeshi.net/ GlobalSwadeshi], and better ways of monitoring activity and engaging with people in Appropedia - [[mw:Extension:SocialProfile]]?. (Also: better display of RSS feeds, so people can display their blogs in their userspace; [[Appropedia:Desired features #Fan mail|Fan mail]]; OpenSocial) - '''Done'''
 +
* Setting up a test site, for checking new features and settings and making sure they don't break the site, before running them live. This will be MediaWiki, with all the extensions and settings we have now, then adding new features to see if they work. We've been promised help with this, but if you are able to assist, that would be fantastic.  - '''Done'''
 +
 +
The next rank of issues include:
 +
* [[Appropedia:Desired_features#Search_improvements|Search improvements]] including [[Appropedia:Desired_features#Custom_searches|Custom searches]]. '''- other needs are higher priority''' -> [https://secure.bettermeans.com/issues/7818 active task at Bettermeans]. 
 +
* <s>[[Appropedia:Desired_features#Special_license_namespace.28s.29|Special license namespace(s)]]</s> - we decided to use the mainspace, but add the {{tl|open access}} notice (or other relevant notice) to the top of each page that doesn't fit the [[Appropedia:Copyrights|Appropedia license]]. '''- Done? Using "Original:" till we think of something better.'''
 +
 +
Previous list of priorities
 +
* [[blogs:|blog]] [[Appropedia:User_experience/New_skin#Wordpress_themes_for_the_blog|skin]]
 +
* forums (on hold - [http://www.globalswadeshi.net/ Global Swadeshi] is performing this role for now.) - ''See [[A:Forums]].''
 +
* [[Appropedia:Wikilink bot|wikilink bot]] - kind of working. [[User:Chriswaterguy|Chriswaterguy]] got this working to a degree, but as at early 2009, nothing has been done for some months. ''Update'': now working and in use. --[[User:Chriswaterguy|Chriswaterguy]] 02:49, 16 February 2010 (UTC)
 +
* [[Appropedia:Desired_features#Special_license_namespace.28s.29|Special license namespace(s)]]
 +
 +
(priorities suggested by [[User:Chriswaterguy|Chriswaterguy]] &middot; <small>[[User talk:Chriswaterguy|talk]]</small> 00:43, 5 November 2007 (PST), updated 23:29, 18 February 2009 (UTC) and 22:54, 8 July 2011 (PDT))
  
 
==See also==
 
==See also==
*[[Appropedia:To do]]
+
 
 +
* [[Appropedia:To do]]
  
 
[[Category:Appropedia maintenance]]
 
[[Category:Appropedia maintenance]]
 +
[[Category:Appropedia tasks]]

Latest revision as of 01:03, 9 July 2011


This an archived page.


To respond or edit to an item, please see the relevant item BetterMeans workstream or comment on the current page, Appropedia:Site development/Desired features or its talk page - not here.


Feel free to copy and quote from the discussion below if you wish to, in your new edit or comment on the current page.


Help us! If you can help us with the technical needs here, please edit this page, leave a note via the talk page or even better, join our tech team or just lend a hand on our site development.
You can make a huge difference to our work that's changing the world!


Shortcut:
A:AT

Suggested tasks[edit]

To suggest a new feature, see Appropedia:Desired features. Other tasks go here.

UTC timestamp[edit]

Change the time stamp from PDT/PST to UTC (or GMT which is the same thing... for some reason UTC is used at Wikipedia - maybe GMT suggests the user is in the UK, whereas UTC is just a universal time?) --Chriswaterguy · talk 16:33, 21 December 2007 (PST)

Current Work[edit]

Completed Tasks[edit]

Make redirects show in italic on Special:Allpages[edit]

Done - the fix is in the Common.css file.

Import Images from WikiGreen[edit]

These steps were completed for integrating WikiGreen (ExportWIkiSite) into Appropedia (ImportWIkiSite), but could be used to upload many photos from any repository:

  1. download images folder from ExportWikiSite
  2. Remove unwanted folders, such as temp, archive and thumb (these will be recreated)
  3. Flatten directory
    • I know that there is some way to do this with tar, or recursive copy, but I gave up and downloaded the freeware xxcopy (www.xxcopy.com)
    • xxcopy "C:\ImageFolder" "C:\ImageFolderFlat" /SG
    • Make sure to use /SG the one normally suggested renames augments the filenames.
  4. Check for duplicates with ImportWikiSite
    • Rename any duplicates, then (if you are importing pages as well) find reference to the old name in the imported pages and change name to the new name.
  5. Use importImages.php
    • For some reason the version show php5 but commands were being executed by php4 so I used: /usr/local/php5/bin/php importImages.php --user=Lonny --comment="From www.wikigreen.org via Eric Blazek" ../WGImgFlat png
    • Do this for each filetype, e.g. jpg, gif, etc.
  6. In addition, something happened to the importImages.php file in transport, so I redownloaded it, and everything worked.

Import Pages from another wiki[edit]

How did we do that?

Renaming a user[edit]

  1. Download the three files at http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/Renameuser/
    • SpecialRenameuser.i18n.php, SpecialRenameuser.php, SpecialRenameuser_body.php
  2. Copy these three files to the /includes directory
  3. Download the ExtensionFunctions.php
  4. Copy the ExtensionFunctions.php to the main directory
  5. Add the following line to the LocalSettings.php near the other require_once lines.
    • include_once('includes/SpecialRenameuser.php'); #LRG 1_14_07 used for renaming users
  6. Log in and navigate to Special:Renameuser
  7. Manually move the Userpage and any Userpage/subpages.
I wrote this up in a more general form at http://meta.wikimedia.org/wiki/Renameuser
How to rewrite old signatures? A bot maybe.
See User:Chriswaterguy / User:Singkong2005 for an example.

Site Map[edit]

Interwiki map[edit]

See Appropedia:Admin_tasks/Interwiki_map.

Automatic Domain and Database Backups[edit]

Appropedia:Admin_Tasks/Automatic_backups

ImageMap Extension[edit]

Available to Mediawiki version 1.9. Allows us to have our featured project image lead to the project rather than the image info.

  1. Make a directory in extensions: ImageMap
    mkdir ~/appropedia.org/extensions/ImageMap
  2. Download all files from subversion http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/ImageMap/ the newly created ImageMap directory.
  3. Add the following line to LocalSettings.php
    require_once( "$IP/extensions/ImageMap/ImageMap.php" );

Find more detailed information here http://www.mediawiki.org/wiki/Extension:ImageMap

CategoryTree extension[edit]

Details and download: http://www.mediawiki.org/wiki/Extension:CategoryTree

Follow instructions in the README file.

Important: Change the file permissions recursively for extensions/CategoryTree.

chmod -R 771 CategoryTree

--GoodSignal 15:20, 29 April 2007 (PDT)

New User Welcome Message[edit]

New users that register an email are automatically sent a confirmation code to validate their address. This seems like the appropriate place to add general Welcome to Appropedia.org information.

Edit the confirmation/welcome message here: MediaWiki:Confirmemail body

Short URLs[edit]

  • See wikimedia and User:Helge.at
  • Set path in LocalSettings.php to $wgArticlePath = "/$1";
  • Added .htaccess to root with the following content
RewriteEngine on

# Don't rewrite requests for files in MediaWiki subdirectories,
# MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt
RewriteCond %{REQUEST_URI} !^/(stylesheets|images|skins|extensions)
RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php
RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html
RewriteCond %{REQUEST_URI} !^/favicon.ico
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteCond %{REQUEST_URI} !^/nowiki
# include these last two lines if you use the analog stats
RewriteCond %{REQUEST_URI} !^/failed_auth.html$
RewriteCond %{REQUEST_URI} !^/stats

RewriteRule ^(.*)$ index.php?title=$1 [QSA]

Input box[edit]

AWStats[edit]

Some specifics after installing AWstats. See http://wiki.dreamhost.com/index.php/AWStats_Installation for nice instructions.

MediaWiki Upgrade 1.9.2[edit]

Appropedia:Admin_Tasks/Upgrade_checklist

Perl to run the page[edit]

perl /home/lonny1/awstats/tools/awstats_buildstaticpages.pl  -config=appropedia.org -update \  -awstatsprog=/home/lonny1/awstats/cgi-bin/awstats.pl  -dir=/home/lonny1/appropedia.org/statistics/

Changes to log file[edit]

LogFile="/home/lonny1/logs/appropedia.org/http/access.log"
LogFormat="%host %other %other %time1 %methodurl %code %bytesd %refererquot %uaquot"
SiteDomain="appropedia.org"
HostAliases="www.appropedia.org"
DNSLookup=0
DirData="/home/lonny1/awstats/data/"
DirIcons="icon"
SaveDatabaseFilesWithPermissionsForEveryone=0
DefaultFile="index.php index.html"

Cron -e[edit]

One every hour on the fifteen minute mark.

15 0 * * * perl /home/lonny1/awstats/tools/awstats_buildstaticpages.pl
-config=appropedia.org -update
-awstatsprog=/home/lonny1/awstats/cgi-bin/awstats.pl
-dir=/home/lonny1/appropedia.org/statistics/

Once per day at 3am:

0 3 * * * perl /home/lonny1/awstats/tools/awstats_buildstaticpages.pl
-config=buildcapacity.org -update
-awstatsprog=/home/lonny1/awstats/cgi-bin/awstats.pl
-dir=/home/lonny1/buildcapacity.org/statistics/

Future steps[edit]

  • Password protect the folder [1].

More notes[edit]

Still not working correctly.

Fix RecentChanges cache[edit]

Fix RecentChanges cache (?) so it's possible to view more than 7 days:

A simple code change which seems to produce something more like the intended results (suggested by Woozle from Issuepedia):


in SpecialRecentchanges.php, line 226 -- currently "conds[] = 'rc_timestamp >= ' . $dbr->addQuotes( $cutoff );" -- change the ">=" to "<=".

Woozle says:

"I don't know if this is a known bug or even a genuine bug (rather than a misunderstanding on my part), but maybe you can test that and see if it works as expected.

"Or, more to the point, consistently works as expected... it seemed to do fine for me, but I only did one test."

Done - some months ago. --Chriswaterguy 21:52, 8 July 2011 (PDT)

Misc old issues[edit]

These notes were made at "Appropedia:Site development/priorities/archive" and I was the only editor. I now realize these all fit under "Admin tasks" also. I'm deleting the original rather than creating a redirect, as I want to keep the site development subpages tidy.

  1. WYSIWYG editor - FCKEditor looks very close, but not ready yet. We need a replacement for Uniwiki, which is proving to be a problem for some editors, and which clashes with Mediawiki 1.14. So either we work with wikiHow on accelerating the implementation of Wikia's WYSIWYG editor code (which contains a lot of wikia specific hooks) or we find an alternative interface (any suggestions?) - Done
  2. Social features: better integration with network sites such as WiserEarth and GlobalSwadeshi, and better ways of monitoring activity and engaging with people in Appropedia - mw:Extension:SocialProfile?. (Also: better display of RSS feeds, so people can display their blogs in their userspace; Fan mail; OpenSocial) - Done
  • Setting up a test site, for checking new features and settings and making sure they don't break the site, before running them live. This will be MediaWiki, with all the extensions and settings we have now, then adding new features to see if they work. We've been promised help with this, but if you are able to assist, that would be fantastic. - Done

The next rank of issues include:

Previous list of priorities

(priorities suggested by Chriswaterguy · talk 00:43, 5 November 2007 (PST), updated 23:29, 18 February 2009 (UTC) and 22:54, 8 July 2011 (PDT))

See also[edit]