Platonides | 2 Sep 2009 16:44
Picon

Re: Conflict on submit buttons

Kathleen Borja wrote:
> I am still working on the Title::newFromRow($row) method to fetch the article
> titles. Anyway, how can i know the username logged in mediawiki? How can i use
> it in the php code? I would like to insert that value to a table field in my
> thesaurus.
> 
> Thanks.^_^ 

global $wgUser is an User object which contain the current user.
Kathleen Borja | 2 Sep 2009 21:07
Picon
Favicon

Re: Conflict on submit buttons

Platonides <platonides <at> gmail.com> writes:

> 
> global $wgUser is an User object which contain the current user.
> 

Thanks. I used the User object. So, I have something like this:
        global $wgUser;
        $user = $wgUser->getName();
	$wgOut->addHTML($user);

I have another question but it's about special pages. Can i change the layout of
a particular special page? I made a special page to be pop up window. I wanted
to make a new layout for it. how can i make it? is it possible? 

Gmane