User talk:Kotra

From PortlandWiki
Revision as of 07:24, 28 July 2010 by Peteforsyth (Talk | contribs) (Two things--)

Jump to: navigation, search
Current discussions
Other site-wide discussions are found here.
add/remove discussions  
watch for changes

Welcome to The Portland Civic Wiki. This is an unofficial wiki of Portland. This wiki is meant to help enable the citizens of the Portland Metropolitan Area be able to better connect, take part in, and improve their communities. So welcome; poke around, edit, try some stuff out, and have fun. Thanks. Michael

Great Logo!

Nice work on this! Best, MarkDilley

Thanks! It's not necessarily final, so let me know if you have any suggestions for improvement. -Kotra 02:21, 5 November 2009 (UTC)

Re: Welcome

Thanks for the encouragement, Kotra! I'll probably be adding a lot of historical details when I get the time... the sort of stuff that might be a little too specific for Wikipedia. If I'm available on Jan. 6, I'll try and come to the Wiki Wednesdays! Khris.soden (talk) 01:59, 26 December 2009 (UTC)

(replied at User talk:Khris.soden) -kotra (talk) 19:39, 26 December 2009 (UTC)

I'm glad you're liking what I've been doing! I'm happily free from my office this weekend, so I'm hoping to add quite a bit more content! Khris.soden (talk) 19:42, 26 December 2009 (UTC)

Categories

Can you provide advice regarding categories? I've been wanting to develop that tag, but I'm not very familiar with Wikis. Specifically, I'd like to include neighborhoods into a category, but I don't know how.

  • Actually, I think I figured it out. Any advice would still be appreciated!
Ok cool Khris! Here's my reply I wrote already, in case you find it useful. Categories are sort of confusing at first but simple once you figure them out (I've actually been figuring them out just today, making a few mistakes by making unnecessary redirects and such as you might have noticed). Basically, all you have to do is add [[Category:Foo]] (where "Foo" is anything you want) to a page, and the wiki places the page into that category, "Foo" in this case. Once you've saved your change, you can then click the category link at the bottom of the page (labeled "Foo") to see what other pages are in that category. If it's a redlink, you can also write a little blurb on the category page explaining what goes in that category, or even make that category a sub-category of another category by doing the same thing on the category page. I hope that isn't too confusing, but it probably is the way I said it. -kotra (talk) 06:34, 3 January 2010 (UTC)
Thanks, Kotra! That was good information... I'm very new to all of the coding, but I'm really excited to be working on this project! Khris.soden (talk) 19:55, 3 January 2010 (UTC)
Yeah, wikicode is not very intuitive. I will start a help page on this. -kotra (talk) 02:30, 4 January 2010 (UTC)
Oops, forgot to mention, I did that: Help:Categories. -kotra (talk) 17:13, 11 January 2010 (UTC)

Discussion template

Riffing off your discussion template here - thanks! Best, MarkDilley

Neat! I made that for this wiki so people could better advertise discussions that need input, sort of like Centralized discussion on Wikipedia. Glad to see it being used! -kotra (talk) 17:12, 11 January 2010 (UTC)

scary transclusions

for InterWiki and image trnasclusions - Manual:$wgEnableScaryTranscluding ~~ MarkDilley

reply about Wikipedia etc.

Hi kotra, sorry for the belated reply to your comment on my user page. I fully agree about your concern about Wikipedia articles being subject to subtle influence by persistent POV-pushers (I'd say, either by carefully-planned execution, or as an accident of the editing process, in different cases). Freshly back from Wikisym, my first thought is that it might be a good idea to engage in some dialog with a researcher about this; I suspect a formal study would be a good step both in getting a clear grasp of how this works, to do some thinking about what to do about it; and also, just in raising awareness about the issue.

By the way, some Wikimedia Foundation folks will be in Portlnad this week for OSCON, and I'm suggesting they visit the Monday Meet. Hopefully you'll get the chance to meet some of them, they're great folks. -Peteforsyth (talk) 20:23, 18 July 2010 (UTC)

No problem Pete. Regarding research, I think that would be useful, but I don't know if I have the time/energy to coordinate it with a researcher. Wikipedia has become less of a serious pasttime for me lately, more of an occasional hobby (doesn't stop me from whining from the sidelines though ;) ).
I look forward to meeting them! Thanks for connecting them to us. -kotra (talk) 18:31, 19 July 2010 (UTC)

