Hello all;
I am using extension ArticleComments (by Jim Wilson)
up until today this has worked like a charm
I add comment tags to pages and then users are able to add a comment to any
article and it will show up on that articles' discussion page
today when I tried to add a cooment to an article I got this message:
Comment Submission Failed
>From
Jump to: navigation, search
Sorry, the article "Labor Shark" is not accepting comments at this time.
Does anyone have any thoughts or ideas to help?
kate
Dear all,
I am using MediaWiki 1.12.0 and I am trying to set up a special page
I used the instructions from
http://www.mediawiki.org/wiki/Writing_a_new_special_page
Name of my page is Gauss
my Guass.php file is like
<?php
# Alert the user that this is not a valid entry point to MediaWiki if
they try to access the skin file directly.
if (!defined('MEDIAWIKI')) {
echo <<<EOT
To install my extension, put the following line in LocalSettings.php:
require_once( "$IP/extensions/Gauss/Gauss.php" );
EOT;
exit( 1 );
}
$dir = dirname(__FILE__) . '/';
$wgAutoloadClasses['Gauss'] = $dir . 'Gauss_body.php'; # Tell MediaWiki
to load the extension body.
$wgExtensionMessagesFiles['Gauss'] = $dir . 'Gauss.i18n.php';
$wgSpecialPages['Gauss'] = 'Gauss'; # Let MediaWiki know about your new
special page.
$wgHooks['LanguageGetSpecialPageAliases'][] = 'Gauss'; # Add any aliases
for the special page.
function Gauss(&$specialPageArray, $code) {
# The localized title of the special page is among the messages of the
extension:
wfLoadExtensionMessages('Gauss');
$text = wfMsg('Gauss');
# Convert from title in text form to DBKey and put it into the alias
array:
$title = Title::newFromText($text,'Special');
$specialPageArray['Gauss'][] = $title->getDBKey();
return true;
}
My Gauss.i18n.php is
<?php
$messages = array();
$messages['en'] = array(
'Gauss' => 'Gauss'
);
My Gauss_body.php is
<?php
function efRunGauss( $par ) {
Gauss::run( $par );
}
class Gauss extends SpecialPage {
function Gauss() {
SpecialPage::SpecialPage("Gauss", '', true,
'efRunGauss');
wfLoadExtensionMessages('Gauss');
}
function run( $par ) {
# Do stuff
# ...
}
}
I have added the following entry to LocalSettings.php
require_once("extensions/Gauss/Gauss.php");
But when I open my wiki home page
it gives an error
Fatal error: Call to a member function getDBKey() on a non-object
in /var/www/html/mtsmwiki/extensions/Gauss/Gauss.php on line 25
I have no idea how to get rid of this error.
I will appreciate any help in this regard. Thanks in advance
-Mike
Hi
I need an example of Template with {{{3|{{{2|1}}}}}} (with ParserF #switch
or in #if/#ifeq/etc ) that runs whith all or none parameters (cf infra)
Why ?
Because I'm looking for the syntax to test some variables to run in only one
unified Template {{Plan}} that should render differently in different
NameSpaces and with different variables ( before I used several template,
but I want to use only one ;O))
This Template aims to dysplay a latéral Help Menu (like InfoBox) in a lot of
pages, only by including a subpage/TdM with various choices
This three different variables are :
{{{1}}} : the name of the Page to look for Page/TdM for inclusion
{{{f}}} : the format of the dysplay (with or without footer choices)
{{{p}}} : a choice between several namespace of my Wiki (Aide, Projet,
Modèle, etc)
{{Plan}}, alone(by default ), will search/dysplay Aide:PAGENAME/TdM
=> {{Plan}} in page [[Aide:Accueil]] will include [[Aide:Accueil/TdM]]
.. that's very simple but I need more capacities
... so I'm looking for :
{{Plan|OtherPAGENAME}} will dysplay Aide:OtherPAGENAME/TdM
{{Plan|OtherPAGENAME|f=court}} (choice court|:long by default) will dysplay
un shortiest one
{{Plan|ThisOtherPAGENAME|p=projet}} (choice within page|projet|portail|:aide
by default) will search the /TdM in other page Projet:ThisOtherPAGENAME/TdM
ToDay : This works well when I respect writing all the parameters
My problem : How to use {{{3|{{{2|1}}}}}} in #switch or in #if/#ifeq/etc
make possible all the possibilities with 0, 1 or 2 parameters by future
users ?
Could you point me such a kind of Template, so I could learn ?
Hi,
I had this working on a different wiki, but can't seem to find the link
for it.
I'm trying to make my sidebar have capital letters in it, as by default
it can't.
Does anyone know the link which explains it all?
Cheers
Dan
Hi!
We have a wiki in our company, and we want a backup wiki server. How
can I do this? My first thought is, that I install a new mediawiki
with the same settings on the second server, then set automatic tasks
to copy the images folder regularly, dump the source wiki databases,
and import them at the destination server.
It is a practicable concept, or there are better methods? E.g. mysql
replication, etc. Google didn't helped me (or I questioned it badly
:).
Regards,
Akos Szabo
I have a client who wants styled text and different links in the same
line in the Sidebar.
I immediately thought, "Oh yea, HTML extension." I installed it and it
works on a normal page, but not in the Sidebar.
Before I go grepping through everything to discover how to corrupt the
Sidebar, does anyone have a sweet, simple solution to what I need?
Lacking that, can anyone point me to the vicinity of the code I'll
have to hack?
I'm using 1.11.1, but am willing to upgrade if it will make this task
easier.
Thanks!
:::: If you can't be a good example, then you'll just have to be a
horrible warning. -- Catherine Aird ::::
:::: Jan Steinman <http://www.EcoReality.org> ::::
Some time ago, I ask this same question, the solution, given to me by
Platonides, was to change a line in the source code of MediaWiki 1.10
if ( 0 == $this->getID() ) {
wfProfileOut( __METHOD__ );
$wgOut->setStatusCode(404); // CHANGED
Now, I have MediaWiki 1.12, What are the lines I must change now? Why
not include permanently this feature in the main source code?
Hi,
I am looking for an extension to provide something like an 'AJAX edit box'
on the pages in my wiki. I would like to add a tag like
<editBox>Please add your comment here</editBox>
Which would create a little text box in the page (rather like the
'reply' box that appears under emails in GMail). When the user added
text into that box, the save button would appear, allowing them to
save their contribution to the page directly on that page. Maybe 'Preview',
'Save Now' and 'Discard' to really mimic GMail.
The edit would appear above the edit box tags in the 'real' text of the
page, allowing the user to add another edit.
Its crude, but it would be useful for sites that don't so much want
user contribution as user feedback - more like a blog with 'comments'
after each posting.
The box could sign / date the edits automatically for example.
I searched the list of AJAX extensions, and I didn't find what I was
looking for. Is such an inline edit box too complex to make an
extension for?
Cheers,
Dan.
On Mar 21, 2007, at 10:10 AM, Caitlin Dempsey wrote:
> I've been trying to find a way to create a Google friendly sitemap
> for my wiki. The few solutions I have found that are specific to
> Wikimedia haven't worked on my wiki.
I found this page which has an extension that worked on my wiki:
http://www.mediawiki.org/wiki/Extension:Google_Sitemap