MOD: Skype Link for People using Integramod 1.3.2

Mods etc.

Moderator: Integra Moderator

MOD: Skype Link for People using Integramod 1.3.2

PostAuthor: SLY LS1 » Sat Jun 24, 2006 7:34 am

Did anyone ever do the Skype mod for Integramod 132 ?
Last edited by SLY LS1 on Sun Jun 25, 2006 7:23 am, edited 1 time in total.

SLY LS1
Members
Members
 
Posts: 70
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 11:49 pm
Cash on hand: 0.00

PostAuthor: tmotley » Sat Jun 24, 2006 7:49 am

Is this different than the Skype that's already in IM?

Profile, Profile tab, Public Information, Messengers

I don't use Skype so I don't know...
Last edited by tmotley on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 2:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Adrian Rea » Sat Jun 24, 2006 11:27 am

Skype came in in 140, Sly is using 132d. I am not sure of all the coding.
Last edited by Adrian Rea on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 11:59 pm
Cash on hand: 0.00

Re: Mod: Skype Link for People using Integramod 1.3.2

PostAuthor: SLY LS1 » Sun Jun 25, 2006 7:21 am

Ok this is only for people running IM 132 and b4 as IM 140 already has it installed, It will add the Skype Messenger link in your members profiles and on viewtopic.

