XPressME Integration Kit

Trac

Changeset 61 for trunk/xoops_version.php


Ignore:
Timestamp:
Jan 1, 2009, 12:08:45 AM (15 years ago)
Author:
toemon
Message:

XOOPSイベント通知の実装 #6
但し現状ではメインコンテンツにイベント通知選択は表示されたない。(ブロックとして表示)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xoops_version.php

    r54 r61  
    7575$modversion['search']['func'] = $mydirname.'_global_search' ; 
    7676//Admin things 
    77 $modversion['hasAdmin'] = 0; 
    78 //$modversion['adminindex'] = "admin/index.php"; 
    79 //$modversion['adminmenu'] = "admin/menu.php"; 
     77$modversion['hasAdmin'] = 1; 
     78$modversion['adminindex'] = "admin/index.php"; 
     79$modversion['adminmenu'] = "admin/menu.php"; 
    8080 
    8181$modversion['hasMain'] = 1; 
     
    8888 
    8989// Use smarty 
    90 //$modversion["use_smarty"] = 1; 
     90$modversion["use_smarty"] = 1; 
    9191 
    9292/** 
     
    9696$modversion['templates'] = array() ; 
    9797 
    98 $modversion['hasconfig'] = 0; 
     98$modversion['hasconfig'] = 1; 
    9999 
    100100//BLOCKS 
     
    121121        'func_num'              => 2, 
    122122); 
     123 
     124// Notification 
     125$modversion['hasNotification'] = 1; 
     126$modversion['notification'] = array( 
     127        'lookup_file' => 'include/notification.inc.php' , 
     128        'lookup_func' => "{$mydirname}_notify_info" , 
     129        'category' => array( 
     130                array( 
     131                        'name' => 'global' , 
     132                        'title' => constant('_MI_XPRESS_NOTCAT_GLOBAL') , 
     133                        'description' => constant('_MI_XPRESS_NOTCAT_GLOBALDSC') , 
     134                        'subscribe_from' => 'index.php' , 
     135                ) , 
     136                array( 
     137                        'name' => 'category' , 
     138                        'title' => constant('_MI_XPRESS_NOTCAT_CAT') , 
     139                        'description' => constant('_MI_XPRESS_NOTCAT_CATDSC') , 
     140                        'subscribe_from' => 'index.php' , 
     141                        'item_name' => 'cat' , 
     142                        'allow_bookmark' => 1 , 
     143                ) , 
     144                array( 
     145                        'name' => 'author' , 
     146                        'title' => constant('_MI_XPRESS_NOTCAT_AUTHOR') , 
     147                        'description' => constant('_MI_XPRESS_NOTCAT_AUTHORDSC') , 
     148                        'subscribe_from' => 'index.php' , 
     149                        'item_name' => 'author' , 
     150                        'allow_bookmark' => 1 , 
     151                ) , 
     152                array( 
     153                        'name' => 'post' , 
     154                        'title' => constant('_MI_XPRESS_NOTCAT_POST') , 
     155                        'description' => constant('_MI_XPRESS_NOTCAT_POSTDSC') , 
     156                        'subscribe_from' => 'index.php' , 
     157                        'item_name' => 'p' , 
     158                        'allow_bookmark' => 1 , 
     159                ) , 
     160        ) , 
     161        'event' => array( 
     162                array( 
     163                        'name' => 'waiting' , 
     164                        'category' => 'global' , 
     165                        'title' => constant('_MI_XPRESS_NOTIFY_GLOBAL_WAITING') , 
     166                        'caption' => constant('_MI_XPRESS_NOTIFY_GLOBAL_WAITINGCAP') , 
     167                        'description' => constant('_MI_XPRESS_NOTIFY_GLOBAL_WAITINGCAP') , 
     168                        'mail_template' => 'global_waiting' , 
     169                        'mail_subject' => constant('_MI_XPRESS_NOTIFY_GLOBAL_WAITINGSBJ') , 
     170                        'admin_only' => 1 , 
     171                ) , 
     172                array( 
     173                        'name' => 'newpost' , 
     174                        'category' => 'global' , 
     175                        'title' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWPOST') , 
     176                        'caption' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWPOSTCAP') , 
     177                        'description' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWPOSTCAP') , 
     178                        'mail_template' => 'global_newpost' , 
     179                        'mail_subject' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWPOSTSBJ') , 
     180                ) , 
     181                array( 
     182                        'name' => 'comment' , 
     183                        'category' => 'global' , 
     184                        'title' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWCOMMENT') , 
     185                        'caption' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWCOMMENTCAP') , 
     186                        'description' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWCOMMENTCAP') , 
     187                        'mail_template' => 'global_newcomment' , 
     188                        'mail_subject' => constant('_MI_XPRESS_NOTIFY_GLOBAL_NEWCOMMENTSBJ') , 
     189                ) , 
     190                 
     191                array( 
     192                        'name' => 'newpost' , 
     193                        'category' => 'category' , 
     194                        'title' => constant('_MI_XPRESS_NOTIFY_CAT_NEWPOST') , 
     195                        'caption' => constant('_MI_XPRESS_NOTIFY_CAT_NEWPOSTCAP') , 
     196                        'description' => constant('_MI_XPRESS_NOTIFY_CAT_NEWPOSTCAP') , 
     197                        'mail_template' => 'category_newpost' , 
     198                        'mail_subject' => constant('_MI_XPRESS_NOTIFY_CAT_NEWPOSTSBJ') , 
     199                ) , 
     200                array( 
     201                        'name' => 'comment' , 
     202                        'category' => 'category' , 
     203                        'title' => constant('_MI_XPRESS_NOTIFY_CAT_NEWCOMMENT') , 
     204                        'caption' => constant('_MI_XPRESS_NOTIFY_CAT_NEWCOMMENTCAP') , 
     205                        'description' => constant('_MI_XPRESS_NOTIFY_CAT_NEWCOMMENTCAP') , 
     206                        'mail_template' => 'category_newcomment' , 
     207                        'mail_subject' => constant('_MI_XPRESS_NOTIFY_CAT_NEWCOMMENTSBJ') , 
     208                ) , 
     209 
     210                array( 
     211                        'name' => 'newpost' , 
     212                        'category' => 'author' , 
     213                        'title' => constant('_MI_XPRESS_NOTIFY_AUT_NEWPOST') , 
     214                        'caption' => constant('_MI_XPRESS_NOTIFY_AUT_NEWPOSTCAP') , 
     215                        'description' => constant('_MI_XPRESS_NOTIFY_AUT_NEWPOSTCAP') , 
     216                        'mail_template' => 'author_newpost' , 
     217                        'mail_subject' => constant('_MI_XPRESS_NOTIFY_AUT_NEWPOSTSBJ') , 
     218                ) , 
     219                array( 
     220                        'name' => 'comment' , 
     221                        'category' => 'author' , 
     222                        'title' => constant('_MI_XPRESS_NOTIFY_AUT_NEWCOMMENT') , 
     223                        'caption' => constant('_MI_XPRESS_NOTIFY_AUT_NEWCOMMENTCAP') , 
     224                        'description' => constant('_MI_XPRESS_NOTIFY_AUT_NEWCOMMENTCAP') , 
     225                        'mail_template' => 'author_newcomment' , 
     226                        'mail_subject' => constant('_MI_XPRESS_NOTIFY_AUT_NEWCOMMENTSBJ') , 
     227                ) , 
     228 
     229                array( 
     230                        'name' => 'comment' , 
     231                        'category' => 'post' , 
     232                        'title' => constant('_MI_XPRESS_NOTIFY_POST_NEWCOMMENT') , 
     233                        'caption' => constant('_MI_XPRESS_NOTIFY_POST_NEWCOMMENTCAP') , 
     234                        'description' => constant('_MI_XPRESS_NOTIFY_POST_NEWCOMMENTCAP') , 
     235                        'mail_template' => 'post_newcomment' , 
     236                        'mail_subject' => constant('_MI_XPRESS_NOTIFY_POST_NEWCOMMENTSBJ') , 
     237                ) , 
     238        ) , 
     239) ; 
     240 
     241 
    123242?> 
Note: See TracChangeset for help on using the changeset viewer.