Last Updated on Thursday, 23 September 2010
- We have an internal wiki knowledge base using MediaWiki version 1.14.
- Some articles are available for public, some are restricted to staff and different localgroups.
- When users click on the 'Login' link, we want the system to automatically prompt them for their username/password. (Kerberos authenticated, as opposed to NTLM authenticated).
- Note: This article is displaying how to change the link and not how to setup these authentication methods.
Open your skin file /skins/
- <div class="portlet" id="p-personal">
- <h5><?php $this->msg('personaltools') ?></h5>
- <div class="pBody">
- <ul>
- <?php foreach($this->data['personal_urls'] as $key => $item) { ?>
- <li id="<?php echo Sanitizer::escapeId( "pt-$key" ) ?>"<?php
- if ($item['active']) { ?> class="active"<?php } ?>><a href="/<?php
- echo htmlspecialchars($item['href']) ?>"<?php echo $skin->tooltipAndAccesskey('pt-'.$key) ?><?php
- if(!empty($item['class'])) { ?> class="<?php
- echo htmlspecialchars($item['class']) ?>"<?php } ?>><?php
- echo htmlspecialchars($item['text']) ?></a></li>
- <?php } ?>
- </ul>
- </div>
- </div>
- <div class="portlet" id="p-personal">
- <h5><?php $this->msg('personaltools') ?></h5>
- <div class="pBody">
- <ul>
- <?php foreach($this->data['personal_urls'] as $key => $item) { ?>
- if (($key!="login")&&($key!="logout")&&($key!="anonlogin")) {
- <li id="<?php echo Sanitizer::escapeId( "pt-$key" ) ?>"<?php
- if ($item['active']) { ?> class="active"<?php } ?>><a href="/<?php
- echo htmlspecialchars($item['href']) ?>"<?php echo $skin->tooltipAndAccesskey('pt-'.$key) ?><?php
- if(!empty($item['class'])) { ?> class="<?php
- echo htmlspecialchars($item['class']) ?>"<?php } ?>><?php
- echo htmlspecialchars($item['text']) ?></a></li>
- <?php }
- }
- if($this->data['loggedin']==1) {
- echo '<li id="pt-logout"><a href="/index.php?title=Special:Userlogout&returnto=Special:MainPage" title="Log Out">Log out</a></li>';
- } else {
- echo '<li id="pt-login"><a href="/wiki/Special:UserLogin?returnto='.trim($_GET['title']).'" title="You are encouraged to log in; however, it is not mandatory [alt-o]" accesskey="o">Log in</a></li>';
- } ?>
- </ul>
- </div>
- </div>
- Excludes displaying system login, anonymous login or logout links in personal toolbar
- Add a list item linking to your own login page (in this example the default one as ours is Kerberos_Login) with login or logout link.
Latest Posts
-
Joes Quicklist Weblinks (JQW)
-
Tue 18-Jun-13
Hi Joel, Great module, it really fills a need, and I'm not even using the thumbnails. It doesn't seem ...
-
Tue 18-Jun-13
-
Migrate Joomla! 1.5.x to 2.5.x+
-
Fri 07-Jun-13
Hi Drew, I've got a silly question, are you sure the template you are using has been upgraded or ...
-
Wed 05-Jun-13
Joel, Thanks for the newly updated instructions. I was nearly successful in getting everything working.
-
Wed 05-Jun-13
Hi Drew, Good point. You need to copy your images folder from your old site over to your new one. You ...
-
Tue 04-Jun-13
Making a little progress here. I already had a copy of the live site running on this test server. So ...
-
Fri 07-Jun-13

