Title: LiveJournal Shortcode
Author: dmonnier
Published: <strong>2013 年 4 月 5 日</strong>
Last modified: 2014 年 4 月 19 日

---

搜索插件

![](https://ps.w.org/livejournal-shortcode/assets/banner-772x250.jpg?rev=692309)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/livejournal-shortcode_cfd8e1.svg)

# LiveJournal Shortcode

 作者：[dmonnier](https://profiles.wordpress.org/dmonnier/)

[下载](https://downloads.wordpress.org/plugin/livejournal-shortcode.1.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/livejournal-shortcode/#description)
 * [评价](https://cn.wordpress.org/plugins/livejournal-shortcode/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/livejournal-shortcode/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/livejournal-shortcode/#developers)

 [支持](https://wordpress.org/support/plugin/livejournal-shortcode/)

## 描述

Links to LiveJournals have a very distinctive look: the icon followed by the journal
name. This shortcode follows the same format as LiveJournal’s own markup and provides
the same results, which you can easily customize with your own CSS styles.

## 屏幕截图

 * [[
 * An example result.

## 安装

 1. Upload `shortcode-lj` to your `/wp-content/plugins` directory.
 2. Activate the plugin through the “Plugins” menu in your WordPress admin.

To use the shortcode, anywhere you want a LJ link:

    ```
    [lj user="frank"]
    ```

or

    ```
    [lj user="frank" title="Frank the Goat"]
    ```

or

    ```
    [lj user="lj-maintenance" title="LiveJournal Maintenance" icon="community"]
    ```

The `user` parameter is required. It is the actual name of the journal and can be
found from the URL when you visit that journal’s page. For example, Frank the Goat’s
journal is at http://frank.livejournal.com and his username is “frank”. If you do
not specify the `user` parameter, the shortcode will result in a red error message
to let you know to fix it.

The `title` parameter is optional and controls the formatting of the visible link
text on your page. By default, the `user` parameter will be used for the link text
unless the `title` parameter is specified. For example, if you want the text to 
read “Frank the Goat’s Totally Awesome LiveJournal” instead of just “Frank”, put
that in the `title` parameter.

The `icon` parameter is optional and indicates what kind of LiveJournal this journal
is. Valid options are `user`, `community`, and `news`. Defaults to `user`.

## 常见问题

  Can I use this shortcode in excerpts, comments, and/or widgets?

YES! Simply add the following four lines to your functions.php:

    ```
    add_filter( 'widget_text', 'shortcode_unautop');
    add_filter( 'widget_text', 'do_shortcode', 11);
    add_filter( 'the_excerpt', 'do_shortcode', 11);
    add_filter( 'comment_text', 'do_shortcode', 11);
    ```

  How do I customize the link or icon used?

The included stylesheet `style.css` and default LiveJournal icons are easily edited
and/or replaced.

## 评价

此插件暂无评价。

## 贡献者及开发者

「LiveJournal Shortcode」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ dmonnier ](https://profiles.wordpress.org/dmonnier/)

[帮助将「LiveJournal Shortcode」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/livejournal-shortcode)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/livejournal-shortcode/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/livejournal-shortcode/)，或通过[RSS](https://plugins.trac.wordpress.org/log/livejournal-shortcode/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/livejournal-shortcode/)。

## 更新日志

#### 1.1

 * Added ability to choose icon type (user, community, news).
 * Removed solid white background behind links.

#### 1.0

 * Plug-in created.

## 额外信息

 *  版本 **1.1.1**
 *  最后更新：**12 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.5 或更高版本 **
 *  已测试的最高版本为 **3.9.40**
 *  语言
 * [English (US)](https://wordpress.org/plugins/livejournal-shortcode/)
 * 标签
 * [livejournal](https://cn.wordpress.org/plugins/tags/livejournal/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/livejournal-shortcode/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/livejournal-shortcode/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/livejournal-shortcode/reviews/)

## 贡献者

 *   [ dmonnier ](https://profiles.wordpress.org/dmonnier/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/livejournal-shortcode/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SGK5F3QQASDXS)