Hello List,
Is there a good article on how to setup MediaWiki installs to share
username/password access between them? (Similar to Wikia)
Thanks,
Samuel Richardson
Freelance Web Developer
www.richardson.co.nz | 0405 472 748
Have you added your business to the Melpedia yet? http://www.melpedia.com.au
Hello all,
I want to use Inputbox, Createbox, or CreateArticle extensions to create a
page from a template, but I want the new page to be created directly without
first dropping the user in the edit window. I am hoping to use things like
templates and the ProtectSection extension to prevent them from changing
some things in the page. If I drop them in the edit box for an
as-yet-unsaved page, they can change anything they want.
Thanks,
Dave C
> From: "Russell, Elizabeth" <earussell(a)tva.gov>
>
> Is it possible to export a page that has multiple images and somehow
> get
> all the images to drag along with it?
What is your purpose?
You can use wget to scrape up a page and all its links to a specified
depth, but the result will be HTML.
:::: The Earth isn't a pizza. You can't dial up and have one
delivered! -- Alf ::::
:::: Jan Steinman <http://www.EcoReality.org> ::::
Hi all,
I'm starting to transfer a mediawiki 1.7 database in new version
mediawiki 1.13.1
I look that there are new tables and any fields are lightly changed.
I think that I can not use old database (about mediawiki 1.7 version).. so
Is there script/other to convert old database (about mediawiki 1.7
version) to new database (about mediawiki 1.13.1 version) ?
Can you help me about it?
Thanks,
--
Alessandra Bilardi, Ph. D.
----
CRIBI, University of Padova, Italy
http://www.linkedin.com/in/bilardi
----
La semplicità è la più alta forma di perfezione (Leonardo Da Vinci)
Keep simple, stupid (KISS, IT)
----
Version Info
* MediaWiki <http://www.mediawiki.org/> : 1.10.0
* PHP <http://www.php.net/> : 5.2.0-8+etch11 (apache2handler)
* MySQL <http://www.mysql.com/> : 5.0.32-Debian_7etch6-log
In the last week we have somehow lost the ability to 'edit' a new page.
You can go to a page and edit the whole page or a section of the page.
But If you enter "FOOBAR PAGE" in the search then click on edit new page
you will get a blank page with no header/footer .. nothing (guess that
is what 'blank' means)
Has anyone seen this before? Ideas on what could change in a system
(outside of mediawiki) to do this?
tia
DSig
David Tod Sigafoos | SANMAR Corporation
PICK Guy
206-770-5585
davesigafoos(a)sanmar.com
Hello,
I want to install a MediaWiki 1.13 an a machine with a SSL-Proxy, but I can
not figure out how.
The wiki works fine under without SSL under: http://mydomain.de/wiki/.
The URL of the SSL-Proxy is https://ssl.webpack.de/mydomain.de/.
The SSL-URL to the wiki is
https://ssl.webpack.de/mydomain.de/wiki/index.php.
The scriptpath is set to /wiki.
On loading the wiki with SSL it redirects to http://mydomain.de/ every time.
(The $wgServerName is set to mydomain.de.)
It does not work to set the scriptPath like this: /mydomain.de/wiki. (If so
it redirects to http://mydomain.de/mydomain.de/wiki.
It does not work to set this three variables in Localsettings.php:
$wgProto = 'https';
$wgServerName = 'ssl.webpack.de/';
$wgServer = $wgProto.'://' . $wgServerName;*/
-> Result is an infinite loop)
Does anybody knows a solution to this problem?
Thanks a lot, Raul
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The MediaWiki version number, $wgVersion in
includes/DefaultSettings.php, wasn't updated in the release of 1.12.1
and 1.13.2. So these releases will report themselves as being 1.12.0
and 1.13.1 respectively, in [[Special:Version]] and other places. A
new, corrected tarball has been uploaded.
New SHA-1 checksums:
c6f6e404ee9152deeec63cdc3278a2a57d556efe mediawiki-1.13.2.tar.gz
046206b342904cb729fd076ddd101534e23b6c07 mediawiki-1.13.2.patch.gz
4500cde3e60351ae2fc0382b8e91654f4cb6a0ff mediawiki-i18n-1.13.2.patch.gz
6f315f88a481daa1a92b1a409e92e036aaca610b mediawiki-1.12.1.tar.gz
1aed1e8083ebe98e884c924dad174c2fb1537d8b mediawiki-1.12.1.patch.gz
71fb3d06c1fe331fecf25cca92ea50bb07ce7465 mediawiki-i18n-1.12.1.patch.gz
New MD5 checksums:
e10f791ba9ecd02dd751a5676cc84405 mediawiki-1.13.2.tar.gz
2e33ed21c5e889f546556066a2b53806 mediawiki-1.13.2.patch.gz
db1e3b46e04a2608ea5429d73465ad03 mediawiki-i18n-1.13.2.patch.gz
00229272c5e1881ff36a07ca95891ca2 mediawiki-1.12.1.tar.gz
885c6dc5bce177563c3d7a14e5167411 mediawiki-1.12.1.patch.gz
82f874b72a65e71e41f4dadf410e0eec mediawiki-i18n-1.12.1.patch.gz
- -- Tim Starling
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI5QTtdWgrCOij/sQRArsGAJ9LxmlBwMVhnj2oPaE3WydOGEFi0wCeO5dL
ZudvdYX82fMDt1Gkdyv5wwI=
=J5XS
-----END PGP SIGNATURE-----
Hi,
I have had to bulk update user options in the past as well and wrote a
short python script that iterates over all the users and sets the
options. It's not generalized yet (this was a one-off), so you would
need to change the code slightly to connect to the db and set specific
options, but its simple enough that this isn't too cumbersome.
I guess its goofy to have rewritten the de/coding in another language,
but the user option blob was simple enough and I just needed to do this
once.
hope that helps,
/Jonah
#!/usr/bin/python
"""
simple script to deal w/ bulk modifications of mediawiki user options, which are blobs
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
import sys
import re
import MySQLdb
DB_USER="xxxxxxxxx"
DB_PASSWD="xxxxxxxxx"
def getConnection():
conn = MySQLdb.connect(host="localhost", user=DB_USER, passwd=DB_PASSWD, db="susdev_wiki")
return conn
class UserOptions:
def __init__(self, conn, name):
self.name = name
self.optionsDict = {}
self.loadOptions(conn)
def loadOptions(self, conn):
c = conn.cursor()
c.execute("SELECT user_options FROM user WHERE user_name = '%s'" % self.name)
optionsBlob = c.fetchone()[0]
# print optionsBlob
self._decodeOptions(optionsBlob)
c.close()
# return self.optionsDict
def setOption(self, name, value):
print "Changing %s's %s->%s\n" % (self.name, name, value)
self.optionsDict[name] = value
def saveOptions(self, conn):
optionsBlob = self._encodeOptions()
c = conn.cursor()
c.execute("update user SET user_options = '%s' WHERE user_name = '%s'" % (optionsBlob, self.name))
c.close()
def _encodeOptions(self):
blobList = ["%s=%s" % (i,k) for i,k in self.optionsDict.items()]
return "\n".join(blobList)
def _decodeOptions(self, optionsBlob):
"""
ripped from the User.php functions that do this in teh mediwiki
"""
pattern = re.compile("^(.[^=]*)=(.*)$")
optionPairs = optionsBlob.split("\n")
# import pdb; pdb.set_trace()
for pair in optionPairs:
m = pattern.match(pair)
if m:
name, value = (m.group(1), m.group(2))
self.optionsDict[name] = value
def main (argv=None):
conn = getConnection()
cur = conn.cursor()
cur.execute("SELECT user_name from user")
usernames = [row[0] for row in cur.fetchall()]
cur.close()
for user in usernames:
print "Processing %s" % user
u = UserOptions(conn, user)
u.setOption("skin", "<NEW VALUE>")
u.saveOptions(conn)
conn.close()
print "Done\n"
if __name__ == "__main__":
sys.exit(main())