[Mediawiki-l] Changing User: URL link

larson191 at aol.com larson191 at aol.com
Sat Sep 8 00:33:29 UTC 2007


STOP SENDING EMAILS YOU HAVE THE WRONGADDRESS


-----Original Message-----
From: Paul Coghlan <pcoghlan at usa.net>
To: MediaWiki announcements and site admin list <mediawiki-l at lists.wikimedia.org>
Sent: Fri, 7 Sep 2007 5:34 am
Subject: [Mediawiki-l] Changing User: URL link



Apologies for re-posting essentially the same post but this is just a final
ttempt to get some input on what seems to be a very specific issue.
We have a custom skin that includes the personal URLs and a link to the
User:¹ page in the format:
www.domain.com/wiki/index.php?title=User:XXX
with the hyperlink appearing as the username, ŒXXX¹ in this example.
We would like to retain the link but point it instead to:
www.domain.com/user/YY
Where YY is not the username but instead the uid. The hyperlink should
emain as-is (i.e. XXX) but point to the new destination.
I am not a PHP expert but have found this in our custom skin php file.
I am thinking that the line marked with ** is the line to change but don¹t
now what to insert in its place.
Can anyone help out? Is this is something better posted in a PHP forum?
Many thanks,
aul
<?php             foreach($this->data['personal_urls'] as $key => $item) {
>
               <li id="pt-<?php echo Sanitizer::escapeId($key) ?>"<?php
                   global $wgTitle, $wgUser;
                   $item['active'] =
                       $item['active'] ||
                       $item['href']==$wgTitle->getLocalURL() ||
*            $item['href']==$wgTitle->getLocalURL().'/'.$wgUser->getName();
                   if ($item['active']) { ?> class="active"<?php } ?>><a
ref="<?php
               echo htmlspecialchars($item['href']) ?>"<?php
               if(!empty($item['class'])) { ?> class="<?php
               echo htmlspecialchars($item['class']) ?>"<?php } ?>><?php
               echo htmlspecialchars($item['text']) ?></a></li>


______________________________________________
ediaWiki-l mailing list
ediaWiki-l at lists.wikimedia.org
ttp://lists.wikimedia.org/mailman/listinfo/mediawiki-l


________________________________________________________________________
Email and AIM finally together. You've gotta check out free AOL Mail! - http://mail.aol.com


More information about the MediaWiki-l mailing list