http://www.phpbbturkey.com/viewtopic.php?t=6770
[ resmi görüntülemek için tıklayın ]
Kod: Tümünü seç
##############################################################
## MOD Title: [Skype_Me_Extra] Add-On: Online-Status
## MOD Author: killerbees19 < forum@happytec.at > (Christian Schrötter) http://www.happytec.at
##
## MOD Description: German:
## Mit diesem Add-On für den Skype Me Extra MOD wird der Onlinestatus für Skype
## direkt im Thema angezeigt, wie bei ICQ.
##
## English:
## This add-on for the skype me extra mod displays the skype online status
## on the skype icon, like icq.
##
## MOD Demo: http://www.happytec.at/images/mods/screen-skype_me_extra_add-on.gif
## MOD Version: 1.0.0
## MOD Compatibility: 2.0.21 - 2.0.22
##
## Installation Level: Easy
## Installation Time: 4 Minutes
## Files To Edit:
## viewtopic.php
## includes/usercp_viewprofile.php
## templates/xxx/viewtopic_body.tpl
## templates/xxx/profile_view_body.tpl
## templates/xxx/xxx.cfg
##
## Included Files: N/A
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## Author Notes:
##
## This is only an add-on!!!
## Install this mod only, if you installed the skype me extra mod!
##
##############################################################
##
## For security purposes, please check http://www.happytec.at/download/d_02.php
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.de/moddb/
##
##############################################################
## MOD History:
##
## 2007-01-08 - Version 1.0.0
## - First Release
##
##############################################################
##
## Support: http://www.forum.happytec.at
## Copyright: 2006 Christian Schrötter
##
##############################################################
## Before Adding This MOD To Your Forum,
## You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
#
# Copy all files from the root-folder into your
# phpBB-folder. Do this for every template AND
# for every language installed !!!
#
copy root/* to /*
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$profile = '<a href="' . $temp_url . '">' . $lang['Read_profile'] . '</a>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$image_skype = ( $postrow[$i]['user_skype'] ) ? '<a title="'.$lang['skype'].'" href="#'.$postrow[$i]['post_id'].'" onClick=window.open("skype.'.$phpEx.'?u='.$poster_id.'","gesamt","location=no,menubar=no,toolbar=no,scrollbars=auto,width=320,height=500,status=no",title="Skype")><img src="'.$images['skype_new'].'" alt="'.$lang['skype'].'" title="'.$lang['skype'].'" border="0"></a>' : '';
$skype_user = ( $postrow[$i]['user_skype'] ) ? '<a title="'.$lang['skype'].'" href="#'.$postrow[$i]['post_id'].'" onClick=window.open("skype.'.$phpEx.'?u='.$poster_id.'","gesamt","location=no,menubar=no,toolbar=no,scrollbars=auto,width=320,height=500,status=no",title="Skype")><img alt="'.$lang['skype'].'" title="'.$lang['skype'].'" src="http://mystatus.skype.com/smallicon/'.$postrow[$i]['user_skype'].'" border="0"></a>' : '';
#
#-----[ FIND ]-----
#
$msn = '';
#
#-----[ AFTER, ADD ]-----
#
$image_skype = '';
$skype_user = '';
#
#-----[ FIND ]-----
#
'MSN' => $msn,
#
#-----[ AFTER, ADD ]-----
#
'IMAGE_SKYPE' => $image_skype,
'SKYPE_USER' => $skype_user,
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$msn = $msn_img;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$image_skype = ( $profiledata['user_skype'] ) ? '<a title="'.$lang['skype'].'" href="#" onClick=window.open("skype.'.$phpEx.'?u='.$profiledata['user_id'].'","gesamt","location=no,menubar=no,toolbar=no,scrollbars=auto,width=320,height=500,status=no",title="Skype")><img src="'.$images['skype_new'].'" alt="'.$lang['skype'].'" title="'.$lang['skype'].'" border="0"></a>' : '';
$skype_user = ( $profiledata['user_skype'] ) ? '<a title="'.$lang['skype'].'" href="#" onClick=window.open("skype.'.$phpEx.'?u='.$profiledata['user_id'].'","gesamt","location=no,menubar=no,toolbar=no,scrollbars=auto,width=320,height=500,status=no",title="Skype")><img alt="'.$lang['skype'].'" title="'.$lang['skype'].'" src="http://mystatus.skype.com/smallicon/'.$profiledata['user_skype'].'" border="0"></a>' : '';
#
#-----[ FIND ]-----
#
'MSN' => $msn,
#
#-----[ AFTER, ADD ]-----
#
'IMAGE_SKYPE' => $image_skype,
'SKYPE_USER' => $skype_user,
#
#-----[ OPEN ]------------------------------------------
# note: do this for every template installed
templates/xxx/xxx.cfg
#
#-----[ FIND ]------------------------------------------
#
$images['icon_msnm'] = "$current_template_images/{LANG}/icon_msnm.gif";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$images['skype_new'] = "$current_template_images/{LANG}/skype_new.gif";
#
#-----[ OPEN ]------------------------------------------
# note: do this for every template installed
templates/xxx/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
{postrow.SKYPE_IMG}
#
#-----[ REPLACE WITH ]------------------------------------------
#
<!--{postrow.SKYPE_IMG}--></td><td> </td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:relative;">{postrow.IMAGE_SKYPE}</div><div style="position:absolute;left:3px;top:-1px">{postrow.SKYPE_USER}</div></div>
#
#-----[ OPEN ]------------------------------------------
# note: do this for every template installed
templates/xxx/profile_view_body_body.tpl
#
#-----[ FIND ]------------------------------------------
#
{SKYPE}
#
#-----[ REPLACE WITH ]------------------------------------------
#
<!--{SKYPE}--><table cellspacing="0" cellpadding="0" border="0"><tr><td nowrap="nowrap"><div style="position:relative;height:18px"><div style="position:absolute">{IMAGE_SKYPE}</div><div style="position:absolute;left:3px;top:-1px">{SKYPE_USER}</div></div></td></tr></table>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM