## Hack Title: Add new field to profile
## Hack Version: 1.2.2
## Author Acid
Nadat ik deze mod installeerde, en klaar was zag ik 2 blanke pagina's weet iemand misschien hoe dit zou komen

Code: Selecteer alles
#
#-----[ OPEN ]------------------------------------------
#
# includes/usercp_viewprofile.php
#
#-----[ FIND ]---------------------------------------------------
#
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
#
#-----[ BELOW ADD ]---------------------------------------------------
#
'INFO' => ( $profiledata['user_info'] ) ? $profiledata['user_info'] : ' ',
'L_INFO' => $lang['Info'],
#
#-----[ OPEN ]------------------------------------------
#
# includes/usercp_register.php
#
#-----[ FIND ]---------------------------------------------------
#
$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
'interests'
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, 'info' => 'info'
#
#-----[ FIND (2x) ]---------------------------------------------------
#
$interests = stripslashes($interests);
#
#-----[ always BELOW ADD ]---------------------------------------------------
#
$info = stripslashes($info);
#
#-----[ FIND (just a quote) ]---------------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests) . "'
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, user_info = '" . str_replace("\'", "''", $info) . "'
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
user_interests
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, user_info
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests) . "'
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, '" . str_replace("\'", "''", $info) . "'
#
#-----[ FIND ]---------------------------------------------------
#
$interests = $userdata['user_interests'];
#
#-----[ BELOW ADD ]---------------------------------------------------
#
$info = $userdata['user_info'];
#
#-----[ FIND (just a quote) ]---------------------------------------------------
#
display_avatar_gallery($mode, $avatar_category
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, $info
#
#-----[ FIND (just a quote) ]--------------------------
#
$template->assign_vars(array(
.
.
.
.
'INTERESTS' => $interests,
#
#-----[ BELOW ADD ]---------------------------------------------------
#
'INFO' => $info,
'L_INFO' => $lang['Info'],