Download List

專案描述

XOOPSの統合パッケージを開発するプロジェクトです。

System Requirements

System requirement is not defined

發布 2008-01-11 23:49
hack_patch myalbum_popup_rss_piclens_010 (1 files 隱藏)

發布版本通知


This is hack to add 3 feature in MyAlbum Module

(1) output RSS
(2) popuo image
(3) support Piclens

Piclens is Firefox addon for slide show
http://www.piclens.com/


* setting *
setting for "RSS Auto Discovery", JavaScript files, div tag

1. set in program and myalbum template
this is for a slightly trying person or beginner.
the setting is unnecessary.
already set into the xoops_module_header variable in index.php and viewcat.php
and set in myalbum_header.html

2. set in theme
this is recommend for the person to understand.
the added feature are able to use in the page except myalbum module.
less modification into the existing files.

add the following lines under title tag in theme.html
-----
<link rel="alternate" type="application/rss+xml" title="RSS" href="<{$xoops_url}>/modules/myalbum/rss.php" />
<script type="text/javascript" src="<{$xoops_url}>/modules/myalbum/overlib.js"></script>
<script type="text/javascript" src="<{$xoops_url}>/modules/myalbum/overlib_image.js"></script>
<script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script>
-----

add the following lines under body tag in theme.html
-----
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
-----

in this case, modified index.php and viewcat.php are unnecessary.
also, please myalbum_header_rss.html to myalbum_header.html.


* description *
please read "Popup for MyAlbum Module" and "RSS for MyAlbum Module"


* enclosed files
modified files
- index.php
- viewcat.php
- templates/myalbum_header.html
- templates/myalbum_header_rss.html
- templates/myalbum_photo_in_list.html
- templates/myalbum_viewcat_table.html

added files
- overlib.js
- overlib_image.js
- rss.php
- templates/rss_latest.html
- templates/rss_random.html
- imagess/rss20.png

MyAlbum モジュールに 3つの機能を付加するハックです。

(1) RSS を出力する
(2) 写真をポップアップする
(3) Piclens に対応する

Piclens は スライドショーを表示する Firefox のアドオンです。
http://www.piclens.com/


● 設定
RSS Auto Discovery、JavaScript ファイル、div タグの設定

1. プログラムとmyalbum のテンプレートで設定する
ちょっと試してみる人や初心者向けです。
特に設定は不要です。
index.php と viewcat.php にて、テンプレート変数 xoops_module_header に設定しています。
div タグを myalbum_header.html に設定しています。

2. テーマで設定する
分かる人には、こちらをお勧めします。
MyAlbum モジュール以外のページでも付加された機能が使えます。
既存ファイルへの変更がより少なくなります。

使用している テーマ の theme.html の title タグの下に下記を追加する
-----
<link rel="alternate" type="application/rss+xml" title="RSS" href="<{$xoops_url}>/modules/myalbum/rss.php" />
<script type="text/javascript" src="<{$xoops_url}>/modules/myalbum/overlib.js"></script>
<script type="text/javascript" src="<{$xoops_url}>/modules/myalbum/overlib_image.js"></script>
<script type="text/javascript" src="http://lite.piclens.com/current/piclens.js"></script>
-----

使用している テーマ の theme.html の body タグの下に下記を追加する
-----
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
-----

この場合は、変更後の index.php と viewcat.php は不要です。
また、myalbum_header_rss.html を myalbum_header.html にリネームしてください。


● 説明
「Popup for MyAlbum Module」と「RSS for MyAlbum Module」をご覧ください。


● 同封したファイル
変更したファイル
- index.php
- viewcat.php
- templates/myalbum_header.html
- templates/myalbum_header_rss.html
- templates/myalbum_photo_in_list.html
- templates/myalbum_viewcat_table.html

新設したファイル
- overlib.js
- overlib_image.js
- rss.php
- templates/rss_latest.html
- templates/rss_random.html
- imagess/rss20.png

更動紀錄

沒有更動紀錄