Extension talk:ExternalArticles/archive-2010-03-05
Latest comment: 15 years ago by Servel333 in topic Usage
This page is an archive. Do not edit the contents of this page. Please direct any additional comments to the current talk page. |
Add to my site : Wikiparoles.net
I try to install your extension, but it doesn't work ?
can I have support ?
best regards--WikiParolesSite 21:07, 10 June 2009 (UTC)
- Here are some thoughts:
- Did you follow the installation instructions?
- If you do not redefine $eagRules in your LocalSettings.php file, the default rule should be in effect. In other words, the extension will only work when you are creating a template that does not exist, and a template of the same name exists on Wikipedia.org.
- If you modified $eagRules in your LocalSettings.php file, all bets are off. You will have to post your changes.
- Note: Do not post or publish your entire LocalSettings.php, it contains information that makes your MediaWiki installation easy to attack.
- Servel333 17:08, 14 July 2009 (UTC)
- Lo,
- I'm in hollyday for few days I give you feed back sooon
- see you soon
- --WikiParolesSite 17:31, 15 August 2009 (UTC)
- No problem. Have a good vacation. -- Servel333 15:53, 17 August 2009 (UTC)
Test on wikiparoles.net
I try your extension on my website wikiparoles.net.
I have always this message on the edit pages : Page title does not match rule
Here a part of my LocalSettings files
require_once("$IP/extensions/ExternalArticles/ExternalArticles.php");
$eagRules = array();
$eagRules['onpreload'] = true;
$eagRules['url'] = 'http://en.wikipedia.org/w/index.php?title=';
$eagRules['rule'] = '/^Template:.*$/';
Thank you for helping our communauty
best regards --WikiParolesSite 09:24, 29 September 2009 (UTC)
Response
Sorry about the slow response.
- Updating to the latest source code will remove the message "Page title does not match rule." This was caused because I did not comment out the line as I should have. I fixed this in the latest version.
define( 'EXTERNALARTICLES_DEBUG', true );
- The way this is set up, it is designed to only work with pages in the Template namespace. I made a (bad) assumption that the template namepace was
Template
, but this is only true for English wiki's. Follow the instructions in the newly expandedConfiguration
section. There are a few examples below. - Note: the lines should all appear before the
$eagRules
line.require_once
- I'm thinking now that the way this is configured is a little complicated and could be made simpler.
Let me know the results. Good luck.
Template pages where the template namespace is "Modèle" configuration example
$eagRules = array();
$eagRules['onpreload'] = true;
$eagRules['url'] = 'http://en.wikipedia.org/w/index.php?title=';
$eagRules['rule'] = '/^Modèle:.*$/';
require_once("$IP/extensions/ExternalArticles/ExternalArticles.php");
From any page configuration example
$eagRules = array();
$eagRules['onpreload'] = true;
$eagRules['url'] = 'http://en.wikipedia.org/w/index.php?title=';
$eagRules['rule'] = '/^.*$/';
require_once("$IP/extensions/ExternalArticles/ExternalArticles.php");
Usage
Not clar what it does and how to use it-Bert
Unclear usage section
Your right, the section on this extensions usage is too brief. I've expanded it.