Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

[Mediawiki] Rilpoint skin : how to hide user links

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


pierre.labrecque at live

Nov 26, 2009, 1:42 PM

Post #1 of 7 (1262 views)
Permalink
[Mediawiki] Rilpoint skin : how to hide user links

Hello !

(me again ;-)

I use Mediawiki 14.1 and the only one skin in use on my wiki is Rilpoint
(http://www.rilnet.com/en/rilpoint-sharepoint-look-alike-drupal-and-mediawik
i-skin)
The other skins are disable via the LocalSettings.php.

In the top right corner, there are several links (user links) : Username, My
Preferences, My Talk, My Watchlist, My Contributions...)

I would like to know if we can hide these links? I just want to keep the
Login or Logout link... Everything else: hide.

Is it possible? If yes, where exactly? (I'm a newbie, so...)

Thanks and advance!

Pierre


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


wjmazza at gmail

Nov 26, 2009, 5:13 PM

Post #2 of 7 (1228 views)
Permalink
Re: [Mediawiki] Rilpoint skin : how to hide user links [In reply to]

The simplest (and my recommended) way would be to use CSS to hide the links.
Use something like Firebug[1] for Firefox to inspect the links and get their
ID or class name. Then you can place something like this in your
MediaWiki:Common.css

/* if by ID */
#myTalkLink { display: none; }
/* if by class */
.userLinks { display: none; }

The alternative (and my not recommended) way would be to look at the skin's
PHP file and find where it creates the links and remove it from the code.

I don't use this skin so I unfortunately cannot provide you with the
specific CSS code to add or PHP code to modify. =/

Walter Mazza


On Thu, Nov 26, 2009 at 3:42 PM, Pierre Labrecque
<pierre.labrecque [at] live>wrote:

> Hello !
>
> (me again ;-)
>
> I use Mediawiki 14.1 and the only one skin in use on my wiki is Rilpoint
> (
> http://www.rilnet.com/en/rilpoint-sharepoint-look-alike-drupal-and-mediawik
> i-skin)
> The other skins are disable via the LocalSettings.php.
>
> In the top right corner, there are several links (user links) : Username,
> My
> Preferences, My Talk, My Watchlist, My Contributions...)
>
> I would like to know if we can hide these links? I just want to keep the
> Login or Logout link... Everything else: hide.
>
> Is it possible? If yes, where exactly? (I'm a newbie, so...)
>
> Thanks and advance!
>
> Pierre
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l [at] lists
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


wjmazza at gmail

Nov 26, 2009, 5:14 PM

Post #3 of 7 (1227 views)
Permalink
Re: [Mediawiki] Rilpoint skin : how to hide user links [In reply to]

Now with a link to firebug! >.<

[1] Firebug = http://getfirebug.com/

<http://getfirebug.com/>
Walter Mazza


On Thu, Nov 26, 2009 at 7:13 PM, Walter Mazza <wjmazza [at] gmail> wrote:

> The simplest (and my recommended) way would be to use CSS to hide the
> links. Use something like Firebug[1] for Firefox to inspect the links and
> get their ID or class name. Then you can place something like this in your
> MediaWiki:Common.css
>
> /* if by ID */
> #myTalkLink { display: none; }
> /* if by class */
> .userLinks { display: none; }
>
> The alternative (and my not recommended) way would be to look at the skin's
> PHP file and find where it creates the links and remove it from the code.
>
> I don't use this skin so I unfortunately cannot provide you with the
> specific CSS code to add or PHP code to modify. =/
>
> Walter Mazza
>
>
>
> On Thu, Nov 26, 2009 at 3:42 PM, Pierre Labrecque <
> pierre.labrecque [at] live> wrote:
>
>> Hello !
>>
>> (me again ;-)
>>
>> I use Mediawiki 14.1 and the only one skin in use on my wiki is Rilpoint
>> (
>> http://www.rilnet.com/en/rilpoint-sharepoint-look-alike-drupal-and-mediawik
>> i-skin<http://www.rilnet.com/en/rilpoint-sharepoint-look-alike-drupal-and-mediawiki-skin>
>> )
>> The other skins are disable via the LocalSettings.php.
>>
>> In the top right corner, there are several links (user links) : Username,
>> My
>> Preferences, My Talk, My Watchlist, My Contributions...)
>>
>> I would like to know if we can hide these links? I just want to keep the
>> Login or Logout link... Everything else: hide.
>>
>> Is it possible? If yes, where exactly? (I'm a newbie, so...)
>>
>> Thanks and advance!
>>
>> Pierre
>>
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-l [at] lists
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
>
>
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


pierre.labrecque at live

Nov 26, 2009, 5:51 PM

Post #4 of 7 (1224 views)
Permalink
Re: [Mediawiki] Rilpoint skin : how to hide user links [In reply to]

Well... I have try what you told me... very interesting !!! but still need
your help...

In Firefox, I have done a right click on My Preferences and choose Inspect
Element. It shows me some html/php/... code... See below.

Could you give me an example (with the code below) of what I should type in
my mediawiki:common.css ? From here, not sure what to do...

Thanks for your time ! I really appreciate it !


<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">
<a class="new" accesskey="n" title="Your talk page [n]"
href="/sandbox/index.php?title=User_talk:WikiSysop">My talk</a>
</li>
<li id="pt-preferences">
<a title="Your preferences"
href="/sandbox/index.php?title=Special:Preferences">My preferences</a>
</li>
<li id="pt-watchlist">
<a accesskey="l" title="The list of pages you are monitoring for changes
[l]" href="/sandbox/index.php?title=Special:Watchlist">My watchlist</a>
</li>
<li id="pt-mycontris">
<a accesskey="y" title="List of your contributions [y]"
href="/sandbox/index.php?title=Special:Contributions/WikiSysop">My
contributions</a>
</li>
<li id="pt-logout">
<a title="Log out"
href="/sandbox/index.php?title=Special:UserLogout&returnto=Main_Page">Log
out</a>
</li>
</ul>
</div>
</div>
</div>
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
</tbody>
</table>

-----Original Message-----
From: mediawiki-l-bounces [at] lists
[mailto:mediawiki-l-bounces [at] lists] On Behalf Of Walter Mazza
Sent: Thursday, November 26, 2009 8:15 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] [Mediawiki] Rilpoint skin : how to hide user
links

