- Kod: Tümünü seç
###############################################
## Hack Title: Send PM Popup
## Hack Version: 1.0
## Author: Marc Philpott <www.marc-philpott.org.uk>
## Description: This hack will create a pop-up window when users
## click to send a user a PM from a topic.
##
## Compatibility: 2.0.0 - 2.0.4
##
## Installation Level: Easy
## Installation Time: 30 Seconds
##
## Files To Edit: 1
## viewtopic.php
##
## Author Notes:
## It's a bit simple, a bit boring, and not for everyone.
##
## Support: http://www.phpbbhacks.com/forums
## Copyright: © 2003 Send PM Popup 1.0 - Marc Philpott
##
###############################################
## You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads.
## Please visit http://www.phpbbhacks.com/forums for support.
###############################################
##
###############################################
## This hack is released under the GPL License.
## This hack can be freely used, but not distributed, without permission.
## Intellectual Property is retained by the hack author(s) listed above.
###############################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$poster_id");
$pm_img = '<a href="' . $temp_url . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>';
#
#-----[ REPLACE WITH ]------------------------------------
#
$temp_url = append_sid("privmsg.$phpEx?mode=post&" . POST_USERS_URL . "=$poster_id");
$temp_popup = "window.open('$temp_url', 'Send_PM_Popup', 'width=600,height=500,scrollbars=yes');";
$pm_img = '<a href="#" onClick="' . $temp_popup . '"><img src="' . $images['icon_pm'] . '" alt="' . $lang['Send_private_message'] . '" title="' . $lang['Send_private_message'] . '" border="0" /></a>';
#
#-----[ SAVE & CLOSE ALL FILES ]--------------------------
#
#End
Yalniz bu sadece viewtopicde ise yariyor
Diger seylerede uyarlamak lazim
Index.php falan gibi
Sevgiyle