Code: Select all
############################################################## ## MOD Title]http://www.cybernord.com[/url] ## MOD PCP Author:   Ptirhiik < [url=http://rpgnet.clanmckeen.com]http://rpgnet.clanmckeen.com[/url] ## MOD Skype Author:   reddog (n/a) [url=http://www.reddevboard.com/]http://www.reddevboard.com/[/url] ## MOD Description:   This add-on adds the profile Skype. Require the ##         installation of the mod PCP by Ptirhiik ## MOD Version:      1.0.1 ## MOD PCP Version:   2.0.0 ## MOD Compatibility:   2.0.11 ## ## Installation Level:   Easy ## Installation Time:   10 Minutes (1mn by EasyMOD of Nuttzy) ## Files To Edit   5 ##   language/lang_english/lang_extend_pcp_addons.php ##   profilcp/def/def_userfields.php ##   profilcp/def/def_userfuncs_std.php ##   profilcp/def/def_usermaps.php ##   templates/subSilver/subSilver.cfg ## Included Files:   1 ##   root/templates/subSilver/images/lang_english/icon_skype.gif ############################################################## ## For Security Purposes, Please Check: [url=http://www.phpbb.com/mods/]http://www.phpbb.com/mods/[/url] for the ## latest version of this MOD. Downloading this MOD from other sites could cause malicious code ## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered ## in our MOD-Database, located at: [url=http://www.phpbb.com/mods/]http://www.phpbb.com/mods/[/url] ############################################################## ## Author Notes: thx to CyberNord for this add-on ;) ## ############################################################## ## MOD History: ## ## 2004-01-03 - Version 1.0.1 ##   - enhanced EasyMOD v0.1.13 compliant (reddog) ##   - error in def_usermaps (reddog) ##   - mailto modified by callto in user_skype output function (reddog) ##   - many modifications (reddog) ## 2004-12-31 - Version 1.0.0 ##      - First Release (CyberNord) ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ SQL ]------------------------------------------------- # ALTER TABLE `phpbb_users` ADD `user_skype` VARCHAR( 255 ) AFTER `user_msnm` ;  # #-----[ COPY ]----------------------------------------------# copy root/templates/subSilver/images/lang_english/icon_skype.gif to templates/subSilver/images/lang_english/icon_skype.gif  ##-----[ OPEN ]-----------------------------------------------#  language/lang_english/lang_extend_pcp_addons.php  # #-----[ FIND ]------------------------------------------------ #  ?>  # #-----[ BEFORE, ADD ]-------------------------------------#  //-- mod : add-on skype for pcp --------------------------$lang['SKYPE'] = 'Skype Messenger'; //-- fin mod : add-on skype for pcp ----------------------  # #-----[ OPEN ]------------------------------------------------ #  profilcp/def/def_userfields.php  # #-----[ FIND ]-------------------------------------------------#      'user_msnm' => array(       'lang_key'     => 'MSNM',       'class'        => 'messangers',       'type'         => 'VARCHAR',       'dsp_func'     => 'pcp_output_msnm',    ),  # #-----[ AFTER, ADD ]------------------------------------------ #  //-- mod : add-on skype for pcp -----------------------------    'user_skype' => array(       'lang_key'     => 'SKYPE',       'class'        => 'messangers',       'type'         => 'VARCHAR',       'dsp_func'     => 'pcp_output_skype',       'leg'          => true,       'img'          => true,       'auth'         => USER,    ), //-- fin mod : add-on skype for pcp -------------------------  # #-----[ OPEN ]-------------------------------------------------- #  profilcp/def/def_userfuncs_std.php  # #-----[ FIND ]--------------------------------------------------#  //---------------------------------------------------------------- // // user_timezone output function // //----------------------------------------------------------------  # #-----[ BEFORE, ADD ]----------------------------------------#  //-- mod : add-on skype for pcp ----------------------------//----------------------------------- // // user_skype output function // //----------------------------------- function pcp_output_skype($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) )    {       $temp_url = (substr($map_name, 0, 6) == 'PHPBB.') ? append_sid("./profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . '=' . $view_userdata['user_id']) : 'callto://' . $view_userdata[$field_name];       $txt = '<a>' . $lang['SKYPE'] . '</a>';       $img = '<a><img></a>';         // result       $res = pcp_output_format($field_name, $txt, $img, $map_name);    }    return $res; } //-- fin mod : add-on skype for pcp -----------------------  # #-----[ OPEN ]------------------------------------------------ #  profilcp/def/def_usermaps.php  # #-----[ FIND ]------------------------------------------------- #            'user_msnm' => array(             'leg'          => true,             'img'          => true,          ),  # #-----[ AFTER, ADD ]------------------------------------------ #  //-- mod : add-on skype for pcp -----------------------------          'user_skype' => array(             'leg'          => true,             'img'          => true,          ), //-- fin mod : add-on skype for pcp -------------------------  # #-----[ FIND ]-------------------------------------------------- #          'user_msnm' => array(             'input_id'     => 'MSNM',             'user_only'    => true,          ),  # #-----[ AFTER, ADD ]------------------------------------------ #  //-- mod : add-on skype for pcp -----------------------------          'user_skype' => array(             'input_id'     => 'SKYPE',             'user_only'    => true,          ), //-- fin mod : add-on skype for pcp -------------------------           # #-----[ FIND ]-------------------------------------------------- #            'user_msnm' => array(             'img'          => true,             'ind'          => '8',          ),  # #-----[ AFTER, ADD ]------------------------------------------ #  //-- mod : add-on skype for pcp -----------------------------          'user_skype' => array(             'img'          => true,             'ind'          => '30',          ), //-- fin mod : add-on skype for pcp --------------------------  # #-----[ FIND ]------------------------------------------------ # # 1st Time            'user_msnm' => array(             'img'          => true,             'style'        => '<td><span>%s </span></td>',          ),  # #-----[ AFTER, ADD ]------------------------------------------ #  //-- mod : add-on skype for pcp -----------------------------          'user_skype' => array(             'img'          => true,             'style'        => '<td><span>%s </span></td>',          ), //-- fin mod : add-on skype for pcp -------------------------  # #-----[ FIND ]-------------------------------------------------- # # 2nd Time            'user_msnm' => array(             'img'          => true,             'style'        => '<td><span>%s </span></td>',          ),  # #-----[ AFTER, ADD ]------------------------------------------ #  //-- mod : add-on skype for pcp -----------------------------          'user_skype' => array(             'img'          => true,             'style'        => '<td><span>%s </span></td>',          ), //-- fin mod : add-on skype for pcp -------------------------  # #-----[ OPEN ]-------------------------------------------------- #  templates/subSilver/subSilver.cfg  # #-----[ FIND ]-------------------------------------------------- #  $images['icon_msnm'] = "$current_template_images/{LANG}/icon_msnm.gif";  # #-----[ AFTER, ADD ]------------------------------------------ #  //-- mod : add-on skype for pcp -----------------------------  $images['icon_skype'] = "$current_template_images/{LANG}/icon_skype.gif"; //-- fin mod : add-on skype for pcp --------------------------  # #-----[ SAVE/CLOSE ALL FILES ]------------------------------ # # EoM