Now with a link to firebug! >.<

[1] Firebug = http://getfirebug.com/

<http://getfirebug.com/>
Walter Mazza


On Thu, Nov 26, 2009 at 7:13 PM, Walter Mazza <wjmazza [at] gmail> wrote:

> The simplest (and my recommended) way would be to use CSS to hide the
> links. Use something like Firebug[1] for Firefox to inspect the links and
> get their ID or class name. Then you can place something like this in your
> MediaWiki:Common.css
>
> /* if by ID */
> #myTalkLink { display: none; }
> /* if by class */
> .userLinks { display: none; }
>
> The alternative (and my not recommended) way would be to look at the
skin's
> PHP file and find where it creates the links and remove it from the code.
>
> I don't use this skin so I unfortunately cannot provide you with the
> specific CSS code to add or PHP code to modify. =/
>
> Walter Mazza
>
>
>
> On Thu, Nov 26, 2009 at 3:42 PM, Pierre Labrecque <
> pierre.labrecque [at] live> wrote:
>
>> Hello !
>>
>> (me again ;-)
>>
>> I use Mediawiki 14.1 and the only one skin in use on my wiki is Rilpoint
>> (
>>
http://www.rilnet.com/en/rilpoint-sharepoint-look-alike-drupal-and-mediawik
>>
i-skin<http://www.rilnet.com/en/rilpoint-sharepoint-look-alike-drupal-and-me
diawiki-skin>
>> )
>> The other skins are disable via the LocalSettings.php.
>>
>> In the top right corner, there are several links (user links) : Username,
>> My
>> Preferences, My Talk, My Watchlist, My Contributions...)
>>
>> I would like to know if we can hide these links? I just want to keep the
>> Login or Logout link... Everything else: hide.
>>
>> Is it possible? If yes, where exactly? (I'm a newbie, so...)
>>
>> Thanks and advance!
>>
>> Pierre
>>
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-l [at] lists
>> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
>
>
_______________________________________________
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


j.m.van.leerdam at gmail

Nov 26, 2009, 11:03 PM

Post #5 of 7 (1226 views)
Permalink
Re: [Mediawiki] Rilpoint skin : how to hide user links [In reply to]

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


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


Platonides at gmail

Nov 28, 2009, 6:42 AM

Post #7 of 7 (1193 views)
Permalink
Re: [Mediawiki] Rilpoint skin : how to hide user links [In reply to]

Pierre Labrecque wrote:
> I can't understand why it didn't work via the Mediawiki:Common.css, but
> anyway, it works now !
>
> Many thanks guys!
>
> Pierre

Looks like RilPoint skin doesn't honor Mediawiki:Common.css



_______________________________________________
MediaWiki-l mailing list
MediaWiki-l [at] lists
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.