[ Príspevok: 1 ] 
AutorSpráva
Offline

Prevádzkovateľ fóra
Prevádzkovateľ fóra
Skype MOD

Registrovaný: 01.05.05
Príspevky: 12424
Témy: 1447 | 1447
Bydlisko: Bratislava
Vek: 32
NapísalOffline : 13.10.2006 9:14 | Skype MOD

Kód:
########################################################
## MOD Title:      Skype MOD
## MOD Author:      ycl6 < ycl6@users.sourceforge.net > (Y.C. LIN) http://macphpbbmod.sourceforge.net/
##
## MOD Description:   This mod display a skype (http://www.skype.com/) button in your forum's
##            viewtopic, viewprofile and admin can edit user's skype setting in user management panel
## MOD Version:      1.0.2
##
## Installation Level:   Intermediate
## Installation Time:   10 Minutes
##
## Files To Edit:   12
##   viewtopic.php
##   includes/usercp_register.php
##   includes/functions_validate.php
##   includes/usercp_avatar.php
##   includes/usercp_viewprofile.php
##   admin/admin_users.php
##   language/lang_english/lang_main.php
##   templates/subSilver/subSilver.cfg
##   templates/subSilver/profile_view_body.tpl
##   templates/subSilver/profile_add_body.tpl
##   templates/subSilver/viewtopic_body.tpl
##   templates/subSilver/admin/user_edit_body.tpl
##
## Included Files:    1
##   icon_skype.gif
##
#################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ 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: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##   Tested on phpBB 2.0.14, worked with EasyMOD beta1 (0.1.13)
##   No button in memberlist and usergroup listing because there isn't enough space,
##      more button can distort the table.
##
##   Copyright: GNU GENERAL PUBLIC LICENSE
##      http://www.phpbb.com/support/license.php
##
##   EasyMOD: http://area51.phpbb.com/phpBB22/viewtopic.php?sid=&f=17&t=15391
##   Skype: http://www.skype.com/
##
##   Skype is free Internet telephony that just works.
##   Skype is for calling other people on their computers or phones.
##   Download Skype and start calling for free all over the world.
##
##############################################################
## MOD History:
##
##   2004-12-21 - Version 1.0.0
##      - Initial Release
##
##   2005-01-10 - Version 1.0.1
##      - Change the position of Skype to before ICQ button to avoid clashing.
##
##   2005-05-02 - Version 1.0.2
##      - Change "Skype USERNAME" to 'Skype Name' to fix a bug
##
##############################################################
## 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 ) ;

#
#-----[ COPY ]------------------------------------------
#
copy icon_skype.gif to templates/subSilver/images/lang_english/icon_skype.gif

#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id,

#
#-----[ IN-LINE FIND ]------------------------------------------
#
u.user_yim,

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 u.user_skype,

#
#-----[ FIND ]------------------------------------------
#
      $yim = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&amp;.src=pg">' . $lang['YIM'] . '</a>' : '';

#
#-----[ AFTER, ADD ]------------------------------------------
#
      $skype_img = ( $postrow[$i]['user_skype'] ) ? '<a href="callto://' . $postrow[$i]['user_skype'] . '/"><img src="' . $images['icon_skype'] . '" alt="' . $lang['SKYPE'] . '" title="' . $lang['SKYPE'] . '" border="0" /></a>' : '';
      $skype = ( $postrow[$i]['user_skype'] ) ? '<a href="callto://' . $postrow[$i]['user_skype'] . '/">' . $lang['SKYPE'] . '</a>' : '';

#
#-----[ FIND ]------------------------------------------
#
      $yim_img = '';
      $yim = '';

#
#-----[ AFTER, ADD ]------------------------------------------
#
      $skype_img = '';
      $skype = '';

#
#-----[ FIND ]------------------------------------------
#
      'YIM_IMG' => $yim_img,
      'YIM' => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
