ok, here it is, quick and dirty, I'll change this into a proper MOD doc later.
- Code: Select all
SQL].buddy_visible', 'hidden' => true, ), AFTER ADD: 'user_myspace' => array( 'lang_key' => 'Myspace', 'class' => 'generic', 'type' => 'VARCHAR', 'auth' => USER, 'visibility' => true, ), OPEN: profilcp/def/def_userfuncs_custom.php FIND: ?> BEFORE [url=ADD://-----------------------------------////]ADD://-----------------------------------////[/url] user_myspace output function////-----------------------------------function pcp_output_myspace($field_name, $view_userdata, $map_name=''){ global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata; global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields; $txt = ''; $img = ''; $res = ''; if ( !empty($view_userdata[$field_name]) && ($view_userdata['user_id'] != ANONYMOUS) ) { if (strtolower(substr($view_userdata[$field_name],0,7)) != 'http://'){ $view_userdata[$field_name] = 'http://'.$view_userdata[$field_name]; } if ( substr($map_name, 0, 4) == 'PCP.' ) { $link = $view_userdata[$field_name]; $title = $lang['Myspace']; } else { $link = $lang['Myspace']; $title = $view_userdata[$field_name]; } $txt = '<a>' . $link . '</a>'; $img = '<a><img></a>'; // result $res = pcp_output_format($field_name, $txt, $img, $map_name); } return $res;} OPEN: profilcp/def/def_usermaps.php FIND: 'user_gallery' => array( 'leg' => true, 'img' => true, ), AFTER ADD: 'user_myspace' => array( 'dsp_func' => 'pcp_output_myspace', 'leg' => true, 'img' => true, ), FIND: 'fields' => array( 'user_website' => array( ), AFTER ADD: 'user_myspace' => array( ), FIND: 'user_gallery' => array( 'img' => true, 'style' => '<td><span>%s </span></td>', ), AFTER ADD: 'user_myspace' => array( 'dsp_func' => 'pcp_output_myspace', 'img' => true, 'style' => '<td><span>%s </span></td>', ), FIND: (Yes, do this twice) 'user_gallery' => array( 'img' => true, 'style' => '<td><span>%s </span></td>', ), AFTER ADD: 'user_myspace' => array( 'dsp_func' => 'pcp_output_myspace', 'img' => true, 'style' => '<td><span>%s </span></td>', ), OPEN: templates/fisubice/fisubice.cfg FIND:$images['icon_msnm'] = "$current_template_images/{LANG}/icon_msnm.gif" width="$topic_iw" height="$topic_ih" class="imgtopic"; AFTER ADD:$images['icon_myspace'] = "$current_template_images/{LANG}/icon_myspace.gif";
You'll need this image as well:
[flash=,:1lqwj01d]http://beta.dragonsys.org/im_test/templates/fisubice/images/lang_english/icon_myspace.gif[/flash:1lqwj01d]