Re: [Wikitech-l] pass value from extension to extension's js

2013-12-15 Thread Sen
great thx,i will research this,my english is not so good for read all this.

i like the way use $out,before this,i only know one way to only showing some 
case:
if ($this-getSkin()-getUser()-getName() != Sen){}  


Regrades
Sen

From SLboat(http://see.sl088.com)

在 2013-12-15,17:07,Thomas Gries m...@tgries.de 写道:

 Am 15.12.2013 09:37, schrieb Sen:
 hi,i had a confuse,how can i pass a value to the js content script
 
 for nowi,i use the way from msupload:
$wgOut-addScript(script type='text/javascript'var clipup_vars = 
 $clipup_vars ;/script\n);
 it's work but sometimes it seems not work well,the js cant get the value 
 clipup_vars.
 it's any nature way to doing this?
 
 A short section of the ResourceLoader guide explains this.
 
  * 
 https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_for_extension_developers#Configuration_variables
 
 If you used to insert javascript like:
 
 var wgFoo = bar;
 
 You can now use resource loader to add your variable as a config
 variable. If the variable is the same for all pages and should be on all
 pages, use the ResourceLoaderGetConfigVars
 https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderGetConfigVars 
 hook.
 Otherwise if the variable depends on the current page being viewed you
 can either use the MakeGlobalVariablesScript
 https://www.mediawiki.org/wiki/Manual:Hooks/MakeGlobalVariablesScript
 hook or if you have an OutputPage object, the addJsConfigVars
 https://doc.wikimedia.org/mediawiki-core/master/php/html/classOutputPage.html#a81c86f0fc996076ed05467f63b3fb154
 method. Variables added can be accesed in javascript using
 |mw.config.get( 'variable name' );|
 
 and look to the example in
 
  * https://www.mediawiki.org/wiki/Manual:Hooks/ResourceLoaderGetConfigVars
(If the variable is the same for all pages and should be on all pages)
  * 
 https://doc.wikimedia.org/mediawiki-core/master/php/html/classOutputPage.html
(if the variable depends on the current page)
 
 
 Sometimes in my php I use a construct like
 
if  ( $out-getTitle()-equals( SpecialPage::getTitleFor(
 'OpenIDConvert' ) ) {
$out-addHeadItem( 'openid-providerstyle',
 self::providerStyle() );
}
 
 to embed code (here: a style) only for certain pages, not for all.
 Perhaps you want this, too.
 
 
 
 
 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] what should i publish a gadget extension?

2013-12-15 Thread Sen
i make a gadget called hotkeyedit,which i add some hotkey in the 
wikitextbox,like control+1-6 make the title,ctrl+s switch the lish..ctrl+[ add 
a category,i think if i public it maybe some one others will like it,but i know 
how to publish extension,but how is gadget.


Regrades
Sen

From SLboat(http://see.sl088.com)


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] what should i publish a gadget extension?

2013-12-15 Thread Eran Rosenthal
There is no conventional process for gadget publishing, but you may
proposed it to English Wikipedia in:
https://en.wikipedia.org/wiki/Wikipedia:Gadget/proposals
and it is a community decision whether to adapt it or not (and please read
first https://en.wikipedia.org/wiki/Wikipedia:Gadget)
Other such pages exist for various projects/languages, and there are
different policies.

Another option*, if the target audience isn't Wikimedia projects but any
MediaWiki installation is
https://www.mediawiki.org/wiki/Extension:Gadgets/Scripts
(*Disclaimer: I don't know if anyone actually use this list or review it...)




On Sun, Dec 15, 2013 at 11:42 AM, Sen kik...@gmail.com wrote:

 i make a gadget called hotkeyedit,which i add some hotkey in the
 wikitextbox,like control+1-6 make the title,ctrl+s switch the lish..ctrl+[
 add a category,i think if i public it maybe some one others will like
 it,but i know how to publish extension,but how is gadget.


 Regrades
 Sen

 From SLboat(http://see.sl088.com)


 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Reviews Needed

2013-12-15 Thread Amanpreet Singh
Kindly review these:-

1. https://gerrit.wikimedia.org/r/#/c/101178/
2. https://gerrit.wikimedia.org/r/#/c/101494/
3. https://gerrit.wikimedia.org/r/#/c/101499/

Thanks.
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] what should i publish a gadget extension?

2013-12-15 Thread Sen
thx,i will have a try,that's should no hurt no loss for me,but maybe just maybe 
someone can use it too,that's how wonderful:)

Regrades
Sen

From SLboat(http://see.sl088.com)

在 2013-12-15,18:22,Eran Rosenthal eranro...@gmail.com 写道:

 There is no conventional process for gadget publishing, but you may
 proposed it to English Wikipedia in:
 https://en.wikipedia.org/wiki/Wikipedia:Gadget/proposals
 and it is a community decision whether to adapt it or not (and please read
 first https://en.wikipedia.org/wiki/Wikipedia:Gadget)
 Other such pages exist for various projects/languages, and there are
 different policies.
 
 Another option*, if the target audience isn't Wikimedia projects but any
 MediaWiki installation is
 https://www.mediawiki.org/wiki/Extension:Gadgets/Scripts
 (*Disclaimer: I don't know if anyone actually use this list or review it...)
 
 
 
 
 On Sun, Dec 15, 2013 at 11:42 AM, Sen kik...@gmail.com wrote:
 
 i make a gadget called hotkeyedit,which i add some hotkey in the
 wikitextbox,like control+1-6 make the title,ctrl+s switch the lish..ctrl+[
 add a category,i think if i public it maybe some one others will like
 it,but i know how to publish extension,but how is gadget.
 
 
 Regrades
 Sen
 
 From SLboat(http://see.sl088.com)
 
 
 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l
 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] Bugzilla Weekly Report

2013-12-15 Thread reporter
MediaWiki Bugzilla Report for December 09, 2013 - December 16, 2013

Status changes this week

Reports changed/set to UNCONFIRMED:  7 
Reports changed/set to NEW:  12
Reports changed/set to ASSIGNED   :  22
Reports changed/set to REOPENED   :  15
Reports changed/set to PATCH_TO_RE:  73
Reports changed/set to RESOLVED   :  268   
Reports changed/set to VERIFIED   :  3 

Total reports still open  : 13307 
Total bugs still open : 7746  
Total non-lowest prio. bugs still open: 7528  
Total enhancements still open : 5561  

Reports created this week: 331   

Resolutions for the week:

Reports marked FIXED :  178   
Reports marked DUPLICATE :  23
Reports marked INVALID   :  22
Reports marked WORKSFORME:  14
Reports marked WONTFIX   :  19

Specific Product/Component Resolutions  User Metrics 

Created reports per component

MediaWiki extensions  Flow  22  
  
VisualEditor  Editing Tools 15  
  
VisualEditor  ContentEditable   15  
  
MediaWiki extensions  WikidataRepo  14  
  
Wikimedia General/Unknown   13  
  

Created reports per product

MediaWiki extensions  127   
MediaWiki 60
Wikimedia 58
VisualEditor  45
Wikimedia Labs12

Top 5 bug report closers

jforrester [AT] wikimedia.org 33
gwicke [AT] wikimedia.org 21
aklapper [AT] wikimedia.org   19
hashar [AT] free.fr   15
tomasz [AT] twkozlowski.net   14


Most urgent open issues

Product   | Component | BugID | Priority  | LastChange | Assignee   
  | Summary  
--
Analytics | Tech communit | 57038 | Highest   | 2013-11-20 | 
acs[AT]bitergia.com  | Metrics about contributors with +2 pe

Analytics | Tech communit | 53489 | Highest   | 2013-12-13 | 
acs[AT]bitergia.com  | Relating tech contributors with organ

MediaWiki | Categories| 55630 | Highest   | 2013-12-12 | 
wikibugs-l[AT]lists. | When using UCA collations, Persian di

MediaWiki | JavaScript| 52659 | Highest   | 2013-11-25 | 
wikibugs-l[AT]lists. | [Regression]: mediawiki.notification:

MediaWiki ext | CentralAuth   | 54195 | Highest   | 2013-12-10 | 
csteipp[AT]wikimedia | CentralAuth not caching Special:Centr

MediaWiki ext | Collection| 58151 | Highest   | 2013-12-14 | 
mwalker[AT]wikimedia | Collection exports everything to PDF 

MediaWiki ext | Diff  | 58274 | Highest   | 2013-12-10 | 
wikibugs-l[AT]lists. | Implement an order-aware MapDiffer   

MediaWiki ext | Echo  | 53569 | Highest   | 2013-12-12 | 
wikibugs-l[AT]lists. | [Regression] Echo: Sending 2 e-mails 

MediaWiki ext | Flow  | 57868 | Highest   | 2013-12-12 | 
wikibugs-l[AT]lists. | Flow: events not showing up in Specia

MediaWiki ext | Flow  | 58016 | Highest   | 2013-12-12 | 
wikibugs-l[AT]lists. | Flow: Suppression redacts the wrong u

MediaWiki ext | MassMessage   | 57464 | Highest   | 2013-12-12 | 
legoktm.wikipedia[AT | MassMessage thinks namespaces that do

MediaWiki ext | Semantic Medi | 58502 | Highest   | 2013-12-15 | 
wikibugs-l[AT]lists. | Table bw_smw_fpt_askdu not found 

MediaWiki ext | WikidataRepo  | 52385 | Highest   | 2013-12-04 | 
wikidata-bugs[AT]lis | Query by one property and one value (

MediaWiki ext | WikidataRepo  | 58166 | Highest   | 2013-12-09 | 
wikidata-bugs[AT]lis | label/description uniqueness constrai

MediaWiki ext | WikidataRepo  | 57918 | Highest   | 2013-12-10 | 
wikidata-bugs[AT]lis | show diffs for sorting changes   

MediaWiki ext | WikiEditor| 57489 | Highest   | 2013-12-11 | 
wikibugs-l[AT]lists. | document.selection replaced by window

VisualEditor  | Editing Tools | 50768 | Highest   | 2013-11-25 | 
rmoen[AT]wikimedia.o | VisualEditor: Better reference UI for

VisualEditor  | MediaWiki int | 48429 | Highest   | 2013-11-01 | 
krinklemail[AT]gmail | VisualEditor: Support editing of sect

VisualEditor  | Technical 

Re: [Wikitech-l] Deploymight highlights - week of December 16th

2013-12-15 Thread Greg Grossmeier
quote name=Brian Wolff date=2013-12-13 time=18:42:51 -0700
 On 12/13/13, MZMcBride z...@mzmcbride.com wrote:
  Greg Grossmeier wrote:
 * There will be a new version of PHP deployed to the Wikimedia servers
   on Monday as well. This should not change any user-facing actions
   (this update will help deal with a server problem where temporary
   files are not deleted when appropriate).
 
  Is there more specific information available about this? That is, we'll be
  updating from PHP version X to PHP version Y. And what specifically will
  be changing? Only a patch for temporary files or will other changes be
  included as well? I ask because even minor changes in PHP can have strange
  and unforeseen consequences across such a large codebase.
 
 
 In particular, will the new version of php be compiled against the
 same version of ICU library, because that is something that has caused
 problems multiple times in the past?

Yes. :) We learned our lesson.

-- 
| Greg GrossmeierGPG: B2FA 27B1 F7EB D327 6B8E |
| identi.ca: @gregA18D 1138 8E47 FAC8 1C7D |

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Deployment highlights - week of December 16th

2013-12-15 Thread Greg Grossmeier
quote name=Greg Grossmeier date=2013-12-13 time=16:50:15 -0800
 == Wednesday ==
 
 * The new search backend (CirrusSearch) will be enabled on:
 
 * The new and improved Wikimania Scholarships application[5] will be
   deployed to production. 

Also on Wednesday is the enabling of the Draft namespace on English
Wikipedia.

https://gerrit.wikimedia.org/r/#q,97675,n,z
https://bugzilla.wikimedia.org/show_bug.cgi?id=57569

Sorry about forgetting this one, it's in the Lightning Deploy window,
which is usually not very consequential deployments (usually last minute
bug fixes).

Best,

Greg

-- 
| Greg GrossmeierGPG: B2FA 27B1 F7EB D327 6B8E |
| identi.ca: @gregA18D 1138 8E47 FAC8 1C7D |


signature.asc
Description: Digital signature
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] PHP new version(s) 5.5.7 and other versions. (upgrade, if you can)

2013-12-15 Thread Thomas Gries
PHP users are strongly advised to upgrade their PHP versions:
PHP 4.0.6 - PHP 4.4.9
PHP 5.0.x
PHP 5.1.x
PHP 5.2.x
PHP 5.3.0 - PHP 5.3.27
PHP 5.4.0 - PHP 5.4.22
PHP 5.5.0 - PHP 5.5.6
Vendor Status: Vendor has released PHP 5.5.7, PHP 5.4.23 and PHP 5.3.28|.||


If you compile PHP from its sources, then the following configure
works well:
|
|./configure --prefix=/usr --datadir=/usr/share/php
--mandir=/usr/share/man --bindir=/usr/bin --libdir=/usr/share
--includedir=/usr/include --sysconfdir=/etc --with-libdir=lib64
--with-config-file-path=/etc --with-apxs2=/usr/sbin/apxs2-prefork
--with-openssl --with-bz2 --with-zlib --with-curl --with-ldap
--with-mysql --with-mysqli=mysqlnd  --with-pdo-mysql --enable-mbstring
--with-xsl --enable-calendar --with-gd --with-jpeg-dir=/usr/lib64
--with-png-dir=/usr/lib64 --with-iconv --with-pspell --with-gmp
--with-mcrypt --enable-zip --enable-bcmath
make
make install


|
___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l