Morning!
I am building a web site for a family member who is in the process
of completing a PhD and MediaWiki looks like the ideal CMS to use
as they will be able to update their own web site (delegation is
always important :-)
Two questions:
1) There may be a need to have certain pages in multiple languages.
Is the best way to do this for a small site is to add a language
identifier to the page title eg:
here is the CV in [[CV.en|English]] or in [[CV.nl|Dutch]].
Is there a way to do this and still have a more readable title eg
"English CV" rathern than "CV.en"?
2) I see from the LocalSettings.php that it is possible to prevent
access to certain pages for users who are not logged in. Do I
need to list all the pages I want blocked or is it possible
to do wildcards eg internal*
TIA
James
The advice in the subject line is correct. Users should never be
deleted from the table for another reason; you leave a lot of messy
references to them lurking about which really does confuse the hell
out of the software.
MediaWiki does not support the deletion of users, and likely never will.
Rob Church
Hi,
I'm having some problems with my wiki installation.
I can't explain what happens but check out
http://www.wyger.nl/usr/antichrist/ and press set up the wiki. What can I do about that?
Also where can I download language packs?
THX,
Bram Haegeman
Hi all,
I'm really sorry to bother you with such a question but I can’t seem
to find an answer (even in the list archives).
This morning I tried to connect to my wiki and I receive a violent :
Warning: main() [function.main]: open_basedir restriction in effect.
File(./normal/UtfNormalUtil.php) is not within the allowed path(s): (/
var/www/tmp/dedalus:/var/www/users/dedalus:/var/www/dns/
dedalus.freezee.org:/usr/share/php) in /var/www/users/dedalus/wiki/
includes/GlobalFunctions.php on line 32
Warning: main(normal/UtfNormalUtil.php) [function.main]: failed to
open stream: Operation not permitted in /var/www/users/dedalus/wiki/
includes/GlobalFunctions.php on line 32
Fatal error: main() [function.require]: Failed opening required
'normal/UtfNormalUtil.php' (include_path='.:/var/www/users/dedalus/
wiki:/var/www/users/dedalus/wiki/includes:/var/www/users/dedalus/wiki/
languages') in /var/www/users/dedalus/wiki/includes/
GlobalFunctions.php on line 32
Now, I tought that by upgrading to 1.5.0, I’d be able to resolve the
problem (seeing that 1.4.3 isn’t compatible with PHP 5.0.5 and all),
but it didn’t work…
So I tried to reinstall everything but during the setup phase of the
installation I now receive:
Warning: main() [function.main]: open_basedir restriction in effect.
File(./includes/Defines.php) is not within the allowed path(s): (/var/
www/tmp/dedalus:/var/www/users/dedalus:/var/www/dns/
dedalus.freezee.org:/usr/share/php) in /var/www/users/dedalus/wiki/
config/index.php on line 122
Warning: main(includes/Defines.php) [function.main]: failed to open
stream: Operation not permitted in /var/www/users/dedalus/wiki/config/
index.php on line 122
Fatal error: main() [function.require]: Failed opening required
'includes/Defines.php' (include_path='.:/var/www/users/dedalus/wiki:/
var/www/users/dedalus/wiki/includes:/var/www/users/dedalus/wiki/
languages') in /var/www/users/dedalus/wiki/config/index.php on line 122
I really don’t know what to do next…
Any help would be much appreciated.
Many thanks,
Sacco.
http://entwicklung/mediawiki/index.php/testnamespace:Restriction_Test
Here is my Part of the LocalSettings.php where i've done this:
221 # create Test-ExtraNamespace:
222 $wgExtraNamespaces =
223 array(100 => "testnamespace",
224 101 => "testnamespace_talk"
225 );
226
227 # restrict access to this extra-namespace
228 $wgRestrictedNamespaces =
229 array(100 => "testgroup",
230 101 => "testgroup"
231 );
232 # allow only 'sysop' and 'testgroup' for restrictedNamespace 'testnamespace'
233 $wgGroupPermissions['sysop']['testgroup'] = true;
234 $wgGroupPermissions['testgroup']['testgroup'] = true;
235
236 $wgGroupPermissions['testgroup']['read'] = true;
237 #$wgGroupPermissions['testgroup' ]['edit'] = false;
238
Then, you can create a Page using the following link:
[[testnamespace:foobar]]
After this, the page 'foobar' can be viewed / edited only by the groupes you defined above.
Regards,
Torsten
-----Ursprüngliche Nachricht-----
Von: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org]Im Auftrag von Gabriele
Barberi
Gesendet: Dienstag, 29. November 2005 14:06
An: mediawiki-l(a)Wikimedia.org
Betreff: [Mediawiki-l] Userspaces and groups permissions
Hello,
I'm running mediawiki 1.5.0 and I would like to have four groups (sysop,
bureaucrat, developers, contributors) where:
- sysop has full privileges;
- bureaucrat has almost full privileges (can create new users, edit and
add new pages, but cannot modify pages owned by sysops);
- developers can add new pages and modify them but only on their own
projects;
- contributors can only modify some pages.
In order to allow future upgrades I prefer not to install patches not
officially provided by mediawiki.org.
Could someone tell me how to do it?
I would also like to create new projects/namespaces with subpages, but
the documentation on meta.mediawiki.org is not clear about it. How
should I do it?
Please save me...
Thanks in advance and best regards
Gabriele
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
i can't get it working:
i have this in my Localsettings.php:
# Testing Namespace
$wgExtraNamespaces =
array(100 => "testnamespace",
101 => "testnamespace_talk"
);
# restrict access to this extra-namespace
$wgRestrictedNamespaces =
array(100 => "testgroup",
101 => "testgroup"
);
# allow only 'sysop' and 'testgroup' for restrictedNamespace 'testnamespace'
$wgGroupPermissions['sysop']['testgroup'] = true;
$wgGroupPermissions['testgroup']['testgroup'] = true;
This should allow only users in the sysop and testgroup access to the pages in testnamespace.
But, if i create a page with this link [[testnamespace:Restriction_Test]]
i can view and edit it as a normal (new created) testuser.
have i missed something?
Beste Grüsse, Best Regards
Torsten Schmidt
I just did something very similar for my company. Here's my circumstances, and how I did it. Hope it helps.
I have a situation where the user name is known by apache before I log on. I can get the user name from Apache. This means something that may be unique to my situation- when the user gets to my page, he is already logged in.
Logins are all handled by the User::loadFromSession function. It returns a user object, or a blank user if not logged in. My solution was simple- anytime it returned a new User();, I had it instead return the results of a new function- loadFromOutside()
loadFromOutside takes the user name, and goes
$user=User::newFromName($name)
If(0==$user->getID){
$user->addToDatabase();
$user->setPassword($pass);
$user->setEmail($email);
$user->setReadName($name);
$user->setOption('rememberPassword',1);
Else{
$user->loadFromDatabase();
}
$user->setCookies();
$user->saveSettings();
Return $user;
What this does is try and load the user from the DB. If it can't, it creates a new user. This code *is* working. The only think you need to do is fill in $name, $pass, and $email. If you don't get a password from the server, randomizing one is fine- they never need it.
Gabe
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Chris McIntosh
Sent: Wednesday, November 16, 2005 10:09 AM
To: mediawiki-l(a)Wikimedia.org
Subject: [Mediawiki-l] Intranet Single Signon
I am modifying the source code to allow our internal Intranet users to automatically log in to the wiki based on their username applied by apache.
I do this by using mod_ntlm to get their NTLM credentials and then want to seemlessly log them in.
The problem I am having is setting up the user variable (wgUser) properly. I have tried the following.
For now I have it near the bottom of Setup.php just to test around line 300.
if ( $wgUseRemoteUser)
{
if ($userid = $wgUser->idFromName($wgIP)) { $wgUser->setId($userid); $wgUser->loadFromDatabase(); } else { $wgUser = $wgUser->newFromName($wgIP); $wgUser->setId($wgUser->getMaxId());
$wgUser->addToDatabase();
}
$wgUser->setToken() ;
$wgUser->setCookies();
}
The problem with this approach is I can't change any preferences for this user. Everything else seems fine but if I try and change a setting like Underline links, the preference page won't save. I have tracked that down to the edit token not being set properly, but I am not sure how to set it. If I remove the check in SpecialPreferences where it calls matchEditToken then everything works fine.
Any advice?
Thanks
Chris McIntosh
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Hi !
I installed MediaWiki in my company and I would to customize it.
I would like to add "History navigation links" at the top of the page.
For exemple : MainPage > MyProject > ProjectDocumentation when I visit
MainPage, then MyProject page, then ProjectDocumentation page in order
to quickly return to the last page instead of return to MainPage each time.
How could I make this in MediaWiki ?
Thanks for your help.
Sandrine
Paris (France)
--
---------------------------------
Sandrine CAR
Administrateur Réseau
HORIZON SOFTWARE
3, rue Meyerbeer
75009 Paris
---------------------------------
Thanks to all who suggested me a solution! (Brion, Jan, Fxparlant). I have tried it in a new install MediaWiki and there it worked, but not in my main one installation... :-(
Maybe is because I've changed some settings? (those indicated below)
Ciao, N.
---
In my include/DefaultSetting.php:
$wgSitename = 'LesWiki';
$wgUseDatabaseMessages = false; (otherwise I could not edit my language file)
In my LocalSetting.php:
$wgSitename = "LesWiki";
$wgDefaultSkin = 'cologneblue';
$wgLanguageCode = "it";
---
Hi,
I am logged on as sysop of my wiki.
The directories images and subdirectories archive, temp and thumb exist
and all have 777 mode.
I try to upload an image and the following error is shown:
Internal Error: Could not copy file "/tmp/phpjf0ODv" to
"/<mywebspace>/wiki/images/test.png".
No other information or comment. I have no idea what could cause this
problem. The site is hosted by
a computing center of a university. Probably they made some options on
their servers that lead to this
error?
Anyone any idea to find out what goes wrong?
Thanks, Martin