modules/profiles/profiles_init.php:
modules/profiles/templates/profile_extend.tpl:
実装が不十分でuser.php,profile.phpの表示が崩れる不具合を修正
@@ -5,17 +5,19 @@ | ||
5 | 5 | // tell pligg what pages this modules should be included in |
6 | 6 | // pages are <script name> minus .php |
7 | 7 | // index.php becomes 'index' and upcoming.php becomes 'upcoming' |
8 | - $include_in_pages = array('user', 'profile'); | |
8 | + $include_in_pages = array('user'); | |
9 | 9 | $do_not_include_in_pages = array(); |
10 | 10 | |
11 | 11 | if( do_we_load_module() ) { |
12 | - // execute the function that retreives extra profile data | |
13 | - module_add_action('index_top', 'profiles_retrieve', ''); | |
14 | - | |
15 | 12 | module_add_action_tpl('tpl_pligg_profile_info_middle', profiles_tpl_path . 'profile_extend.tpl'); |
16 | - include_once(mnmmodules . 'profiles/profiles_main.php'); | |
13 | + //include_once(mnmmodules . 'profiles/profiles_main.php'); | |
14 | + } | |
17 | 15 | |
18 | - include_once(mnmmodules . 'profiles/profiles_main.php'); | |
16 | + $include_in_pages = array('profile'); | |
17 | + if( do_we_load_module() ) { | |
18 | + // execute the function that retreives extra profile data | |
19 | + //module_add_action('index_top', 'profiles_retrieve', ''); | |
20 | + //include_once(mnmmodules . 'profiles/profiles_main.php'); | |
19 | 21 | } |
20 | 22 | } |
21 | 23 | ?> |
\ No newline at end of file |