Gallery 2 for plog plugin

四月 15th, 2005

本來要寫gallery 2 for plog 的 plugin,這幾天一直沒時間弄,偏偏某位J老大一直催,我只好先寫一個暴力的方法。

  1. 進入模版設定(http://YourBlogName/admin.php?op=editSiteSettings&show=interfaces), 允許allow_php_code_in_templates 。
  2. 啟動 gallery2 的 image block module.
  3. open the template file that you want to modify. ex: "panel.template"
  4. as blow. 參考 image block 裡的參數自己設定。

範例:

{php}@readfile('http://xxxx/main.php?g2_view=imageblock:External&g2_blocks=randomImage&g2_show=title'); {/php}

先這樣,有時間再修改漂亮一點。

version 0.1



Trackback URI | Comments RSS

Leave a Reply