Ich habe dieser Mod instaliert leider kann mann das über acp nicht sehen und ändern, möchte gerne genau so wie die anderen profil infos ändern können. Kann mir bitte jemand helfen wie ich das hinbekomme.
MFG
Code: Alles auswählen
##############################################################
## MOD Title: Disable Profile Mod
## MOD Author: Flance < mail@jordibetting.nl > (Jordi Betting) http://www.flance.nl
## MOD Description: This mod allows users to disable their profile for other users.
## MOD Version: 1.0.0
##
## Installation Level: Intermediate
## Installation Time: ~ 5 Minutes
## Files To Edit: language/lang_english/lang_main.php,
## templates/subSilver/profile_add_body.tpl,
## includes/usercp_register.php,
## includes/usercp_viewprofile.php
## Included Files: templates/subSilver/profile_view_body_notallowed.tpl
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## 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.com/mods/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
## 2005-12-10 - Version 1.0.0
## - first public release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE `forum_users` ADD `user_allow_showprofile` TINYINT( 1 ) DEFAULT '1' NOT NULL AFTER `user_allow_viewonline` ;
#
#-----[ COPY ]------------------------------------------
#
templates/subSilver/profile_view_body_notallowed.tpl to templates/subSilver/profile_view_body_notallowed.tpl
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Public_view_email'] = 'Always show my e-mail address';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Allow_show_profile'] = 'Allow other users to view my profile.';
$lang['Show_profile_not_allowed'] = 'This profile has been disabled by it\'s owner in order to guarantee the privacy of this user';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<th class="thSides" colspan="2" height="25" valign="middle">{L_PREFERENCES}</th>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_PUBLIC_VIEW_PROFILE}:</span></td>
<td class="row2">
<input type="radio" name="showprofile" value="1" {SHOW_PROFILE_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="showprofile" value="0" {SHOW_PROFILE_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
$viewemail = $userdata['user_viewemail'];
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$showprofile = $userdata['user_allow_showprofile'];
#
#-----[ FIND ]------------------------------------------
#
$allowviewonline = ( isset($HTTP_POST_VARS['hideonline']) ) ? ( ($HTTP_POST_VARS['hideonline']) ? 0 : TRUE ) : TRUE;
#
#-----[ AFTER, ADD ]------------------------------------------
#
$showprofile = ( isset($HTTP_POST_VARS['showprofile']) ) ? ( ($HTTP_POST_VARS['showprofile'] == 1) ? 1 : 0 ) : 0;
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popup_pm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "
WHERE user_id = $user_id";
#
#-----[ REPLACE WITH ]------------------------------------------
user_allow_showprofile = $showprofile,
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popup_pm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "
WHERE user_id = $user_id";
#
#-----[ FIND ]------------------------------------------
#
'L_CURRENT_PASSWORD' => $lang['Current_password'],
#
#-----[ BEFORE, ADD ]------------------------------------------
#
'L_PUBLIC_VIEW_PROFILE' => $lang['Allow_show_profile'],
#
#-----[ FIND ]------------------------------------------
#
'SIGNATURE' => str_replace('<br />', "\n", $signature),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'SHOW_PROFILE_YES' => ( $showprofile ) ? 'checked="checked"' : '',
'SHOW_PROFILE_NO' => ( !$showprofile ) ? 'checked="checked"' : '',
#
#-----[ FIND ]------------------------------------------
#
//
// Let's do an overall check for settings/versions which would prevent
// us from doing file uploads....
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$showprofile = ($HTTP_GET_VARS['mode'] == 'register') ? ( (isset($showprofile)) ? $showprofile : 0 ) : $showprofile;
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
if (!$profiledata)
{
message_die(GENERAL_MESSAGE, $lang['No_user_id_specified']);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ($profiledata['user_allow_showprofile'] == 1 || $userdata['user_level'] == ADMIN || $userdata['user_id'] == $profiledata['user_id'])
{
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
} else {
//
// Generate page
//
$page_title = $lang['Viewing_profile'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
//
// Output page header and profile_view template
//
$template->set_filenames(array(
'body' => 'profile_view_body_notallowed.tpl')
);
make_jumpbox('viewforum.'.$phpEx);
$template->assign_vars(array('L_SHOW_PROFILE_NOT_ALLOWED' => $lang['Show_profile_not_allowed']));
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM