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:
- Open plugins/links/language/english.php in a plain-text editor.
- 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.
- Save your changes.
- Upload the file onto your webserver, overwritting the existing file.
Managing Links
Accessing The Links Plugin
- Log into your website through your web browser as an administrator.
- Click the Links link in the Admins Only block.
Creating A New Link
- Log into your website through your web browser as an administrator.
- Click the Links link in the Admins Only block.
- Click the Create New link.
- 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.
- Change the permissions if desired.
- Click the Save button.
Editing A Link
- Log into your website through your web browser as an administrator.
- Click the Links link in the Admins Only block.
- Click the pencil icon next to the link you want to edit.
- Make your changes and click the Save button.
Deleting A Link
- Log into your website through your web browser as an administrator.
- Click the Links link in the Admins Only block.
- Click the pencil icon next to the link you want to delete.
- Click the Delete button.