PluginLinks14

提供: GeeklogJpWiki

[5]システムの拡張 > プラグイン > 公式プラグイン > リンク(Links)

目次

リンク(Links)

Introduction

リンク・プラグインは、Geeklogの人々によって作られました。このプラグインで、サイトのリンクディレクトリーを管理できます。リンク・プラグインは、デフォルトで取り付けられています、もし不要であれば、無効にするかまたはアンインストールします。

target属性を追加するハック

公開領域/links/index.php 360行目あたり:

修正前:

    $attr = array(
        'title' => stripslashes ($A['url']),
        'class' => $class,);
    $html = COM_createLink($content, $url, $attr);

修正後:

    $attr = array(
        'title'  => stripslashes ($A['url']),
        'target' => '_blank',
        'class'  => $class,);
    $html = COM_createLink($content, $url, $attr);

Renaming The Link To Links

リンク・プラグインにより、 あなたのメンバーのウェブリソースのリンクを追加、リネームできます: The Links plugin adds a Web Resources link to your menubar. To rename the link:

  1. Open plugins/links/language/english.php in a plain-text editor.
  2. Find 114 => 'Web Resources' and replace Web Resources with the text you want (e.g. Links). Ensure that you keep the quotes and all other characters intact.
  3. Save your changes.
  4. Upload the file onto your webserver, overwritting the existing file.

Managing Links

Accessing The Links Plugin

  1. Log into your website through your web browser as an administrator.
  2. Click the Links link in the Admins Only block.

Creating A New Link

  1. Log into your website through your web browser as an administrator.
  2. Click the Links link in the Admins Only block.
  3. Click the Create New link.
  4. Complete the fields. You may leave the Link ID and Link Hits fields as the defaults, although you may want to change the Link ID to something readable.
  5. Change the permissions if desired.
  6. Click the Save button.

Editing A Link

  1. Log into your website through your web browser as an administrator.
  2. Click the Links link in the Admins Only block.
  3. Click the pencil icon next to the link you want to edit.
  4. Make your changes and click the Save button.

Deleting A Link

  1. Log into your website through your web browser as an administrator.
  2. Click the Links link in the Admins Only block.
  3. Click the pencil icon next to the link you want to delete.
  4. Click the Delete button.
個人用ツール