Geeklog Documentation

トップページ 管理画面

UserBox プラグイン

自動タグ(2013/03/01 update)

書式 説明
[userbox:count カテゴリidまたはカテゴリコード] データ件数
例1:[userbox:count]
例2:[userbox:count category_id:1]
例3:[userbox:count category_code:japan]
例4:[userbox:count category_code:japan|america] カテゴリコードがjapan またはamerica
例5:[userbox:count category_code:japan|groupA mode:and] カテゴリコードがjapan かつgroupA
[userbox:newlist RSSファイルほか例2参照] 新着ユーザ
例1:[userbox:newlist]
例2:[userbox:newlist rss_file:userbox.rss title_trim_length:50 intervalday:70 limitcnt:40 newmarkday:30 templatedir:aaa category_id:99 category_code:x]
[userbox:profile id] ユーザプロフィール
例1:[userbox:profile]
例2:[userbox:profile id:1 templatedir:aaa nohitmsg:yes]
[userbox:category カテゴリidまたはカテゴリコード ほか] カテゴリ別一覧
例1:[userbox:category]
例2:[userbox:category category_id:1 templatedir:aaa nohitmsg:yes perpage:10 page:1 order:id expired:no]
例3:[userbox:category category_code:japan ]
例4:[userbox:category category_code:japan|america ] カテゴリコードがjapan またはamerica
例5:[userbox:category category_code:japan|groupA mode:and] カテゴリコードがjapan かつgroupA
order に指定できるのは、 random date orderno code title description id と 表示制限されていない追加項目のテーマ変数 です

expired:no 公開終了日を過ぎたデータは表示しません。(デフォルト)
expired:yes 公開終了日を過ぎたデータも表示します。
[userbox:attributecount テーマ変数 値] 指定アトリビュートが指定値のデータの件数
例1:[userbox:attributecount]
例2:[userbox:attributecount templatesetvar:pref value:27]
[userbox:lastmodified テンプレートフォルダ 追加項目値]
例1:[userbox:lastmodified]
例2:[userbox:lastmodified category_id:1]
例3:[userbox:lastmodified category_code:japan]
[userbox:lastcreated テンプレートフォルダ 追加項目値]
例1:[userbox:lastcreated]
例2:[userbox:lastcreated category_id:1]
例3:[userbox:lastcreated category_code:japan]
[userbox:attribute テンプレートフォルダ 追加項目値 ほか例2参照] アトリビュート別一覧
指定アトリビュートが指定値のデータ一覧
例1:[userbox:attribute field_id:99 value:xx ]
例2:[userbox:attribute field_id:99 value:xx templatedir:x nohitmsg:yes perpage:99 page:99 order:id]
例3:[userbox:attribute field_code:pref value:27 templatedir:x nohitmsg:yes perpage:99 page:99 order:id]
[userbox:msg メッセージ]
例1:[userbox:msg ] すべてのユーザ用メッセージを表示
例2:[userbox:msg for:draftuser] ドラフトユーザ用メッセージを表示
例3:[userbox:msg for:alluser] すべてのユーザ用メッセージを表示
例4:[userbox:msg for:descriptionempty]説明未登録チェックをおこなう場合未登録のユーザ用メッセージを表示
メッセージの内容は、言語ファイルに記述しています。

ブロック用関数

関数名 説明
phpblock_shownewuserbox