Page 1 of 1

Myspace profile button Question

PostPosted: Sun Jun 04, 2006 8:04 am
Author: honie
I hope Im putting this in the right place.

I was wondering if its possible to use the myspace profile button mod with integramod?
It can be found here - http://www.phpbb.com/phpBB/viewtopic.ph ... ht=myspace


Just wasn't sure because of some of the profile & viewtopic editing

Thanks !

PostPosted: Sun Jun 04, 2006 8:48 am
Author: ayasha
:grins big: i vote for you guys to get this one done <img>

Re: Myspace profile button Question

PostPosted: Sun Jun 04, 2006 1:39 pm
Author: Threat009
sounds nice. personally, I don't use it, but I have visitors that discuss myspace and such on my boards <img>

Re: Myspace profile button Question

PostPosted: Tue Oct 10, 2006 12:03 pm
Author: Dragonsys
Yes, I have done this on my Website.
I can't download the file anymore, but I can come up with the MOD for IM without it. If anyone still wants it.

PostPosted: Tue Oct 10, 2006 8:06 pm
Author: ayasha
yes, i would like it <img>

Re: Myspace profile button Question

PostPosted: Wed Oct 11, 2006 6:56 am
Author: Dragonsys
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]

PostPosted: Wed Oct 11, 2006 7:51 am
Author: ayasha
thanks Dragonsys, will get this edit done after the move <img>