Hello all,
Sorry if this question has been beat to death; but I've scoured the Inet in search of answers and haven't found any. I've installed MediWiki 1.5 without any problems. However, I'm discovering that users are not able to create accounts in order to use the wiki. I'm using these entries in the localsettings.php:
$wgGroupPermissions['*']['createaccount'] = true; $wgGroupPermissions['*']['edit'] = false;
Currently when a users sees the main page and tries to edit anything, they are re-directed to a login page. But when a username and password (and password again for new users) is entered, the error "You have not specified a valid user name".
If anyone can, please pass along any suggestions or solutions.
Thanks,
Will
Hi,
I'd like to modify the links in the standard navigation portlets in the standard page layout, as seen in skins/MonoBook.php and similar. These links need to change based upon the namespace of the currently displayed page.
Here is the relevant portion:
a style="background-image: url(<?php $this->text('logopath') ?>);" <?php ?>href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>" <?php ?>title="<?php $this->msg('mainpage') ?>"></a>
For " $this->data['nav_urls']['mainpage']['href']", I'd like to prefix it with the current namespace; something like:
href="<?php echo htmlspecialchars( $something->getNameSpacePrefix() . ':' . # ???? $this->data['nav_urls']['mainpage']['href']) ?>"
Our site uses namespaces for language switching. The logo and main page links on a page in the DE or PT namespace should ideally link to DE:Main_Page or PT:Main_Page, respectively. (These other Main_Pages are actually redirects to articles like "PT:Página Inicial",so it isn't necessary to get the localised title when linking)
thanks
(wiki site is http://www.novaroma.org/nr/)
maybe using : global $wgTitle ?
then :
$wgTitle->getNamespace() (returns integer value) $wgTitle->getNsText() (returns string value of namespace, in the wiki language)
(see these functions in /includes/Title.php for details)
mediawiki-l@lists.wikimedia.org