
pierre.labrecque at live
Nov 27, 2009, 6:47 AM
Post #6 of 7
(1232 views)
Permalink
|
|
Re: [Mediawiki] Rilpoint skin : how to hide user links
[In reply to]
|
|
First of all : many thanks to Walter and Jean-Marc ! Here are the steps I have done (and problems): First, I have add these lines to the Mediawiki:Common.css (with no result... and yes, I have refresh the page, etc...) #pt-userpage { display: none; } #pt-mytalk { display: none; } #pt-preferences { display: none; } #pt-watchlist { display: none; } #pt-mycontris { display: none; } As it didn't work, I have remove the lines, so my Mediawiki:Common.css was empty. Then I have add the same lines in my \skins\RilPoint\style.css: with no result. So I remove the lines from \skins\RilPoint\style.css For an unknown reason (God helped me), I have try the following: I have add these lines in Mediawiki:Common.css, with no result again... #topnav #pt-userpage { display: none; } #topnav #pt-mytalk { display: none; } #topnav #pt-preferences { display: none; } #topnav #pt-watchlist { display: none; } #topnav #pt-mycontris { display: none; } I have remove the lines, so my Mediawiki:Common.css was empty. Finally, I have add the same lines in \skins\RilPoint\style.css and... it works ! : #topnav #pt-userpage { display: none; } #topnav #pt-mytalk { display: none; } #topnav #pt-preferences { display: none; } #topnav #pt-watchlist { display: none; } #topnav #pt-mycontris { display: none; } Last step was to add $wgShowIPinHeader = false; in my LocalSettings.php and all I have now is the Login or the Logout link. I can't understand why it didn't work via the Mediawiki:Common.css, but anyway, it works now ! Many thanks guys! Pierre -----Original Message----- From: mediawiki-l-bounces [at] lists [mailto:mediawiki-l-bounces [at] lists] On Behalf Of Jean-Marc van Leerdam Sent: Friday, November 27, 2009 2:04 AM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] [Mediawiki] Rilpoint skin : how to hide user links Hi Pierre, 2009/11/27 Pierre Labrecque <pierre.labrecque [at] live>: > > <table id="header" cellspacing="0" cellpadding="0" border="0"> > <tbody> > <tr> > <td id="topnav-container" colspan="2"> > <div id="topnav"> > <div id="p-personal" class="block"> > <h2>Personal tools</h2> > <div class="content"> > <ul class="menu"> > <li id="pt-userpage"> > <a class="new" accesskey="." title="Your user page [.]" > href="/sandbox/index.php?title=User:WikiSysop">WikiSysop</a> > </li> > <li id="pt-mytalk"> The ID's are listed in the <li> tags. Add them to the MediaWiki:Common.css as Walter suggested. For example to hide the link to the talk page, add #pt-mytalk { display: none; } But keep in mind that this does not prevent access to the talk page, it only hides the link. The HTML sourcecode for the page will still contain the link and the user is also able to enter the link directly in the browser. -- Regards, Jean-Marc -- . ___ . @@ // \\ "De Chelonian Mobile" . (_,\/ \_/ \ TortoiseSVN . \ \_/_\_/> The coolest Interface to (Sub)Version Control . /_/ \_\ http://tortoisesvn.net _______________________________________________ MediaWiki-l mailing list MediaWiki-l [at] lists https://lists.wikimedia.org/mailman/listinfo/mediawiki-l No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.709 / Virus Database: 270.14.83/2529 - Release Date: 11/26/09 14:42:00 _______________________________________________ MediaWiki-l mailing list MediaWiki-l [at] lists https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
|