Example, it says to edit profilcp/profilcp_register.php thats a can not do. That file dont exist. Where can I find the file that now takes care of registration?
Also it has some template edits that dont even come close to anything I have in any of the 3 files Im using.
Here is the PCP install part of the mod
##-----[ OPEN ]------------------------------------------#profilcp/profilcp_register.php ##-----[ FIND ]------------------------------------------#$unhtml_specialchars_replace = array('>', '<41>sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not update sponsor gains', '', __LINE__, __FILE__, $sql); } $sql = " SELECT user_sponsor_id FROM " . USERS_TABLE . " WHERE user_id = $sponsor_id "; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not update sponsor gains', '', __LINE__, __FILE__, $sql); } $sponsors = $db->sql_fetchrowset($result); if ( $db->sql_numrows($result) ) { for ( $s = 0 ; $s <count>sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not update sponsors gains', '', __LINE__, __FILE__, $sql); } } } } ##-----[ FIND ]------------------------------------------# $sql = "INSERT INTO " . USERS_TABLE . "($sql_key) VALUES ($sql_val)"; if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) ) { message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql); } ##-----[ AFTER, ADD ]------------------------------------------# $sql = "UPDATE " . USERS_TABLE . " SET user_sponsor_id = $sponsor_id WHERE user_id = $user_id "; if ( !$db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Could not update sponsor gains', '', __LINE__, __FILE__, $sql); } ##-----[ FIND ]------------------------------------------# // get the current password ? if ( !$create_user ) { $template->assign_block_vars('switch_get_cur_password', array() ); } ##-----[ AFTER, ADD ]------------------------------------------# else if ( $board_config['sponsor_enabled'] ) { $template->assign_block_vars('switch_sponsor', array()); if ( intval($HTTP_GET_VARS['sponsor']) ) { $sql = " SELECT username FROM " . USERS_TABLE . " WHERE user_id = $sponsor_id "; if ( !$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Could not obtain users list', "", __LINE__, __FILE__, $sql); } $users = $db->sql_fetchrow($result); $users_list = '<b>'.trim(htmlspecialchars($users['username'])).'</b>'; } else { $sql = " SELECT user_id , username FROM " . USERS_TABLE . " WHERE user_id > 1 ORDER BY username "; if ( !$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, 'Could not obtain users list', "", __LINE__, __FILE__, $sql); } $users = $db->sql_fetchrowset($result); $users_list = '<select>'; $users_list .= '<option>' . $lang['Sponsor_none'] . '</option>'; for($i = 0; $i < count($users); $i++) { $selected = ( $sponsor_id == $users[$i]['user_id'] ) ? 'selected' ]['user_id'].'" '.$selected.' >' . $users[$i]['username'] . '</option>'; } $users_list .= '</select>'; } } ## Note: The following additions are required to make the Sponsorship MOD work properly# and are added by Ozzie < <a>Goster@OzziesWorld.com</a> > website: http://www.OzziesWorld.com##-----[ OPEN ]------------------------------------------#templates/subSilver/profilecp/register_body.tpl ##-----[ FIND ]------------------------------------------# <BEGIN> ##-----[ BEFORE, ADD ]------------------------------------------# <BEGIN> <tr> <td><span>{L_SELECT_SPONSOR}</span></td> <td>{USERS_LIST}</td> </tr> <END> # #--------------[ FIND ]------------- # 'L_PASSWORD_CONFIRM_IF_CHANGED' => $lang['password_confirm_if_changed'], # #--------------[ AFTER, ADD ]------------- # 'L_SELECT_SPONSOR' => $lang['Sponsor_select'], # #--------------[ FIND ]------------- # 'EMAIL_CONFIRM' => $view_userdata['user_email'], # #--------------[ AFTER, ADD ]------------- # 'USERS_LIST' => $users_list, ##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------## EoM
As you can see, these edits make completely no sence what so ever.
I think if I can get past the registration part, I can work the template issues out easily......enough
Thanks in advance
Ray