Author: cfinck Date: Thu Jul 26 01:51:50 2007 New Revision: 27814
URL: http://svn.reactos.org/svn/reactos?rev=27814&view=rev Log: - Disable the "E-Mail address" and "Real Name" boxes on the Preferences page. The Real name was already disabled in the code and the E-Mail address should be completely handled by RosCMS. - Add a "Permanent link" button to the left menu.
frik85 please upload that to the Web server.
Modified: trunk/web/reactos.org/htdocs/wiki/includes/SpecialPreferences.php trunk/web/reactos.org/htdocs/wiki/skins/RosCMS.php
Modified: trunk/web/reactos.org/htdocs/wiki/includes/SpecialPreferences.php URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/wiki/include... ============================================================================== --- trunk/web/reactos.org/htdocs/wiki/includes/SpecialPreferences.php (original) +++ trunk/web/reactos.org/htdocs/wiki/includes/SpecialPreferences.php Thu Jul 26 01:51:50 2007 @@ -297,7 +297,7 @@ $wgUser->saveSettings();
$error = false; - if( $wgEnableEmail ) { + /*if( $wgEnableEmail ) { $newadr = $this->mUserEmail; $oldadr = $wgUser->getEmail(); if( ($newadr != '') && ($newadr != $oldadr) ) { @@ -319,12 +319,12 @@ } else { $error = wfMsg( 'invalidemailaddress' ); } - } else { + } else {*/ $wgUser->setEmail( $this->mUserEmail ); $wgUser->setCookies(); $wgUser->saveSettings(); - } - } + /* } + }*/
if( $needRedirect && $error === false ) { $title =& SpecialPage::getTitleFor( "Preferences" ); @@ -549,7 +549,7 @@ }
- if ($wgAllowRealName) { + /*if ($wgAllowRealName) { $wgOut->addHTML( $this->addRow( '<label for="wpRealName">' . wfMsg('yourrealname') . '</label>', @@ -557,6 +557,7 @@ ) ); } + if ($wgEnableEmail) { $wgOut->addHTML( $this->addRow( @@ -564,7 +565,7 @@ "<input type='text' name='wpUserEmail' id='wpUserEmail' value="{$this->mUserEmail}" size='25' />" ) ); - } + }*/
global $wgParser; if( !empty( $this->mToggles['fancysig'] ) &&
Modified: trunk/web/reactos.org/htdocs/wiki/skins/RosCMS.php URL: http://svn.reactos.org/svn/reactos/trunk/web/reactos.org/htdocs/wiki/skins/R... ============================================================================== --- trunk/web/reactos.org/htdocs/wiki/skins/RosCMS.php (original) +++ trunk/web/reactos.org/htdocs/wiki/skins/RosCMS.php Thu Jul 26 01:51:50 2007 @@ -137,7 +137,7 @@ <div class="navTitle">Wiki Toolbox</div> <ol> - <?php if($this->data['notspecialpage']) { foreach( array( 'whatlinkshere', 'recentchangeslinked' ) as $special ) { ?> + <?php if($this->data['notspecialpage']) { foreach( array( 'whatlinkshere', 'recentchangeslinked', 'permalink' ) as $special ) { ?> <li><a href="<?php echo htmlspecialchars($this->data['nav_urls'][$special]['href']) ?>"><?php echo $this->msg($special) ?></a></li> <?php } } ?> <?php if(/*$this->data['feeds'] Let's not do this now*/ 0) { ?>