$wgDBtransactions gets set to true if using InnoDB tables. Is there
an advantage to using InnoDB tables?
The disadvantage is that with MySQL there is a file, ibdata1, that
seems to grow endlessly if InnoDB tables are used. See
http://bugs.mysql.com/bug.php?id=1341
We're wondering if we should just convert everything to MyISAM. Any
thoughts?
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I've created some custom namespaced on one of my wikis, Botwiki
(previously known as pywikipedia).
I've put these lines in my LocalSettings.php file:
- ---
#Custom namespaces
$wgExtraNamespaces =
array(100 => "Manual",
101 => "Manual talk",
102 => "Python",
103 => "Python talk",
104 => "Php",
105 => "Php talk",
106 => "Perl",
107 => "Perl talk",
108 => "AWB",
109 => "AWB talk",
110 => "IRC",
111 => "IRC talk",
112 => "Other",
113 => "Other talk"
);
$wgContentNamespaces[] = 100;
$wgContentNamespaces[] = 102;
$wgContentNamespaces[] = 104;
$wgContentNamespaces[] = 106;
$wgContentNamespaces[] = 108;
$wgContentNamespaces[] = 110;
$wgContentNamespaces[] = 112;
- ---
However, I have a big problem: when I go to a page in one of these new
namespaces (not the discussion, the main ones), for example
http://botwiki.sno.cc/wiki/Perl:Copyright_Violation_Bot , I found the
red link to the discussion page. It's right, as there is no discussion
page for that article. But if you click on it, it brings you to
http://botwiki.sno.cc/w/index.php?title=Perl_talk:Copyright_Violation_Bot&a…
correct, of course. But have a look of the article and discussion tabs:
they are both red! The first, "article", leads to
http://botwiki.sno.cc/w/index.php?title=Perl_talk:Copyright_Violation_Bot&a…
when it should lead to
http://botwiki.sno.cc/wiki/Perl:Copyright_Violation_Bot and the second,
"discussion", leads to
http://botwiki.sno.cc/w/index.php?title=Talk:Perl_talk:Copyright_Violation_…
, when it should lead to
http://botwiki.sno.cc/w/index.php?title=Perl_talk:Copyright_Violation_Bot&a…
.
It's the first time I deal with custom namespaces :-( but I have some
ideas of what it can be. Can the problem be with the
$wgContentNamespaces settings? So it detects everything as ns0? (don't
think so).
Or can it be the fact that I haven't used an underscore in the
$wgExtraNamespaces definition?
Snowolf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGWhk7sdafW5NQMtERAuX+AKDQ7QLNjXv9cu+ZbSLXidMzgi/vNgCaA7VT
+VTgR3iI/BI7FVDqcyRZVJ0=
=a4yP
-----END PGP SIGNATURE-----
I want to moving all pages in a certain namespace (about 60 pages) into
the the "main" namespace. I couldn't find how to do this, so I tried
exporting the pages and importing them and I ran into all sorts of
problems. Is there a way to do what I want without using the import and
export features (and without having to move each of them manually)?
Thanks.
Hi, I am trying to design a new skin and although it looks good on
Firefox, it looks broken in IE. I am no programmer and to be able to
design a new skin that works in Firefox is admittedly an achievement
by my own lousy standards.
Instead taking care of IE fixes with its many many versions and other
browsers as well, I am thinking of using my skin only for Firefox
browers and monobook for the rest. How do I tweak this code in
LocalSettings.php:
$wgDefaultSkin = 'newskin';
I guess it's something like: if Firebox browser, use 'newskin', else
use 'monobook'.
PM Poon
Hi, it seems like my random button is not working very well. It keeps on
repeating certain pages instead of moving on. How can I can better
randomness?
PM Poon
I'm downloaded eswiki-20090615-pages-articles and imported with
mwdumper.jar. when i go to see an article in the place of an templates
are articles them I see these articles in many other pages.
the last year i make same procedure and i see the main page know not. in
the place of my templates i have articles.
i have run rebuildall.php and the problem continues
I thought I had read somewhere that it was not a good idea to set
function hooks inside of a class in this way.
what follows is just one of many examples out there:
$wgExtensionFunctions[] = 'wfSetupCSS'
function wfSetupCSS() {
global $wgCSS;
$wgCSS = new CSS();
}
class CSS {
function CSS() {
global $wgParser, $wgCSSMagic;
$wgParser->setFunctionHook($wgCSSMagic, array($this, 'magicCss'));
}
Any other suggestions on how to implement this type of functionality.
Would it be better not to instantiate the CSS
class and just use a static class with a function to set the hook like this:
$wgExtensionFunctions[] = 'CSS::SetupCSS'
Where SetupCSS was a static function to set the hook.
Sorry if the question appears a bit dumb but I'm interested to hear
what the more experienced guys think.
Thanks,
Richard
Hello!
I installed AddMetas.php and get this in the error-logfile of Apache:
Undefined variable: parser in /vwww/insilence/root/extensions/AddMetas.php on line 25
Trying to get property of non-object in /vwww/insilence/root/extensions/AddMetas.php on line 25
The function in AddMetas.php looks like this:
function wfAddMetas( &$out, &$text ) {
global $wgTitle, $wgParser, $wgRequest, $action;
if(
$action !== 'edit'
&& $action !== 'history'
&& $action !== 'delete'
&& $action !== 'watch'
&& strpos( $parser->mTitle->mPrefixedText, 'Special:' ) === false
&& $parser->mTitle->mNamespace !== 8
)
{
$name = $wgTitle->getPrefixedDBKey();
$out->addMeta( 'Description', 'you meta description');
$out->addMeta( 'Keywords', $name.', your meta keywords' );
//$out->addMeta( 'Author', 'the author');
//$out->addMeta( 'Rating', 'General');
//$out->addMeta( 'Revisit', '1 DAYS');
//$out->addMeta( "revisit-after", "5 days");
}
return true;
}
I am not a PHP-specialist. What is wrong?
Regards
--
Andreas Meyer
A man, a miss, a car -- a curve,
He kissed the miss and missed the curve
Mein öffentlicher GPG-Schlüssel unter:
http://gpg-keyserver.de/pks/lookup?search=anmeyer&fingerprint=on&op=index
We need to assign digital object identifiers to specific versions
(stable, flagged revisions) of an article page. To assign doi:10/xyz
we want to create that object in a custom doi namespace and then
redirect to a specific version of a page in the article namespace.
However, we could find no information how to address versions in
intra-wiki syntax (and redirects don't work with URLs).
If this is indeed so,
a) could a version syntax be added to mediawiki links?
[[Help_talk:Redirects/Version:262031]]
should then be equivalent to:
http://www.mediawiki.org/w/index.php?title=Help_talk:Redirects&oldid=262031
b) could redirect be extended so it supports URLs?
Question to experienced programmers: which would be easier to
implement in an extension? Any clues or rough ideas we could work out
ourselves?
Gregor