書式 | 説明 |
---|---|
[userbox:count ] category_id: category_code: mode: permission:ignore アクセス権のないデータもカウントします。省略時はカウントしません。 numberformat:yes 千単位に区切ります(カンマ編集)。省略時は区切りません。 |
データ件数 例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 例6:[userbox:count permission:ignore] |
[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 uid: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 と 表示制限されていない追加項目のテーマ変数 です perpage:(Number) 1ページあたりの表示件数。0のときは改ページなし(デフォルト:0) expired:no 公開終了日を過ぎたデータは表示しません。(デフォルト) expired:yes 公開終了日を過ぎたデータも表示します。 |
[userbox:attributedatacount ] templatesetvar: value: type_id: permission:ignore アクセス権のないデータもカウントします。省略時はカウントしません。 numberformat:yes 千単位に区切ります(カンマ編集)。省略時は区切りません。 |
指定アトリビュートが指定値のデータの件数 例1:[userbox:attributedatacount] 例2:[userbox:attributedatacount templatesetvar:pref value:27] 例3:[userbox:attributedatacount templatesetvar:pref value:27 type_id:0] type_id:0 タイプなし 省略時すべてのタイプ |
[userbox:lastmodified ] category_id: category_code: |
最後(直近)に修正されたデータ 例1:[userbox:lastmodified] 例2:[userbox:lastmodified category_id:1] 例3:[userbox:lastmodified category_code:japan] |
[userbox:lastcreated category_id: category_code: |
最後(直近)に作成されたデータ 例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] perpage:(Number) 1ページあたりの表示件数。0のときは改ページなし(デフォルト:0) |
[userbox:msg メッセージ] |
例1:[userbox:msg ] すべてのユーザ用メッセージを表示 例2:[userbox:msg for:draftuser] ドラフトユーザ用メッセージを表示 例3:[userbox:msg for:alluser] すべてのユーザ用メッセージを表示 例4:[userbox:msg for:descriptionempty]説明未登録チェックをおこなう場合未登録のユーザ用メッセージを表示 メッセージの内容は、言語ファイルに記述しています。 |
[userbox:categorycount カテゴリグループid または カテゴリグループコード]
permission:ignore アクセス権のないデータもカウントします。省略時はカウントしません。 numberformat:yes 千単位に区切ります(カンマ編集)。省略時は区切りません。 |
指定カテゴリグループのカテゴリ件数 例1:[userbox:categorycount ] 親グループなしカテゴリの件数 例2:[userbox:categorycount group_id:3] 例3:[userbox:categorycount group_code:pref] アクセス権のあるデータが登録されていないカテゴリの件数は含みません |
[databox:attributevalue アトリビュートテーマ変数またはアトリビュートid データidまたはcode option] | 指定アトリビュートの表示用値等を返す 例1:[userbox:attributevalue field_code:pref code:Admin ] 例2:[userbox:attributevalue field_code:pref code:Admin option:value2] 例3:[userbox:attributevalue field_id:1 id:2 option:value2] optionなしは、{登録したテーマ変数名} と同等の内容です。 option:name 名称 option:description 説明 option:yes {登録したテーマ変数名_yes}と同じ option:value2 {登録したテーマ変数名_mst_value2}と同じ option:disp {登録したテーマ変数名_mst_disp}と同じ option:no {登録したテーマ変数名_mst_no} と同じ option:datatitle 指定アトリビュートの値をCODEとして引当てたDataBoxデータのタイトル option:datadescription 指定アトリビュートの値をCODEとして引当てたDataBoxデータの説明 各アトリビュートのテーマ変数参照 |
[userbox:math ] method: templatesetvar: type_id: category_id: または category_code: mode: roundprecision: numberformat:yes 千単位に区切ります(カンマ編集)。省略時は区切りません。数値の場合のみ有効 permission:ignore アクセス権のないデータもカウントします。省略時はカウントしません。 |
指定アトリビュートのMAX MIN SUM COUNT AVERAGE 例1:[userbox:math templatesetvar:number] 例2:[userbox:math method:min templatesetvar:number ] 例3:[userbox:math method:min templatesetvar:number type_id:0] 例4:[userbox:math method:min templatesetvar:number type_id:0 category_code:AAA|BBB|CCC] カテゴリコードがAAA または BBB または CCC 例5:[userbox:math templatesetvar:number type_id:0 category_code:AAA|BBB|CCC mode:and] カテゴリコードがAAA かつ BBB かつCCC method:count max min sum average avg 省略時count type_id:0 タイプなし 省略時すべてのタイプ roundprecision 丸める桁数 数値の場合のみ有効 0の場合 3.4 → 3 0の場合 3.5 → 4 0の場合 3.6 → 4 2の場合 1.95583 → 1.96 2の場合 5.045 → 5.05 2の場合 5.055 → 5.06 -3の場合 1241757 → 1242000 丸めの結果はPHPのバージョンに依存します 指定アトリビュートのタイプが数値または通貨、またはnumberformat:yesが指定された場合は、数値比較になります |
関数名 | 説明 |
---|---|
phpblock_shownewuserbox |