[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 180: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
IntegraMOD Home of phpBB Integrated Modifications 2006-06-20T02:22:19-07:00 https://integramod.com/forum/feed.php?f=17&t=1296 2006-06-20T02:22:19-07:00 2006-06-20T02:22:19-07:00 https://integramod.com/forum/viewtopic.php?t=1296&p=9831#p9831 <![CDATA[Re: Notify me when users register?]]>
Fatal error: Call to a member function on a non-object in /home/renjer/public_html/forum/includes/usercp_profile.php on line 121

My usercp_profile.php is attached:

   </usercp_profile>sql_query($sql) ) {                             message_die(GENERAL_ERROR, 'Could not get user table definition', '', __LINE__, __FILE__, $sql);                             }                         $num_rows = $db->sql_numrows($result);                         if($num_rows){*/                         if(in_array($userfield,$userfields)){                             if (isset($board_config[$userfield]) && $board_config[$userfield] !=''){                                 $data[$userfield] = $board_config[$userfield];                             } else if (isset($board_config[$configfield]) && $board_config[$configfield] !=''){                                 $data[$userfield] = $board_config[$configfield];                             }                         }                     }                 }             }         }     }     // Get the userfields not in any map...     // override by default config values...     /*$sql = "SHOW FIELDS FROM ".USERS_TABLE;     if ( !$result = $db->sql_query($sql) ) {         message_die(GENERAL_ERROR, 'Could not get user table definition', '', __LINE__, __FILE__, $sql);     }     while ($row = $db->sql_fetchrow($result) ){*/     reset($userfields);     foreach ($userfields as $field) {         $defaultfield = 'default_'.str_replace('user_','',$field);         $defaultfield_over =  $defaultfield.'_over';         if($board_config[$defaultfield_over]){             // always set board config! default over is prior to configuration+ over             $data[$field] = $board_config[$defaultfield];         } else if(!isset($data[$field])){             if($board_config[$defaultfield] != ''){                 // set value as default                 $data[$field] = $board_config[$defaultfield];             } else {                 // set value as defined in table                 $data[$field] = $row['Default'];             }         }     }     $db->sql_freeresult($result);}  function auth_field($field){     global $is_user, $is_admin, $is_board_admin, $is_guest;         $field_auth = ( empty($field['auth']) && $is_user ) || ( ($field['auth'] == USER) && $is_user ) || ( ($field['auth'] == ADMIN) && $is_admin ) || ( ($field['auth'] == BOARD_ADMIN) && $is_board_admin ) || ( ($field['auth'] == GUEST_ONLY) && $is_guest );     return $field_auth;}  function mailmsg($data,$template,$subject){     global $board_config, $HTTP_POST_VARS, $server_url, $server_name, $user_ip;         $unhtml_specialchars_match = array('#&gt;#', '#&lt;#', '#&quot;#', '#&#');     $unhtml_specialchars_replace = array('>', '<username>sql_query($sql)) )                 {                     message_die(GENERAL_ERROR, 'Could not select Administrators', '', __LINE__, __FILE__, $sql);                 }                   while ($row = $db->sql_fetchrow($result))                 {                     $emailer->from($board_config['board_email']);                     $emailer->replyto($board_config['board_email']);                       $emailer->email_address(trim($row['user_email']));                     $emailer->use_template("admin_new_user", $row['user_lang']);                     $emailer->set_subject($lang['New_user_registration']);                       $emailer->assign_vars(array(                         'SITENAME' => $board_config['sitename'],                         'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("'", "'", $username), 0, 25)),                         'EMAIL_SIG' => str_replace('<br>', "n", "-- n" . $board_config['board_email_sig']),                           'U_PROFILE' => $server_url . '?mode=viewprofile&' . POST_USERS_URL . '=' . $user_id)                     );                     $emailer->send();                     $emailer->reset();                 }                 $db->sql_freeresult($result);             }     $emailer->use_template($template, stripslashes($data['user_lang']));     $emailer->email_address($useremail);     $emailer->set_subject($subject);     $emailer->extra_headers($email_headers);       $emailer->assign_vars(array(         'SITENAME' => $board_config['sitename'],         'WELCOME_MSG' => $subject,         'USERNAME' => $username,         'PASSWORD' => $HTTP_POST_VARS['user_password_confirm'],         'EMAIL_SIG' => str_replace('<br>', "n", "-- n" . $board_config['board_email_sig']),         'U_ACTIVATE' => $server_url . '?mode=activate&' . POST_USERS_URL . '=' . $data['user_id'] . '&act_key=' . $data['user_actkey'])     );       $emailer->send();     $emailer->reset();}?>    


This should be around line 121]       if ( !($result = $db->sql_query($sql)) )                 {                     message_die(GENERAL_ERROR, 'Could not select Administrators', '', __LINE__, __FILE__, $sql);                 }  [/code]

So what's wrong? Please help.

Strangely too I can't seem to attach all of my usercp_profile.php file.

Statistics: Posted Author: aoowais — Tue Jun 20, 2006 2:22 am


]]>
2006-06-19T22:58:41-07:00 2006-06-19T22:58:41-07:00 https://integramod.com/forum/viewtopic.php?t=1296&p=9814#p9814 <![CDATA[Notify me when users register?]]> http://integrmod.com/home/viewtopic.php?p=47507#47507

this may help

A

Statistics: Posted Author: Adrian Rea — Mon Jun 19, 2006 10:58 pm


]]>
2006-06-19T22:43:24-07:00 2006-06-19T22:43:24-07:00 https://integramod.com/forum/viewtopic.php?t=1296&p=9813#p9813 <![CDATA[Notify me when users register?]]> Statistics: Posted Author: aoowais — Mon Jun 19, 2006 10:43 pm


]]>