Dave's Media Wiki Updates

Hey Kotra,

Didn't check my email (thus didn't see your message) until I had already installed the latest Media Wiki beta (mediawiki-1.16.0beta3.tar.gz), which apparently duplicated your efforts from a few hours earlier. Sorry.

Right now I'm having issues getting the pics to show up in the new installation. Moved over the images directory from the old version, but no luck. Will try to investigate later.

In the meantime, I'll keep "live" the installation I just did and let you decide whether or not to roll it back. Hopefully you'll spot something (regarding the no-show images) that I'm missing.

Thanks!

-dave myers

PS: The rollback directory on the server (the version of the site that was live before I installed the beta code) is this: portlandwiki.orgBK

Thanks! Responded in email. -kotra (talk) 08:25, 20 July 2010 (PDT)

Two things--

You've probably noticed, but I see two issues with the site:

  1. When I go to http://portlandwiki.org I see a redirect from "Portland Wiki" to "PortlandWiki" -- rather than being fluidly redirected there. (I suspect there's a MediaWiki page or a config file somewhere that needs to be updated to just contain a direct link to "PortlandWiki" -- but I don't know where it is!)
  2. Mt. St. Helens and Mt. Hood lead to 404 errors -- I think it must have something to do with the "." in the name, because all other pages (even redirects to those) appear to work fine.

Thanks for working on removing the extra /wiki/ in the URL :) -Peteforsyth (talk) 08:19, 20 July 2010 (PDT)

Thanks Pete!! I got both of these issues fixed I think. You're right, it was all controlled in the ".htaccess" file in the root directory, which I had altered to make the short URLs work. But I used some code that broke "."s and ":"s in page titles (and apparently made the main page "Portland Wiki", still scratching my head on that one), so I used a different method, and it seems to be working now.
Yeah, the /wiki/ was gone before now actually (since last November or something when I made the switch) but I just updated the version of MediaWiki to the new beta (so we can use the Vector skin as a basis for PortlandWiki's skin, as well as so we can get the new WikiEditor editing interface). In installing the new version of MediaWiki we had to redo all the changes we made over the months, and I guess I didn't do the "Short URL" thing the same this time. One problem we were having before today was that &s in titles didn't work... that's fixed now though!
Anyway thanks again! If you see any other issues please drop me a line. -kotra (talk) 08:49, 20 July 2010 (PDT)
Oh sorry, I thought I had replied to this! That all sounds great. Thanks for doing all this! I just made a software suggestion at the "community portal" too. -Peteforsyth (talk) 08:24, 28 July 2010 (PDT)

You cannot post new threads to this discussion page because it has been protected from new threads.

Contents

Thread titleRepliesLast modified
Move919:01, 26 April 2012
template transclusion623:54, 9 November 2011
Additional possible .htaccess errors.221:09, 30 October 2011
Potential Page Title Conflicts?: / vs _-_021:08, 3 October 2011

am I missing it or is the move function gone? Best,

MarkDilley23:30, 1 November 2011

ahh, something weird seems to have happened - I am unable to upload now as well. Best,

MarkDilley00:10, 2 November 2011
 

Sorry Mark,

We're still in the middle of upgrading the wiki and attempting to stomp out dysfunctions that keep popping up. Had to break off last night so Kotra could get back to his family and so I could get some rest.

Going back to the grindstone now...

Best,

WikiMaster (talk)05:58, 2 November 2011
 
The dingo ate my Namespace.
Code Pulled From LocalSettings
# September 18, 2011 - Added by Dave Myers.
# Extension:Lockdown - Source: http://www.mediawiki.org/wiki/Extension:Lockdown
require_once( "$IP/extensions/Lockdown/Lockdown.php" );
$wgSpecialPageLockdown['Export'] = array('user');
$wgNamespacePermissionLockdown[NS_MAIN]['edit'] = array('*');
$wgNamespacePermissionLockdown[NS_TALK]['edit'] = array('*');
$wgNamespacePermissionLockdown[NS_USER]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_USER_TALK]['edit'] = array('*');
$wgNamespacePermissionLockdown[NS_PROJECT]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_PROJECT_TALK]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_FILE]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_FILE_TALK]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_MEDIAWIKI]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_MEDIAWIKI_TALK]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_TEMPLATE]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_TEMPLATE_TALK]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_HELP]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_HELP_TALK]['edit'] = array('*');
$wgNamespacePermissionLockdown[NS_CATEGORY]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_CATEGORY_TALK]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_SPECIAL]['edit'] = array('user');
$wgNamespacePermissionLockdown[NS_MEDIA]['edit'] = array('user');

