Extension:Livejournal User

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
Livejournal User
Release status: stable
Implementation Tag
Description Adds <lj user=""/> and <lj community=""/> tags to document.
Author(s) Jehytalk
Latest version 0.2.1 (2013-05-27)
MediaWiki 1.6.x, 1.8.x, 1.9.x, 1.13.x, ..., 1.20.x
Database changes No
License GPL
Download
README
Example Profile with livejournal links in my wiki
Tags
<lj user=""/>
<lj community=""/>
Hooks used
ParserFirstCallInit
Translate the Livejournal User extension if it is available at translatewiki.net
Check usage and version matrix.

The Livejournal User extension simply adds <lj user=""/> and <lj community=""/> tags to your wiki.

There are two variants of working of this Extension: the one which completely repeats original livejournal link, and the one which works more according to wiki engine.

  • First variant

  • It replaces quite like with livejournal, and gets little icons from livejournal server. But usually we don't want to load any images from remote server, right?
  • Second variant

  • Uses icons which YOU upload to wiki. Unfortunately, it means that icon can't link to user profile (stupid wiki engine doesn't allow images with links. Seems like it will be implemented in mediawiki 1.14... Possibly).

To switch between them, you just need to set variable

$Livejournal_User_Remote_Images

to 1 or to 0.

Installation[edit]

  • Download and place the file(s) in a directory called Livejournal_User in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/Livejournal_User/Livejournal_User.php";
    $Livejournal_User_Remote_Images=1; // If you choose remote picture loading
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

See also[edit]