I would be grateful for some direction or an idea of where to look. I feel
like I'm going in a circle with the resource module docs.
What I need to do is load a js module based on language direction in a
skin. Ltr load a ltr.js, rtl direction load a rtl.js instead. Here is what
I came up with, please let me know if there is a better way to do this.
if ( $GLOBALS['wgLang']->getDir() == 'rtl' ) {
$out->addModules('skins.script-rtl.js'); }
else {
$out->addModules('skins.script-ltr.js'); }
Preliminary testing seems to work, is there a better or recommended way?
Thanks
Tom
by Shwethashree Venkatesh -X (shwevenk - ACCENTURE SERVICES PVT LTD at Cisco)
Dear Team,
Am trying to create users on mediawiki using REST API. Am using Jesey client in the code to achieve the same. Here are the steps am following:
Step 1: Make REST call to mediawiki without token but with user details(who's account has to be created). This generates a token
Step 2: For the same url which i used in the Step 1 am appending the token parameter with value received in Step 1. But this is again generating a new token instead of creating the user
Thanks,
Shwetha
Heiya,
this is painful for me.
There is a wiki accessible with the following logic:
"http://example.com/wiki/Main_Page"
When I edit I have:
"http://example.com/w/index.php?title=Main_Page&action=edit"
To get this magic running I have the following RewriteRules:
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
RewriteRule ^/?$ %{DOCUMENT_ROOT}/w/index.php [L]
And in "LocalSettings.php":
$wgScriptPath = "/w";
$wgScriptExtension = ".php";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true; // true or false does not make a difference
Everything is cool until I dare to try accessing a page containing a
special character, e.g. "http://example.com/wiki/So_ein_Ärger" and end
up in an indefinite redirect loop.
This wiki is a MW 1.26.2.
Any hint out there? Never encountered anything similar. Admittedly not
my first wiki.
Thanks and cheers
Karsten
> From: Jonathan Aquilina <eagles051387(a)gmail.com>
>
> Have you tried enabling mod_rewrite if you are on apache and setting up
> some rewrite rules in .htaccess?
>
> Jonathan Aquilina
This is what I use:
<IfModule mod_alias.c>
Alias "/wiki/stylesheets" "/Library/WebServer/EcoReality/wiki/stylesheets"
Alias "/wiki/style" "/Library/WebServer/EcoReality/wiki/style"
Alias "/wiki/images" "/Library/WebServer/EcoReality/wiki/images"
Alias "/wiki/skins" "/Library/WebServer/EcoReality/wiki/skins"
Alias "/wiki/redirect.php" "/Library/WebServer/EcoReality/wiki/redirect.php"
Alias "/wiki/textvc.php" "/Library/WebServer/EcoReality/wiki/textvc.php"
Alias "/wiki/index.php" "/Library/WebServer/EcoReality/wiki/index.php"
Alias "/wiki" "/Library/WebServer/EcoReality/wiki/index.php”
</IfModule>
:::: The widely recited rhetoric that Canada must continue its de facto energy strategy of liquidating its remaining non-renewable resources as fast as possible to maintain the economy has no credibility. -- David Hughes <http://www.lmgtfy.com/?q=David+Hughes>
:::: Jan Steinman, EcoReality Co-op <http://www.ecoreality.org/> ::::
I've been having difficulties assembling internal links within templates.
A standard link such as [[User:Alice|Alice]] works just fine. But if I try
to do something like:
[[User:{{{user|Unknown}}}|{{{user|Unknown}}}]]
I get the content of the parameter "user" to appear, but it won't be a link.
Similarly, I tried to use
[[User:{{safesubst:REVISIONUSER}}|{{safesubst:REVISIONUSER}}]]
to provide a link to the user who added the template, but it doesn't seem
to work either, no matter which combinations of <includeonly> tags I try.
Thoughts?
Kind regards,
Manu
Dear users, developers and all people interested in semantic wikis,
We are happy to announce SMWCon Fall 2016 - the 13th Semantic MediaWiki
Conference:
* Dates * September 28th to September 30th 2016 (Wednesday to Friday)
* Location * German Institute for International Educational Research
(DIPF), Schloßstraße 29, Frankfurt am Main, Germany.
* Conference page *
https://www.semantic-mediawiki.org/wiki/SMWCon_Fall_2016
* Participants * Everybody interested in semantic wikis, especially
in Semantic MediaWiki, e.g. users, developers, consultants, business
representatives, researchers.
SMWCon Fall 2016 will be supported by The German Institute for
International Educational Research (DIPF) [0] and Open Semantic Data
Association e. V. [1].
Following the success of this format the SMWCon will have one tutorial
and workshop day preceding two conference days.
Participating in the conference: To help us planning, you can already
informally register on the conference page, although a firm registration
will later be needed.
Contributing to the conference: If you want to present your work in the
conference please go to the conference page and add your talk there. To
create an attractive program for the conference, we will later ask you
to give further information about your proposals. Tutorials and
presentations will be video and audio recorded and will be made
available for others after the conference.
Among others, we encourage contributions on the following topics:
Applications of semantic wikis:
* Semantic wikis for enterprise workflows and business intelligence
* Semantic wikis for corporate or personal knowledge management
* Exchange on business models with semantic wikis
* Lessons learned (best/worst practices) from using semantic wikis or
their extensions
* Semantic wikis in e-science, e-humanities, e-learning, e-health,
e-government
* Semantic wikis for finding a common vocabulary among a group of people
* Semantic wikis for teaching students about the Semantic Web
* Offering incentives for users of semantic wikis
* Challenges and obstacles for semantic wikis in business environments
Development of semantic wikis:
* Semantic wikis as knowledge base backends / data integration platforms
* Comparisons of semantic wiki concepts and technologies
* Community building, feature wishlists, roadmapping of Semantic MediaWiki
* Improving user experience in a semantic wiki
* Speeding up semantic wikis
* Integrations and interoperability of semantic wikis with other
applications and mashups
* Modeling of complex domains in semantic wikis, using rules, formulas etc.
* Access control and security aspects in semantic wikis
* Multilingual semantic wikis
For any other question and sponsorship opportunities, please do not
hesitate to contact Karsten Hoffmeyer <karsten at hoffmeyer.info>.
Hope to see you in Frankfurt am Main!
Lia Veja, Karsten Hoffmeyer
(Members of the Organizing Committee)
[0] http://www.dipf.de/en/about-us/contact
[1] https://opensemanticdata.org/
> npyxg1mg2kn7dvk0rl06 asked:
> I tried
...
> $wgDBserver = "/var/run/postgresql/"
This is the one you should use. Your web server may not have permissions
to view that directory. You should first verify that postgres is listening on
that socket with:
psql -h /var/run/postgresql
If that works, check SELinux or other things that may be limiting access
to that directory. For example, see:
https://serverfault.com/questions/641329/cannot-connect-to-postgresql-unix-…
--
Greg Sabino Mullane greg(a)endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
What $wgDBserver and $wgDBport settings I should use with postgres socket?
What I tried:
$wgDBtype = "postgres";
$wgDBserver = "localhost";
$wgDBname = "dbname";
$wgDBuser = "dbuser";
$wgDBpassword = "password";
$wgDBport = "5434";
# Yes I run postgres in /var/run/postgresql/.s.PGSQL.5434
$wgDBmwschema = "mediawiki";
I tried also empty $wgDBserver and $wgDBserver = "localhost:/var/run/postgresql/"; and $wgDBserver = "localhost:/var/run/postgresql/.s.PGSQL.5434" with commented $wgDBport, as well as $wgDBserver = "/var/run/postgresql/"; and $wgDBserver = "/var/run/postgresql/.s.PGSQL.5434";
Mediawiki works OK with port, but I want mediawiki to use socket. Since all other applications use it without any problems.
I have an installation of mediawiki 1.24.2 and when I click on the logo it
links to the main page, but it is different from the landing page that I
see when i first visit the site. How can one change the path of the link of
the logo?
Thanks!
--
Dustin Phillips . Co-Executive Director, ICANNWiki . M +13605801923 .
E dustin(a)icannwiki.com . W icannwiki.com <http:/icannwiki.com>
Hello Mediawikians,
Last week I was fortunate enough to attend the first Enterprise MediaWiki
Conference in New York City, NY [1]. It was an interesting three day event
that covered many various topics around the use of MediaWiki outside of
Wikimedia projects. All sessions were streamed live and are archived. [2] I
put together some notes on my experience [3] as well as G. Brett Miller
another community member (and coincidently a fellow St. Louisian!). [4]
I encourage you to take a look at the sessions and notes. I had an
enjoyable time due to the excellent planning by our hosts (Yaron Koren,
Pharos, and Pete Woudsma) and would love to see more events in the future.
[1] https://www.mediawiki.org/wiki/EMWCon_Spring_2016
[2] http://livestream.com/internetsociety/emwcon
[3]
https://www.mediawiki.org/wiki/User:CKoerner_(WMF)/Notes_from_the_first_EMW…
[4] https://gbrettmiller.com/tag/emwcon-2016/
--
Yours,
Chris Koerner
Community Liaison - Discovery
Wikimedia Foundation