Here is the SQL update file, copy the code into your text editor and save as db_update.php to your root then upload and run it in your browser.
Note: dont forget to delete it from your remote server after running.

Code: Select all
<?php/***************************************************************************  *                               db_update.php  *                            -------------------  *  *   copyright            ]http://sourceforge.net/projects/dbgenerator[/url]  *   Website              : [url=http://freakingbooty.no-ip.com/]http://freakingbooty.no-ip.com/[/url] & [url=http://www.rapiddr3am.net]http://www.rapiddr3am.net[/url]  *  ***************************************************************************/  /***************************************************************************  *  *   This program is free software; you can redistribute it and/or modify  *   it under the terms of the GNU General Public License as published by  *   the Free Software Foundation; either version 2 of the License, or  *   (at your option) any later version.  *  ***************************************************************************/  define('IN_PHPBB', true);$phpbb_root_path = './';include($phpbb_root_path . 'extension.inc');include($phpbb_root_path . 'common.'.$phpEx);  //// Start session management//$userdata = session_pagestart($user_ip, PAGE_INDEX);init_userprefs($userdata);//// End session management//    if( !$userdata['session_logged_in'] ){     $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';     header($header_location . append_sid("login.$phpEx?redirect=db_update.$phpEx", true));     exit;}  if( $userdata['user_level'] != ADMIN ){     message_die(GENERAL_MESSAGE, 'You are not authorised to access this page');}    $page_title = 'Updating the database';include($phpbb_root_path . 'includes/page_header.'.$phpEx);  echo '<table>';echo '<tr><th>Updating the database</th></tr><tr><td><span><ul>';    $sql = array();$sql[] = "ALTER TABLE `" . $table_prefix . "users` ADD `user_skype` VARCHAR( 255 ) AFTER `user_msnm`";  for( $i = 0; $i <count>sql_query ($sql[$i]) )     {         $error = $db->sql_error();           echo '<li>' . $sql[$i] . '<br> +++ <font><b>Error:</b></font> ' . $error['message'] . '</li><br>';     }     else     {         echo '<li>' . $sql[$i] . '<br> +++ <font><b>Successful</b></font></li><br>';     }}    echo '</ul></span></td></tr><tr><td> </td></tr>';  echo '<tr><th>Installation Complete</th></tr><tr><td><span>Please be sure to delete this file now.<br>If you require any further assistance, please visit the <a>phpBBHacks.com Support Forums</a>.</span></td></tr>';echo '<tr><td><span><a>Go back to your index page</a>.</span></td></table>';  include($phpbb_root_path . 'includes/page_tail.'.$phpEx);  ?>


Here is the images to save to your file
/templates/fisubice/images/lang_english/icon_skype.gif

[flash=,:1btv7wz2]http://www.integramod.com/forum/templates/fisubice/images//lang_english/icon_skype.gif[/flash:1btv7wz2]
Last edited by SLY LS1 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

SLY LS1
Members
Members
 
Posts: 70
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 11:49 pm
Cash on hand: 0.00


Return to IntegraMOD Modifications

Who is online

Registered users: Bing [Bot], Google [Bot], Vendethiel