 | profile problem on my forums (danceairwaves.net) |  |
Posted: 07/19/2007 8:31 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:11 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Hi Nightrider
I just uninstalled the Team Page mod for my forums because it isn’t needed now that I have a Team Page on the website it self.
Shortly after uninstalling the mod though and I tried to go into edit profile mode on the forums a blank page loaded up. I’ve figured out which edited file is causing the problem which is includes/ usercp_register.php
But I’m not sure where I went wrong. Could you please check the following section that is taken from the Team Page install file
| Code:
|
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
'occupation' => 'occupation', 'interests' => 'interests'
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'interests' => 'interests'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'realname' => 'realname', 'adress' => 'adress', 'birth' => 'birth', 'photo' => 'photo', 'slogan' => 'slogan', 'opt_title' => 'opt_title', 'opt_text' => 'opt_text', 'team_desc' => 'team_desc', 'team_text' => 'team_text'
#
#-----[ FIND ]------------------------------------------
#
}
$user_style = ( isset($HTTP_POST_VARS['style']) ) ? intval($HTTP_POST_VARS['style']) : $board_config['default_style'];
if ( !empty($HTTP_POST_VARS['language']) )
{
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$team_website = ( isset($HTTP_POST_VARS['team_website']) ) ? ( ($HTTP_POST_VARS['team_website']) ? TRUE : 0 ) : $userdata['team_website'];
$team_email = ( isset($HTTP_POST_VARS['team_email']) ) ? ( ($HTTP_POST_VARS['team_email']) ? TRUE : 0 ) : $userdata['team_email'];
$team_pm = ( isset($HTTP_POST_VARS['team_pm']) ) ? ( ($HTTP_POST_VARS['team_pm']) ? TRUE : 0 ) : $userdata['team_pm'];
#
#-----[ FIND ]------------------------------------------
#
$aim = stripslashes($aim);
$msn = stripslashes($msn);
$yim = stripslashes($yim);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$realname = stripslashes($realname);
$adress = stripslashes($adress);
$birth = stripslashes($birth);
$photo = stripslashes($photo);
$slogan = stripslashes($slogan);
$opt_title = stripslashes($opt_title);
$opt_text = stripslashes($opt_text);
$team_desc = stripslashes($team_desc);
$team_text = stripslashes($team_text);
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql
#
#-----[ IN-LINE FIND ]------------------------------------------
#
str_replace("\'", "''", $user_actkey) . "'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_realname = '" . str_replace("\'", "''", $realname) . "', user_adress = '" . str_replace("\'", "''", $adress) . "', user_birth = '$birth', user_photo = '" . str_replace("\'", "''", $photo) . "', user_slogan = '" . str_replace("\'", "''", $slogan) . "', user_topt_title = '" . str_replace("\'", "''", $opt_title) . "', user_topt_text = '" . str_replace("\'", "''", $opt_text) . "', user_teamdesc_title = '$team_desc', user_teamtext = '$team_text', team_website = '$team_website', team_email = '$team_email', team_pm = '$team_pm'
#
#-----[ FIND ]------------------------------------------
#
if ( !$user_active )
{
//
// The users account has been deactivated, send them an email with a new activation key
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $userdata['user_level'] == ADMIN )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_teamdesc_title = '$team_desc', user_teamtext = '$team_text'
WHERE user_level = ". ADMIN;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update users table', '', __LINE__, __FILE__, $sql);
}
}
#
#-----[ FIND ]------------------------------------------
#
$aim = str_replace('+', ' ', stripslashes($aim));
$msn = stripslashes($msn);
$yim = stripslashes($yim);
#
#-----[ AFTER, ADD ]------------------------------------------
#
$realname = stripslashes($realname);
$adress = stripslashes($adress);
$birth = stripslashes($birth);
$photo = stripslashes($photo);
$slogan = stripslashes($slogan);
$opt_title = stripslashes($opt_title);
$opt_text = stripslashes($opt_text);
$team_desc = stripslashes($team_desc);
$team_text = stripslashes($team_text);
#
#-----[ FIND ]------------------------------------------
#
$user_timezone = $userdata['user_timezone'];
$user_dateformat = $userdata['user_dateformat'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$realname = $userdata['user_realname'];
$adress = $userdata['user_adress'];
if ( @!empty($birthday) )
{
// Borrowed from Birthday Mod by Nils
$this_year = create_date('Y', time(), $board_config['board_timezone']);
$this_date = create_date('md', time(), $board_config['board_timezone']);
$birthdate = realdate('md', $userdata['user_birthday']);
$birth = $this_year - realdate('Y', $userdata['user_birthday']);
}
else
{
$birth = $userdata['user_birth'];
}
$photo = $userdata['user_photo'];
$slogan = $userdata['user_slogan'];
$opt_title = $userdata['user_topt_title'];
$opt_text = $userdata['user_topt_text'];
$team_website = $userdata['team_website'];
$team_email = $userdata['team_email'];
$team_pm = $userdata['team_pm'];
$team_desc = $userdata['user_teamdesc_title'];
$team_text = $userdata['user_teamtext'];
#
#-----[ FIND ]------------------------------------------
#
display_avatar_gallery($mode,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$userdata['session_id']
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, $realname, $adress, $birth, $photo, $slogan, $opt_title, $opt_text, $team_website, $team_email, $team_pm, $team_desc, $team_text
#
#-----[ FIND ]------------------------------------------
#
'SMILIES_STATUS' => $smilies_status,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'REALNAME' => $realname,
'ADRESS' => $adress,
'BIRTH' => ( empty($birth) && empty($birthday) ) ? '' : $birth,
'PHOTO' => $photo,
'SLOGAN' => $slogan,
'OPT_TITLE' => $opt_title,
'OPT_TEXT' => $opt_text,
'TEAM_DESC' => $team_desc,
'TEAM_TEXT' => $team_text,
'SHOW_WEBSITE_YES' => ( $team_website ) ? 'checked="checked"' : '',
'SHOW_WEBSITE_NO' => ( !$team_website ) ? 'checked="checked"' : '',
'SHOW_EMAIL_YES' => ( $team_email ) ? 'checked="checked"' : '',
'SHOW_EMAIL_NO' => ( !$team_email ) ? 'checked="checked"' : '',
'SHOW_PM_YES' => ( $team_pm ) ? 'checked="checked"' : '',
'SHOW_PM_NO' => ( !$team_pm ) ? 'checked="checked"' : '',
'L_TEAM' => $lang['Team_page'],
'L_TEAM_INFO' => $lang['Team_page_info'],
'L_TEAM_REALNAME' => $lang['Team_realname'],
'L_TEAM_ADRESS' => $lang['Team_adress'],
'L_TEAM_ADRESS_EXPLAIN' => $lang['Team_adress_explain'],
'L_TEAM_BIRTH' => $lang['Team_birth'],
'L_TEAM_PHOTO' => $lang['Team_photo'],
'L_TEAM_PHOTO_EXPLAIN' => $lang['Team_photo_explain'],
'L_TEAM_SLOGAN' => $lang['Team_slogan'],
'L_TEAM_OPTIONAL' => $lang['Team_optional'],
'L_TEAM_OPTIONAL_EXPLAIN' => $lang['Team_optional_explain'],
'L_TEAM_DESC' => $lang['Team_desc'],
'L_TEAM_DESC_EXPLAIN' => $lang['Team_desc_explain'],
'L_TEAM_TEXT' => $lang['Team_text'],
'L_TEAM_TEXT_EXPLAIN' => $lang['Team_text_explain'],
'L_TEAM_WEBSITE' => $lang['Team_website'],
'L_TEAM_EMAIL' => $lang['Team_email'],
'L_TEAM_PM' => $lang['Team_pm'],
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ( $userdata['user_level'] == MOD || $userdata['user_level'] == ADMIN )
{
$template->assign_block_vars('switch_team', array());
if ( $userdata['user_level'] == ADMIN )
{
$template->assign_block_vars('switch_team.about', array());
}
}
|
no doubt you'll figure it straight away
the complete Team Page mod uninstalled now. its not in the admin/mods secion. no record of it for easymod and all sql queries have been removed from the database and also all coding is back to how it was before i installed the Team Page mod.
Just need to solve the wee problem  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: profile problem on my forums (danceairwaves.net) |  |
Posted: 07/20/2007 4:42 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:11 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, you made one mistake. This is what I did to correct the problem:
OPEN
includes/usercp_register.php
FIND
| Code:
|
WHERE user_level = ". ADMIN;
if ( !$user_active )
|
REPLACE WITH
| Code:
|
WHERE user_level = ". ADMIN;
}
if ( !$user_active )
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: profile problem on my forums (danceairwaves.net) |  |
Posted: 07/20/2007 4:55 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:11 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Not bad. To only come into one error I must be doing better... it was quite a big mod!
Thanks for correcting the problem dude  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: profile problem on my forums (danceairwaves.net) |  |
Posted: 07/20/2007 10:38 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:11 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yep, it could have been much worse. Unfortunately, since the page came up blank without giving any clue of what went wrong, this would have been extremely difficult to find if it hadn't been for UltraCompare that was able to show the difference between the current and previous versions of the file. I sure am glad I finally got that to work yesterday, or this could have been a doozy of a problem to resolve...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: profile problem on my forums (danceairwaves.net) |  |
Posted: 07/21/2007 5:15 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:11 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
| Yeah, if you couldn't have fixed it I would've had to keep going through it until I did the usercp_register section ok. That would've took me forever and a day to do so cheers 8) |
|
|
 |
 |
| Back to Top |
|
|
 | Re: profile problem on my forums (danceairwaves.net) |  |
Posted: 07/21/2007 12:54 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:11 AM
Location: St Pete, FL
|

|
|
|
|
 |
We need to figure out why your site is displaying blank pages rather than error messages whenever something is wrong. There must be a debug flag turned off somewhere to suppress error messages...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: profile problem on my forums (danceairwaves.net) |  |
Posted: 07/21/2007 2:41 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:11 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
i just found this in the php.ini file
| Code:
|
[Debugger]
debugger.host = localhost
debugger.port = 7869
debugger.enabled = False
|
shall i set it to "True" or only have it set to True when debugging...  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: profile problem on my forums (danceairwaves.net) |  |
Posted: 07/21/2007 2:59 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:11 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, go ahead and set it to true. It would always be nice to know the error message whenver there is a problem. I don't think a blank page is a viable alternative, even in a live environment...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: profile problem on my forums (danceairwaves.net) |  |
Posted: 07/21/2007 3:06 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:11 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
I think its just set to OFF as default for security just in case and error gives of some important code or something.
All new to me though, i’ll just turn it ON  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: profile problem on my forums (danceairwaves.net) |  |
Posted: 07/21/2007 3:11 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:11 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Done. I've set it to TRUE cheers  |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|