Hello,
I have recently installed MediaWiki 1.22.3 and hope to use it to host
some documentation. I like the Vector skin and have been using
Common.css to add some local styling. All looks great so far and I am
very impressed with Mediawiki.
But I would really like to be able to add a "banner" (or menu etc.) to
the top of the site, before any standard elements (or possibly sit
behind them). I would also like to have a basic idea on changing a few
skin elements perhaps. I have little PHP experience (but some other
programming languages) so my difficulties are probably stupid and/or
basic.
Following Daniel Friesen's "subskin" tutorial (thanks Daniel!) :
http://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/
My site is now using my own skin "Zed Docs". Or so it seems to be - it
is identical to Vector at the moment.
However, I can't seem to figure out how to insert any changes in my skin
and have them picked up.
I have taken the very basic PHP skin file I created following the
tutorial :
ZedDocs.skin.php :
require_once( dirname( __FILE__ ) . '/../Vector.php' );
class SkinZedDocs extends SkinVector {
var $skinname = 'zeddocs', $stylename = 'zeddocs';
function setupSkinUserCss( OutputPage $out ){
parent::setupSkinUserCss( $out );
$out->addModuleStyles( "skins.zeddocs" );
}
}
and copied much of the rest of the Vector.pnp code below it, changing :
class VectorTemplate extends BaseTemplate {
...
to :
class ZedDocsTemplate extends VectorTemplate {
...
(is this correct?)
Then inside this, the whole of the "execute" function :
public function execute() {
...
But nothing I add or modify inside the "execute" function makes any
difference to the page I see e.g. adding anything after :
<div id="mw-page-base" class="noprint"></div>
or anywhere else.
I almost certainly have a fundamental misunderstanding somewhere. No
doubt coupled with my lack of PHP experience (I know I should really
learn more about it).
What am I doing wrong and what do I need to do?
Many thanks for any help or advice.
Cheers,
--
Alastair Sherringham
http://www.sherringham.net
Dear all,
My site ( www.indopancing.com/wiki ) just got bombed by spam bots since
last week, i already implement re-captcha few days ago on user
registration, but still not help.
Then, i try protect all access from spam bots:
---cut---
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['sysop']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['sysop']['edit'] = true;
# Anonymous users can't create pages
$wgGroupPermissions['*']['createpage'] = false;
# Only users with accounts four days old or older can create pages
# Requires MW 1.6 or higher.
$wgGroupPermissions['*' ]['createpage'] = false;
$wgGroupPermissions['user' ]['createpage'] = false;
$wgGroupPermissions['sysop']['createpage'] = true;
---cut---
Looks like it's working, no spam bots anymore..
Now, the next problem is my wiki site:
- Full of user account junk from spam bots
- Full of new page creation from spam bots
Luckily the spam bots not change/edit my wiki page.
I already backup the MySQL database with phpMyAdmin
What do you think?
1. Does using http://www.mediawiki.org/wiki/Extension:BlockandNuke is safe?
I just create / edit new page using admin account, there is no other
account create / edit page.
2. Actually I prefer do fresh installation of MediaWiki and copy paste 1000
contents from old one to the new one. Because i worry deleting user account
/ page from spam bots still leave junk in my site.
Do you have any sugestion for this problem?
Thank you
Best Regards,
Yudi
Hi,
no idea how my message could fly away without subject... sorry!
> Message: 7
> Date: Wed, 05 Mar 2014 19:34:00 +0100
> From: Bartosz Dziewoński <matma.rex(a)gmail.com>
> To: "MediaWiki announcements and site admin list"
> <mediawiki-l(a)lists.wikimedia.org>
>
> There is an importImages.php maintenance script, does that fit your needs?
>
> https://www.mediawiki.org/wiki/Manual:ImportImages.php
>
> -- Matma Rex
Indeed this was it!
THX!
Regards/Mit freundlichem Gruß
Uwe (Baumbach)
--
Sie interessieren sich für Familienforschung?
Dann schauen Sie doch mal hier vorbei:
http://GenWiki.genealogy.nethttp://CompGen.de
--
"Ich habe immer darauf gewartet, daß das Leben endlich losgeht,
dabei ist es immer nur weitergegangen."
(Aus dem Film: "Das Leben ist eine Baustelle")
I am out of the office until 13/03/2014.
Note: This is an automated response to your message "Re: [MediaWiki-l]
Error message is new to me during FileUpload" sent on 06.03.2014 16:56:54.
This is the only notification you will receive while this person is away.
--------------------------------------------------------------------------
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately by reply e-mail and delete this message from your system.
--------------------------------------------------------------------------
Hi,
beside the regular upload traffic to our wiki-commons that is limited in
file size, from time to time there are needs to upload/integrate big media
files in our wiki-commons. These files are physically stored already on
wiki server (WebDAV enabled directory elsewhere in directory tree beyond
wiki directory).
To upload/integrate these files until now we download them to local PC,
release temporarily upload limitations and upload them via MediaWiki GUI to
wiki-commons.
Performance is very bad, especially upload...
Now my question:
Is there a way to upload/integrate those files via server-local script or
otherwise but with full file information management in wiki-commons
(duplicate tests, creation of file article)?
Admins have secure shell access on wiki server.
Regards / Freundliche Grüße
Uwe (Baumbach)
--
Sie interessieren sich für Familienforschung?
Dann schauen Sie doch mal hier vorbei:
http://compgen.de<https://3c.web.de/mail/client/dereferrer?redirectUrl=http%3A%2F%2Fcompgen.de>
http://GenWiki.genealogy.net<https://3c.web.de/mail/client/dereferrer?redirectUrl=http%3A%2F%2FGenWiki.g…>
> Date: Mon, 03 Mar 2014 12:38:29 -0500
> From: Mark London <mrl(a)psfc.mit.edu>
> Subject: [MediaWiki-l] Form to fill in before allowing access to a
> download link.
>
> I have a user who wants a form in his mediawiki, that has to be filled
> out, before displaying a software download link. Does anyone know of
> something like that? Thanks
>
> Mark London
Hi Mark,
I have implemented something very much like this, but not purely in
MW. I wrote a CGI script (in PHP, but any language supported by your
web server will do) that processed form input and gave the user the
requested file. I created the required form as a widget (see
http://www.mediawiki.org/wiki/Extension:Widgets), with the URL of the
CGI script as the action. Since this solution is not contained
entirely within MW, it has the potential drawback that you need access
to put executables somewhere the web server will allow them to be run.
A slicker way to do this would be with Semantic Forms
(http://www.mediawiki.org/wiki/Extension:Semantic_Forms). The setup
might be a little more complex, but you'd be writing less of the
actual machinery, so much of the bugfixing is already done for you.
Plus I think it'll be much faster and easier to implement this if
there are a bunch of different files available for download, or if you
later want to implement something similar elsewhere. I can't tell you
off the top of my head exactly how to go about this, but IIRC the
documentation is pretty good.
Cheers,
David Leaman
Hi all,
I have a really annoying problem. If I search for one of my wikis at Google, it is nearly always shown a page date in front of the page description of the
search result.
I think it depends on the "lastmod" in the footer, but now I saw that the Wikipedia has this last mod in the footer and no single page date is shown in
the search results (https://www.google.de/#q=site:de.wikipedia.com). Can anyone tell me how they made this magic happen?
Regards,
Stefan
Hi :)
I would like to reproduce the template of the MediaWiki Home page. I
read documentation about templates but I'm not sure that's what I need
as the blocks I want to create are meant to be used only on the Home
page of my wiki.
Also, I would like to know how to use CSS to place those blocks like on
the MediaWiki Home page. I'm using the Vector theme.
Thanks for any help :)
Gary
My recent move of my Mediawiki 1.22 site has resulted in one change that
is annoying. The TOOLBOX on the sidebar will NOT stay open after I click
on it. It opens then immediately collapses. As far as I know I didn't
alter any settings that would cause this, BUT It was a big move that
included a Mediawiki upgrade from 1.21 as well. Lots of issues.
Tips or solutions appreciated!!
John