//edit:
http://www.phpbb.com/phpBB/viewtopic.php?t=79775
sorry, kann nichtmehr sagen woher ich es hab. der kopf des mods:
Code: Alles auswählen
########################################################
## Mod Title: profile guestbook mod
## Mod Version: 0.91 beta
## Included mod by neo18tilidie
## Inspired by a comment script by todd
## but has nothing to do with it anymore
##
## History:
## 0.91 entry count added - typo fixed
## 0.90 Initial release
##
## Description: This mod will add a guestbook to each userprofile
##
## Installation Level: medium
## Installation Time: 10-15 Minutes
## Files To Edit: 7
###################################################################
###################################################################
das ist der teil der in die usercp_viewprofile.php eingebaut wird:
Code: Alles auswählen
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ NEAR TOP FIND ]------------------------------------------
#
$profiledata = get_userdata(intval($HTTP_GET_VARS[POST_USERS_URL]));
#
#-----[ AFTER, ADD ]------------------------------------------
#
// gestbook hack
$id = $u;
$cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? TRUE : 0;
if ($cancel)
{
redirect(append_sid("profile.$phpEx?mode=viewprofile&u=" . $id ."&start=".$start."#gb", true));
exit;
}
if ( isset($HTTP_GET_VARS['action']) || isset($HTTP_POST_VARS['action']) )
{
$action = ( isset($HTTP_GET_VARS['action']) ) ? $HTTP_GET_VARS['action'] : $HTTP_POST_VARS['action'];
if($action == 'admin')
{
include($phpbb_root_path . 'gb_display.'.$phpEx);
exit;
}
elseif($action == "post")
{
include($phpbb_root_path . 'gb_post.'.$phpEx);
exit;
}
}
// gestbook hack end
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
include($phpbb_root_path . 'gb_display.'.$phpEx);
zeile 74 davon:
Code: Alles auswählen
redirect(append_sid("profile.$phpEx?mode=viewprofile&u=" . $id ."&start=".$start."#gb", true));