[Mediawiki-l] Conditional page content depending on user is logged in or not

Jean-Lou Dupont jeanlou.dupont at gmail.com
Fri Oct 5 11:19:06 UTC 2007


Yes it need PHP5.
sorry,
Jean-Lou Dupont.

Schmid, Wolfgang wrote:
> @Jim
> what you propose is a php based solution but I'm a beginner in php
> programming and I'm looking for a wiki based solution without
> programming own php code if possible.
>
> @Jean-Lou
> I took a look at  your Extension:ParserPhase2, but I don't understand
> how to use it to solve my problem.
> Could you send me a short example.
> There's another problem too, this extention works with MW 1.10, 1.11,
> but I'm using some older wikis with version 1.6 (php4) and 1.9.x.
> Does this extentsion need php5 and did you try to implement it under
> older wiki versions?
>
>   
>> -----Original Message-----
>> From: Jean-Lou Dupont [mailto:jeanlou.dupont at gmail.com] 
>> Sent: Thursday, October 04, 2007 7:11 PM
>> To: MediaWiki announcements and site admin list
>> Subject: Re: [Mediawiki-l] Conditional page content depending 
>> on user is logged in or not
>>
>> There is a way to deal 'parser cache' issue with this: 
>> [[Extension:ParserPhase2]]
>> jld.
>>
>> Jim Hu wrote:
>>     
>>> $wgUser->isLoggedIn()
>>>
>>> but you'll run into page caching issues.
>>>
>>> Jim
>>>
>>> On Oct 4, 2007, at 5:23 AM, Schmid, Wolfgang wrote:
>>>
>>>   
>>>       
>>>> Hello list,
>>>>
>>>> I want to show a different page content depending on the login  
>>>> state of
>>>> an user,
>>>> i.e. similar to extension ParserFunctions
>>>> {{#If <user is logged in> | content for logged in users | 
>>>>         
>> content for
>>     
>>>> unknown users }}
>>>>
>>>> Is there any possibility to determine from within a wiki 
>>>>         
>> page if an  
>>     
>>>> user
>>>> is logged on or not?
>>>>
>>>> If the user is logged in, I want to address this user with the
>>>> real/login name.
>>>>
>>>> I remember there's at least a solution for part 2 of my question.  
>>>> But I
>>>> can't find it.
>>>>
>>>> I'm using wikis with version 1.6.10, 1.9.x, 1.10.x.
>>>>
>>>> Thanks for your help
>>>>
>>>> Wolfgang
>>>>
>>>> _______________________________________________
>>>> MediaWiki-l mailing list
>>>> MediaWiki-l at lists.wikimedia.org
>>>> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>>>     
>>>>         
>>> =====================================
>>> Jim Hu
>>> Associate Professor
>>> Dept. of Biochemistry and Biophysics
>>> 2128 TAMU
>>> Texas A&M Univ.
>>> College Station, TX 77843-2128
>>> 979-862-4054
>>>
>>>
>>> _______________________________________________
>>> MediaWiki-l mailing list
>>> MediaWiki-l at lists.wikimedia.org
>>> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>>
>>>   
>>>       
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-l at lists.wikimedia.org
>> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
>>     
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
>   




More information about the MediaWiki-l mailing list