#
      'SKYPE_IMG' => $skype_img,
      'SKYPE' => $skype,

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
#
$strip_var_list = array('username' => 'username'

#
#-----[ IN-LINE FIND ]------------------------------------------
#
'yim' => 'yim',

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 'skype' => 'skype',

#
#-----[ FIND ]------------------------------------------
#
validate_optional_fields($icq,

#
#-----[ IN-LINE FIND ]------------------------------------------
#
$yim,

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 $skype,

#
#-----[ FIND ]------------------------------------------
#
      $yim = stripslashes($yim);

#
#-----[ AFTER, ADD ]------------------------------------------
#
      $skype = stripslashes($skype);

#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
            SET " . $username_sql . $passwd_sql

#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_msnm = '" . str_replace("\'", "''", $msn) . "',

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 user_skype = '" . str_replace("\'", "''", $skype) . "',

#
#-----[ FIND ]------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . "   (user_id, username

#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_msnm,

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 user_skype,

#
#-----[ FIND ]------------------------------------------
#
VALUES ($user_id, '" . str_replace("\'", "''", $username)

#
#-----[ IN-LINE FIND ]------------------------------------------
#
'" . str_replace("\'", "''", $msn) . "',

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 '" . str_replace("\'", "''", $skype) . "',

#
#-----[ FIND ]------------------------------------------
#
               'YIM' => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
#
               'SKYPE' => $skype,

#
#-----[ FIND ]------------------------------------------
#
   $yim = stripslashes($yim);

#
#-----[ AFTER, ADD ]------------------------------------------
#
   $skype = stripslashes($skype);

#
#-----[ FIND ]------------------------------------------
#
   $yim = $userdata['user_yim'];

#
#-----[ AFTER, ADD ]------------------------------------------
#
   $skype = $userdata['user_skype'];

#
#-----[ FIND ]------------------------------------------
#
display_avatar_gallery($mode, $avatar_category,

#
#-----[ IN-LINE FIND ]------------------------------------------
#
$yim,

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 $skype,

#
#-----[ FIND ]------------------------------------------
#
      'YIM' => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
#
      'SKYPE' => $skype,

#
#-----[ FIND ]------------------------------------------
#
      'L_YAHOO' => $lang['YIM'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
      'L_SKYPE' => $lang['SKYPE'],

#
#-----[ OPEN ]------------------------------------------
#
includes/functions_validate.php

#
#-----[ FIND ]------------------------------------------
#
function validate_optional_fields(&$icq,

#
#-----[ IN-LINE FIND ]------------------------------------------
#
&$yim,

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 &$skype,

#
#-----[ FIND ]------------------------------------------
#
$check_var_length = array('aim'

#
#-----[ IN-LINE FIND ]------------------------------------------
#
'yim',

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 'skype',

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_avatar.php

#
#-----[ FIND ]------------------------------------------
#
function display_avatar_gallery($mode, &$category,

#
#-----[ IN-LINE FIND ]------------------------------------------
#
&$yim,

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 &$skype,

#
#-----[ FIND ]------------------------------------------
#
$params = array('coppa', 'user_id', 'username',

#
#-----[ IN-LINE FIND ]------------------------------------------
#
'yim',

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 'skype',

#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php

#
#-----[ FIND ]------------------------------------------
#
$yim = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&amp;.src=pg">' . $lang['YIM'] . '</a>' : '';

#
#-----[ AFTER, ADD ]------------------------------------------
#
$skype_img = ( $profiledata['user_skype'] ) ? '<a href="callto://' . $profiledata['user_skype'] . '/"><img src="' . $images['icon_skype'] . '" alt="' . $lang['SKYPE'] . '" title="' . $lang['SKYPE'] . '" border="0" /></a>' : '';
$skype = ( $profiledata['user_skype'] ) ? '<a href="callto://' . $profiledata['user_skype'] . '/">' . $lang['SKYPE'] . '</a>' : '';

#
#-----[ FIND ]------------------------------------------
#
   'YIM_IMG' => $yim_img,
   'YIM' => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
#
   'SKYPE_IMG' => $skype_img,
   'SKYPE' => $skype,

#
#-----[ FIND ]------------------------------------------
#
   'L_YAHOO' => $lang['YIM'],

#
#-----[ AFTER, ADD ]------------------------------------------
#
   'L_SKYPE' => $lang['SKYPE'],

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_YAHOO}:</span></td>
     <td class="row2">
      <input type="text" class="post"style="width: 150px"  name="yim" size="20" maxlength="255" value="{YIM}" />
     </td>
   </tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_SKYPE}:</span></td>
     <td class="row2">
      <input type="text" class="post"style="width: 150px"  name="skype" size="20" maxlength="255" value="{SKYPE}" />
     </td>
   </tr>

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl

#
#-----[ FIND ]------------------------------------------
#
      <tr>
        <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_YAHOO}:</span></td>
        <td class="row1" valign="middle"><span class="gen">{YIM_IMG}</span></td>
      </tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
      <tr>
        <td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_SKYPE}:</span></td>
        <td class="row1" valign="middle"><span class="gen">{SKYPE_IMG}</span></td>
      </tr>

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/subSilver.cfg

#
#-----[ FIND ]------------------------------------------
#
$images['icon_yim'] = "$current_template_images/{LANG}/icon_yim.gif";


#
#-----[ AFTER, ADD ]------------------------------------------
#
$images['icon_skype'] = "$current_template_images/{LANG}/icon_skype.gif";

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl

#
#-----[ FIND ]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_YAHOO}</span></td>
     <td class="row2">
      <input class="post" type="text" name="yim" size="20" maxlength="255" value="{YIM}" />
     </td>
   </tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_SKYPE} {USERNAME}</span></td>
     <td class="row2">
      <input class="post" type="text" name="skype" size="20" maxlength="255" value="{SKYPE}" />
     </td>
   </tr>

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
<td valign="middle" nowrap="nowrap">{postrow.PROFILE_IMG}

#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.MSN_IMG}

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 {postrow.SKYPE_IMG}

#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php

#
#-----[ FIND ]------------------------------------------
#
      $yim = ( !empty($HTTP_POST_VARS['yim']) ) ? trim(strip_tags( $HTTP_POST_VARS['yim'] ) ) : '';

#
#-----[ AFTER, ADD ]------------------------------------------
#
      $skype = ( !empty($HTTP_POST_VARS['skype']) ) ? trim(strip_tags( $HTTP_POST_VARS['skype'] ) ) : '';

#
#-----[ FIND ]------------------------------------------
#
validate_optional_fields($icq,

#
#-----[ IN-LINE FIND ]------------------------------------------
#
$yim,

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 $skype,

#
#-----[ FIND ]------------------------------------------
#
         $yim = htmlspecialchars(stripslashes($yim));

#
#-----[ AFTER, ADD ]------------------------------------------
#
         $skype = htmlspecialchars(stripslashes($skype));

#
#-----[ FIND ]------------------------------------------
#
         $sql = "UPDATE " . USERS_TABLE . "
            SET " . $username_sql . $passwd_sql

#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_msnm = '" . str_replace("\'", "''", $msn) . "',

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
 user_skype = '" . str_replace("\'", "''", $skype) . "',

#
#-----[ FIND ]------------------------------------------
#
         $yim = htmlspecialchars(stripslashes($yim));

#
#-----[ AFTER, ADD ]------------------------------------------
#
         $skype = htmlspecialchars(stripslashes($skype));

#
#-----[ FIND ]------------------------------------------
#
      $yim = htmlspecialchars($this_userdata['user_yim']);

#
#-----[ AFTER, ADD ]------------------------------------------
#
      $skype = htmlspecialchars($this_userdata['user_skype']);

#
#-----[ FIND ]------------------------------------------
#
         $s_hidden_fields .= '<input type="hidden" name="yim" value="' . str_replace("\"", "&quot;", $yim) . '" />';

#
#-----[ AFTER, ADD ]------------------------------------------
#
         $s_hidden_fields .= '<input type="hidden" name="skype" value="' . str_replace("\"", "&quot;", $skype) . '" />';

#
#-----[ FIND ]------------------------------------------
#
         'YIM' => $yim,

#
#-----[ AFTER, ADD ]------------------------------------------
#
         'SKYPE' => $skype,

#
#-----[ FIND ]------------------------------------------
#
         'L_YAHOO' => $lang['YIM'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
         'L_SKYPE' => $lang['SKYPE'],

#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------
#
$lang['YIM'] = 'Yahoo Messenger';

#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['SKYPE'] = 'Skype Name';

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM


_________________
SilverStone SST CS01 | Corsair SF600 600W SFX | ASRock X99E-ITX/ac | Intel Xeon E5-2683 v4 (16 Cores / 32 Threads) & Noctua NH-U9DX i4 | Kingston HyperX Savage 32 GB DDR4 2400 MHz | PNY NVIDIA Quadro K1200 DP 4 GB DDR5 | Intel SSD 750 1.2 TB NVMe & Intel SSD 730 240 GB SATA & Seagate BackUp Plus Portable 12 TB USB | 31.5" 4K LCD EIZO FlexScan EV3237 & 2 x 24" LCD EIZO FlexScan EV2451 | Ergotron LX Wall Mount Keyboard Arm | Logitech Craft | Logitech Wireless G700s | Harman Kardon Nova | Microsoft Windows 7 Ultimate | APC Back-UPS ES 700 | Lenovo ThinkPad X250 - Intel Core i7 5600U, 8 GB DDR3 1600 MHz, Intel HD Graphics 5500, SanDisk SSD 512 GB, 12.5 FHD LED IPS, WWAN 3G 4G LTE, Microsoft Windows 7 Ultimate | Nintendo Classic Mini | BlackBerry Passport 96 GB
 [ Príspevok: 1 ] 


Skype MOD



Podobné témy

 Témy  Odpovede  Zobrazenia  Posledný príspevok 
V tomto fóre nie sú ďalšie neprečítané témy.

H: Sapphire HD4850 Dual-Slot (pencil-mod, v-mod)

v Modifikácie, návody a projekty

0

1596

18.01.2009 18:57

Vladio

V tomto fóre nie sú ďalšie neprečítané témy.

Orange & Black mod - mod by borec

v Modifikácie, návody a projekty

16

2612

07.08.2008 22:49

Orses

V tomto fóre nie sú ďalšie neprečítané témy.

Hladam ludi na Black Jack cez skype aj ine hry cez skype

v Počítačové hry

4

391

29.05.2011 14:14

thrax12

V tomto fóre nie sú ďalšie neprečítané témy.

Tak aj môd mod :)

v Modifikácie, návody a projekty

16

2297

03.06.2011 13:33

škodovkar

V tomto fóre nie sú ďalšie neprečítané témy.

Skype

v Sieťové a internetové programy

1

69

12.01.2014 13:14

liqua1

V tomto fóre nie sú ďalšie neprečítané témy.

SKYPE

v Sieťové a internetové programy

0

120

13.03.2012 14:19

deny7410

V tomto fóre nie sú ďalšie neprečítané témy.

skype

v Sieťové a internetové programy

4

462

13.01.2009 18:22

hana

V tomto fóre nie sú ďalšie neprečítané témy.

Skype

v Sieťové a internetové programy

10

346

21.09.2011 23:19

fonkey

V tomto fóre nie sú ďalšie neprečítané témy.

Skype

v Sieťové a internetové programy

1

208

09.03.2012 23:45

janik4451

V tomto fóre nie sú ďalšie neprečítané témy.

Skype

v Sieťové a internetové programy

9

965

15.06.2006 8:20

Spirit

V tomto fóre nie sú ďalšie neprečítané témy.

Skype

v Sieťové a internetové programy

6

164

28.07.2014 16:10

tatko Tom

V tomto fóre nie sú ďalšie neprečítané témy.

Skype

v Sieťové a internetové programy

3

340

22.09.2011 17:20

ChaoTic

V tomto fóre nie sú ďalšie neprečítané témy.

Skype

v Sieťové a internetové programy

16

1248

26.03.2008 10:35

SilverSurfer

V tomto fóre nie sú ďalšie neprečítané témy.

Skype

v Sieťové a internetové programy

2

416

01.09.2010 14:53

Canyon

V tomto fóre nie sú ďalšie neprečítané témy.

Skype

v Novinky

6

506

18.09.2007 22:07

Poki

V tomto fóre nie sú ďalšie neprečítané témy.

Skype

v Sieťové a internetové programy

0

94

04.11.2012 22:25

SolutiOn



© 2005 - 2017 PCforum, edited by JanoF