Extension:Livejournal User

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
Livejournal User

Release status:Extension status stable

ImplementationTemplate:Extension#type Tag
DescriptionTemplate:Extension#description Adds <lj user=""/> and <lj community=""/> tags to document.
Author(s)Template:Extension#username Jehytalk
Latest versionTemplate:Extension#version 0.2.1 (2013-05-27)
MediaWikiTemplate:Extension#mediawiki 1.6.x, 1.8.x, 1.9.x, 1.13.x, ..., 1.20.x
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GPL
Download
README
ExampleTemplate:Extension#example Profile with livejournal links in my wiki
TagsTemplate:Extension#tags
<lj user=""/>
<lj community=""/>
Hooks usedTemplate:Extension#hook
ParserFirstCallInitManual:Hooks/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
    
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

See also[edit]