# November 2, 2011 - Added by kotra
$wgGroupPermissions['user']['upload'] = true;
$wgGroupPermissions['admin']['upload'] = true;
$wgGroupPermissions['autoconfirmed']['upload'] = true;
See Also
Please Note

We'll want to fix our installation of Lockdown as quickly as we can, or find a suitable replacement.

WikiMaster (talk)04:24, 3 November 2011

Hey Kotra,
Will you please ask the Dingo if it'd stop eating the Liquid Threads messages?
Thanks a bunch!

WikiMaster (talk)18:57, 26 April 2012

no, Dave (aka WikiMaster). You are not welcome. Please refrain from existing. Thanks.

kotra (talk)19:00, 26 April 2012
 
 

Oh my god! I saw that lockdown code, thought it was strange, but didn't think it could be causing the problem. In hindsight, it fit my knowledge of the problem perfectly!

What were we using that for anyway? Is there a newer version of the extension that we could install, in hopes that it would work?

kotra (talk)07:23, 3 November 2011
 

Oops, I thought I had responded to this. Belated but sincere thanks for doing this, Dave! I had noticed that lockdown code in the localsettings and thought it was strange (I'd never seen it before), but didn't put 2+2 together (I've recently been informed that the answer is 4!). Question: what is lockdown and what do we need it for? I'm guessing it's there to make certain namespaces like templates restricted to admins?

kotra (talk)19:59, 9 November 2011
 

Hey kotra,

As I recall, we installed Lockdown to restrict anonymous editing to just a handful of namespaces. I've noticed that we're getting vandalized on some of the formerly restricted namespaces after inactivating the extension. Will look into this...

WikiMaster (talk)20:11, 9 November 2011
 

Alright, thanks! Meanwhile, I'll look into the bandwidth issue you mentioned in another thread...

kotra (talk)20:14, 9 November 2011
 

template transclusion

hola, the Template:Occupy_Portland_Event you made is very cool. i have one thing i'd like to make better for other users.

i gave each event its own page, and am transcluding some events on OccupyPortlandEvents. But, since those events are now using your template, when a person clicks the "improve" button next to the event - it takes them to editing the template not the event content.

i've found this page about the issue, but can't figure out the best approach.

Some options might be:

  • use __NOEDITSECTION__ to suppress the improve button
  • add a link to the transcluded page in the template.
    • would {PAGENAME} do that? if so: where would that link go?
      • could the the title by a link to the page?
      • could there be a boxed section at the end of the template with the words "the events page"?
      •  ??
  • remove the header from the template, and force people to manually put a header/title on the event's page. this header would wind up appearing above/outside of the template's box, perhaps the template could always say "Details" as its first item ( would look like "Purpose" does ). the downside is on the page itself you'd see the page name immediately followed by the header; might look a little messy.

Of all of them, i think i like the last one best, but wanted to see what you thought first.

Ios (talk)09:39, 3 November 2011

I see the issue... thanks for bringing it up! I didn't quite understand all your options, but I've been trying to replace the "improve" link with one that works. You can see my attempts in the Template:Occupy Portland Event history. My attempt successfully created an edit link... to the OccupyPortlandEvents page (not the transcluded single-event page). Obviously not good enough, so I removed it. I have to take a friend to the hospital now but I'll give it another shot when I get back in a few hours. In the meantime, by all means if you want to give it a shot, feel free. The transclusion is confusing the issue a little but there may be a way to link to the transcluded page that I haven't found yet.

kotra (talk)10:31, 3 November 2011
 

Also, I made you an administrator so you can edit templates (if you couldn't already).

kotra (talk)10:32, 3 November 2011
 

Thanks Simon for working on fixing the edit link on Template:Occupy Portland Event, and sorry for not getting back to this sooner! It looks like you've come to the same conclusion I have: that automatically linking to the transcluded page is impossible (confirmation from one of the developers here). I saw that you added another field to the template ("page"), which allows the editor to hardcode the page name, allowing an edit link to come up. Thanks for doing that! Though it's an imperfect solution, it's the best one I've been able to think of too. Do you mind if I take that edit link and tweak it so it looks like one of the "[improve]" links beside section headers? You're the main person who uses the template so I'll defer to your preference.

Thanks again for working on this.

kotra (talk)21:22, 7 November 2011
 

kotra: sorry for forgetting to send you a heads-up that i had changed the template to include that link. you're right it's not a perfect solution, but yeah: seems like it may be our best option. you're more welcome to change it to look more like "Improve". ( Mark, I think, changed the language of the generated link slightly already. ) I just wanted *something* in there to be able to jump to the page...

I think the template really improves the look of the events. It definitely seems like a win!

Ios (talk)15:22, 8 November 2011
 

No problem Simon, and thanks! I just added the [improve] link, leaving the old edit link alone.

kotra (talk)19:49, 9 November 2011
 

looks great!

Ios (talk)23:54, 9 November 2011
 

Additional possible .htaccess errors.

Hey ’tra,

(I've chosen to knock your user name down to one syllable in compliance with my self-imposed verbiage reduction initiative.)

The .htaccess "fix" we used several weeks ago (Potential Page Title Conflicts?: / vs _-_) may have open up another "can of worms" (although it's unclear of our previous "fix" is creating the issues described in this thread).

It appears that PortlandWiki URLs now break when there's a "." (dot) somewhere in the URL. More specifically, they're accessible via the "ugly" URL format, but not the "clean" format.

Examples:

Terry D. Schrunk

Occupyportland.com

Since your regex skills are more advanced than mine, would you mind looking into this?

Thanks!

WikiMaster (talk)12:06, 28 October 2011

Thanks 'ster! Yeah, I've been aware of this issue for a few days now, but haven't had time to work on it. I actually left you a board message a couple hours ago about it, trying to pass the buck to you. But I may have some time tonight to look at it.

As for my regex skills, it's pretty hard to be less advanced than me at it, but I'll do my best.

kotra (talk)13:45, 28 October 2011
 
Current .htaccess
RewriteEngine On

RewriteCond %{REQUEST_URI} ^/.*&.*
RewriteRule ^/?(.*)&(.*)$ /index.php?title=$1\%26$2 [L,NE]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?title=$1 [L,QSA]
Articles that now seem to function
Sources
WikiMaster (talk)21:05, 30 October 2011
 

Potential Page Title Conflicts?: / vs _-_

Before your .htaccess fix, this one worked:

Occupy Portland - Press Releases
http://portlandwiki.org/Occupy_Portland_-_Press_Releases

This one didn't:

Occupy Portland/Press Releases
http://portlandwiki.org/Occupy_Portland/Press_Releases
REAL WORLD USE CASE
MediaWiki r65286 - Code Review
http://www.mediawiki.org/wiki/Special:Code/MediaWiki/65286/
WikiMaster (talk)21:08, 3 October 2011