Page 1 of 1

Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 7:21 pm
Author: SteveRobWhatever
Here are some of the issues currently on my site that need to be fixed:
  • Error when people try to register. Tried to install the "Log IP on Registration" and since then something has been wrong.

    [strike]
  • Numerous issues with the site template. Many of the ACP sections are unusable because of errors.[/strike] [Solved 04/16/06]
  • Members are having problems staying logged in. [strike]The "remember me" box is missing when you login. [/strike] [Partially Solved 04/16/06]
  • Errors still appearing in the RSS news feed when I go to feedvalidator.org to validate my feed.
  • [strike]Getting error messages from time to time in the forums.[/strike] [Solved 04/16/06]

PostPosted: Sat Apr 15, 2006 7:23 pm
Author: SteveRobWhatever
Error when people try to register. Tried to install the "Log IP on Registration" and since then something has been wrong.

When a new member registers on the site they are getting this message:

[align=center:70prbmu6]"Could not insert reg IP data into users table"[/align:70prbmu6]

I had to setup this page because of it:

http://gridironfans.com/portal.php?page=101

Re: Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 7:37 pm
Author: SteveRobWhatever
Numerous issues with the site template. Many of the ACP sections are unusable because of errors.

Here are some examples (click on the thumbnail to enlarge)

ACP/User Admin/Users Inactive
[url=http][flash=,:29ytk1ii]http://img215.imageshack.us/img215/1217/usersinactive3tn.th.jpg[/flash:29ytk1ii][/url]

ACP/Styles Admin/Style select manage
[url=http][flash=,:29ytk1ii]http://img20.imageshack.us/img20/8431/styleselectmanage1fl.th.jpg[/flash:29ytk1ii][/url]

ACP/General Admin/HTTP Referers Title
[url=http][flash=,:29ytk1ii]http://img20.imageshack.us/img20/8642/httprefererstitle3nt.th.jpg[/flash:29ytk1ii][/url]

PostPosted: Sat Apr 15, 2006 7:39 pm
Author: SteveRobWhatever
Members are having problems staying logged in. The "remember me" box is missing when you login.

Here is a screenshot of the login screen with the "remember me" box missing
[url=http][flash=,:8pqc1wwq]http://img100.imageshack.us/img100/2897/login3ky.th.jpg[/flash:8pqc1wwq][/url]

PostPosted: Sat Apr 15, 2006 7:43 pm
Author: SteveRobWhatever
Errors still appearing in the RSS news feed when I go to feedvalidator.org to validate my feed.

This is the error that keeps coming up:
[url=http][flash=,:cic50328]http://img110.imageshack.us/img110/9764/rsserror0do.th.jpg[/flash:cic50328][/url]

PostPosted: Sat Apr 15, 2006 7:54 pm
Author: SteveRobWhatever
Getting error messages from time to time in the forums.

Here are some of the error messages that have come up from time to time for myself and some members:[code]Warning][code]Critical Error! message_die() was called multiple times. Error #1 Couldn't obtain acronyms data  Line ][code]Warning][code]Template->loadfile()][code]Warning][code]Warning][code]Warning][code]DEBUG MODE  SQL Error ]

Re: Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 8:03 pm
Author: GanBei
Members are having problems staying logged in. The "remember me" box is missing when you login.

DONE

Some templates errors resolved..

Some of the above db errors resolved..

PostPosted: Sat Apr 15, 2006 8:06 pm
Author: SteveRobWhatever
The box is there but the issue with the cookies remains. I close out my browser while still logged in and when I re-open my browser I still have to login again. Others are having problems where they are getting logged out in the middle of doing any action on the site like posting.

Re: Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 8:06 pm
Author: Helter
for error #1 did you run this query viw phpmyadmin?

ALTER TABLE `phpbb2_users`
ADD `user_reg_ip` TEXT NULL,
ADD `user_reg_host` TEXT NULL;


Template->loadfile(): No files found for handle overall_footer


this is a very common error that is due to a slow page load. It can be caused by anything form a server hickup to a lag spike, and unless im mistaken it is nothing to worry about unless it is a regular occurence

PostPosted: Sat Apr 15, 2006 8:08 pm
Author: SteveRobWhatever
Here's the thing...I tried to install the Log Ip on Registration mod and deleted all the changes I did to the files. I ran the SQL query I needed to when installing the mod and now am still having the issue.

Re: Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 8:11 pm
Author: Helter
i just dl'd the mod. Ill look at it, but my guess is that you still have a file somewhere with these edits
have you deleted the template cache in eXreme Styles/manage cache?

PostPosted: Sat Apr 15, 2006 8:13 pm
Author: SteveRobWhatever
See? I stink at the technical side of things. I can make a forum active though.

Re: Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 8:30 pm
Author: Helter
did you use Methos's Modified version?

PostPosted: Sat Apr 15, 2006 8:34 pm
Author: SteveRobWhatever
No, I'll give it a shot. Thanks for pointing me in a new direction!

Re: Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 8:46 pm
Author: Helter
I just installed it and it went sooth, but this find code

// insert user + start transaction
$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);
}


is formatted a little different. Try a few different partial finds, and youll find it. It IS there <img>

Re: Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 8:57 pm
Author: GanBei
ACP/Styles Admin/Style select manage

Since eXtreme Styles is installed you need to manage the style thru ACP | eXtreme Styles to manage your style..

Re: Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 8:59 pm
Author: GanBei
ACP/General Admin/HTTP Referers Title

You are missing language keys.. I'll make the changes..

Re: Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 9:05 pm
Author: GanBei
ACP/User Admin/Users Inactive

Once again, the related language keys were missing.. They are now added..

PostPosted: Sat Apr 15, 2006 9:10 pm
Author: SteveRobWhatever
WOW. Thank you so much!

PostPosted: Sat Apr 15, 2006 9:21 pm
Author: Helter
"SteveRobWhatever";p="1816" wrote:WOW. Thank you so much!


1 down... <img>

Re: Issues plaguing GridironFans.com

PostPosted: Sat Apr 15, 2006 9:29 pm
Author: Helter
can you open includes/page header and see if this line exists?


//phpBBSecurity_Cookies();

PostPosted: Sun Apr 23, 2006 4:50 pm
Author: SteveRobWhatever
Update on the site issues:
  • Error when people try to register. Tried to install the "Log IP on Registration" and since then something has been wrong.

    [strike]
  • Numerous issues with the site template. Many of the ACP sections are unusable because of errors.[/strike] [Solved 04/16/06]
  • Members are having problems staying logged in. [strike]The "remember me" box is missing when you login. [/strike] [Partially Solved 04/16/06]
  • Errors still appearing in the RSS news feed when I go to feedvalidator.org to validate my feed.
  • [strike]Getting error messages from time to time in the forums.[/strike] [Solved 04/16/06]
I added a thread for an issue I am having with the "Topics Anywhere" MOD]Click here[/url].
"HelterSkelter";p="1820" wrote:can you open includes/page header and see if this line exists?


//phpBBSecurity_Cookies();
I did and yes, it's in there.
Code: Select all
<php> $portal_config['md_cache_write_control'],         'readControl' => $portal_config['md_cache_read_control'],         'readControlType' => $portal_config['md_cache_read_type'],         'fileNameProtection' => $portal_config['md_cache_filename_protect'],         'automaticSerialization' => $portal_config['md_cache_serialize']     );     $var_cache = new Cache_Lite($options);     define('PORTAL_INIT', TRUE);}  //-- mod : profile cp ------------------------------------------------------------------------------//-- addinclude_once($phpbb_root_path . 'profilcp/functions_profile.' . $phpEx);//-- fin mod : profile cp --------------------------------------------------------------------------  // // gzip_compression // $do_gzip_compress = FALSE; if($board_config['gzip_compress']) {    $phpver = phpversion();      if($phpver >= "4.0.4pl1")       {          if(extension_loaded("zlib"))       {    if (headers_sent() != TRUE)       {          $gz_possible = isset($HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"]) && eregi("gzip, deflate",$HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"]);          if ($gz_possible) ob_start("ob_gzhandler");       }    }       }          else if($phpver > "4.0")       {          if(strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip'))          {             if(extension_loaded("zlib"))          {             $do_gzip_compress = TRUE;             ob_start();             ob_implicit_flush(0);               header("Content-Encoding: gzip");          }       }    } }    //// Smartor's Visit Counter MOD//$visit_counter=$board_config['visit_counter'];$visit_counter++;$sql = "UPDATE " . CONFIG_TABLE . "         SET config_value = '" . $visit_counter . "'         WHERE config_name = 'visit_counter'";if( !($result = $db->sql_query($sql)) ){     message_die(GENERAL_ERROR, 'Could not update counter information', '', __LINE__, __FILE__, $sql);}// ------------------------------------////// Parse and show the overall header.//$template->set_filenames(array(     'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl'));  //// Generate logged in/logged out status//if ( $userdata['session_logged_in'] ){     $u_login_logout = 'login.'.$phpEx.'?logout=true&sid=' . $userdata['session_id'];     $l_login_logout = $lang['Logout'] . ' [ ' . $userdata['username'] . ' ]';}else{     $u_login_logout = 'login.'.$phpEx;     $l_login_logout = $lang['Login'];}  //-- mod : today at   yesterday at ------------------------------------------------------------------------ //-- add //-- mod : keep unread ----------------------------------------------------------------------------- //-- delete // $s_last_visit = ( $userdata['session_logged_in'] ) ? create_date($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']) : ''; //-- add $s_last_visit = create_date_day($board_config['default_dateformat'], $userdata['user_lastvisit'], $board_config['board_timezone']); //-- fin mod : keep unread ------ //-- end mod : today at   yesterday at ------------------------------------------------------------------------    //// Get basic (usernames + totals) online// situation//$logged_visible_online = 0;$logged_hidden_online = 0;$guests_online = 0;$online_userlist = '';$l_online_users = '';  if (defined('SHOW_ONLINE')){       $user_forum_sql = ( !empty($forum_id) ) ? "AND s.session_page = " . intval($forum_id) : '';     //-- mod : profile cp ------------------------------------------------------------------------------//-- delete//   $sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip//-- add     $sql = "SELECT u.*, s.session_logged_in, s.session_time, s.session_page, s.session_ip         FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s         WHERE u.user_id = s.session_user_id             AND s.session_time >= ".( time() - 300 ) . "             $user_forum_sql         ORDER BY u.username ASC, s.session_ip ASC";     if( !($result = $db->sql_query($sql)) )     {         message_die(GENERAL_ERROR, 'Could not obtain user/online information', '', __LINE__, __FILE__, $sql);     }       $userlist_ary = array();     $userlist_visible = array();       $prev_user_id = 0;     $prev_user_ip = $prev_session_ip = '';       //-- mod : profile cp ------------------------------------------------------------------------------//-- delete//   while( $row = $db->sql_fetchrow($result) )//   {//       // User is logged in and therefor not a guest//       if ( $row['session_logged_in'] )//       {//           // Skip multiple sessions for one user//           if ( $row['user_id'] != $prev_user_id )//           {//               $style_color = '';//               if ( $row['user_level'] == ADMIN )//               {//                   $row['username'] = '<b>' . $row['username'] . '</b>';//                   $style_color = 'style="color:#' . $theme['fontcolor3'] . '"';//               }//               else if ( $row['user_level'] == MOD )//               {//                   $row['username'] = '<b>' . $row['username'] . '</b>';//                   $style_color = 'style="color:#' . $theme['fontcolor2'] . '"';//               }////               if ( $row['user_allow_viewonline'] )//               {//                   $user_online_link = '<a>' . $row['username'] . '</a>';//                   $logged_visible_online++;//               }//               else//               {//                   $user_online_link = '<a><i>' . $row['username'] . '</i></a>';//                   $logged_hidden_online++;//               }////               if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )//               {//                   $online_userlist .= ( $online_userlist != '' ) ? ', ' . $user_online_link : $user_online_link;//               }//           }////           $prev_user_id = $row['user_id'];//       }//       else//       {//           // Skip multiple sessions for one user//           if ( $row['session_ip'] != $prev_session_ip )//           {//               $guests_online++;//           }//       }////       $prev_session_ip = $row['session_ip'];//   }//   $db->sql_freeresult($result);//-- add     $connected = array();     $user_ids = array();     while ($row = $db->sql_fetchrow($result) )     {         // User is logged in and therefor not a guest         if ( $row['session_logged_in'] )         {             if ( !in_array($row['user_id'], $user_ids) )             {                   $row['style'] = ' class="' . get_user_level_class($row['user_level'], 'gen', $row) . '"';                 $connected[] = $row;                 $user_ids[] = $row['user_id'];             }         }         else         {             // Skip multiple sessions for one user             if ( $row['session_ip'] != $prev_session_ip )             {                 $row['style'] = '';                 $connected[] = $row;             }         }         $prev_session_ip = $row['session_ip'];     }     $db->sql_freeresult($result);       // read buddy list     $buddys = array();     if (count($user_ids))     {         $s_user_ids = implode(', ', $user_ids);           // get base info         $sql = "SELECT * FROM " . BUDDYS_TABLE . " WHERE user_id=" . $userdata['user_id'] . " and buddy_id in ($s_user_ids)";         if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, "Could not obtain buddys information.", '', __LINE__, __FILE__, $sql);         while ( $row = $db->sql_fetchrow($result) )         {             $buddys[ $row['buddy_id'] ]['buddy_ignore'] = $row['buddy_ignore'];             $buddys[ $row['buddy_id'] ]['buddy_my_friend'] = !$row['buddy_ignore'];             $buddys[ $row['buddy_id'] ]['buddy_friend'] = false;             $buddys[ $row['buddy_id'] ]['buddy_visible'] = false;         }           // check if in the topic author's friend list and "always visible" status he granted         $sql = "SELECT * FROM " . BUDDYS_TABLE . " WHERE buddy_id=" . $userdata['user_id'] . " and user_id in ($s_user_ids)";         if ( !($result = $db->sql_query($sql)) ) message_die(GENERAL_ERROR, "Could not obtain buddys information.", '', __LINE__, __FILE__, $sql);         while ( $row = $db->sql_fetchrow($result) )         {             if ( !isset($buddys[ $row['user_id'] ]) ) $buddys[ $row['user_id'] ]['buddy_ignore'] = false;             if ( !isset($buddys[ $row['user_id'] ]) ) $buddys[ $row['user_id'] ]['buddy_my_friend'] = false;             $buddys[ $row['user_id'] ]['buddy_friend'] = !$row['buddy_ignore'];             $buddys[ $row['user_id'] ]['buddy_visible'] = $row['buddy_visible'];         }         $db->sql_freeresult($result);     }       // get visible/not visible status     $user_id = $userdata['user_id'];     $user_level = $userdata['user_level'];     $is_admin = is_admin($userdata);       for ($i=0; $i </i> $board_config['record_online_users'])     {         $board_config['record_online_users'] = $total_online_users;         $board_config['record_online_date'] = time();           $sql = "UPDATE " . CONFIG_TABLE . "             SET config_value = '$total_online_users'             WHERE config_name = 'record_online_users'";         if ( !$db->sql_query($sql) )         {             message_die(GENERAL_ERROR, 'Could not update online user record (nr of users)', '', __LINE__, __FILE__, $sql);         }           $sql = "UPDATE " . CONFIG_TABLE . "             SET config_value = '" . $board_config['record_online_date'] . "'             WHERE config_name = 'record_online_date'";         if ( !$db->sql_query($sql) )         {             message_die(GENERAL_ERROR, 'Could not update online user record (date)', '', __LINE__, __FILE__, $sql);         }     }       if ( $total_online_users == 0 )     {         $l_t_user_s = $lang['Online_users_zero_total'];     }     else if ( $total_online_users == 1 )     {         $l_t_user_s = $lang['Online_user_total'];     }     else     {         $l_t_user_s = $lang['Online_users_total'];     }       if ( $logged_visible_online == 0 )     {         $l_r_user_s = $lang['Reg_users_zero_total'];     }     else if ( $logged_visible_online == 1 )     {         $l_r_user_s = $lang['Reg_user_total'];     }     else     {         $l_r_user_s = $lang['Reg_users_total'];     }       if ( $logged_hidden_online == 0 )     {         $l_h_user_s = $lang['Hidden_users_zero_total'];     }     else if ( $logged_hidden_online == 1 )     {         $l_h_user_s = $lang['Hidden_user_total'];     }     else     {         $l_h_user_s = $lang['Hidden_users_total'];     }       if ( $guests_online == 0 )     {         $l_g_user_s = $lang['Guest_users_zero_total'];     }     else if ( $guests_online == 1 )     {         $l_g_user_s = $lang['Guest_user_total'];     }     else     {         $l_g_user_s = $lang['Guest_users_total'];     }       $l_online_users = sprintf($l_t_user_s, $total_online_users);     $l_online_users .= sprintf($l_r_user_s, $logged_visible_online);     $l_online_users .= sprintf($l_h_user_s, $logged_hidden_online);     $l_online_users .= sprintf($l_g_user_s, $guests_online);}  //// Obtain number of new private messages// if user is logged in//if ( ($userdata['session_logged_in']) && (empty($gen_simple_header)) ){     if ( $userdata['user_new_privmsg'] )     {         $l_message_new = ( $userdata['user_new_privmsg'] == 1 ) ? $lang['New_pm'] : $lang['New_pms'];         $l_privmsgs_text = sprintf($l_message_new, $userdata['user_new_privmsg']);           if ( $userdata['user_last_privmsg'] > $userdata['user_lastvisit'] )         {             $sql = "UPDATE " . USERS_TABLE . "                 SET user_last_privmsg = " . $userdata['user_lastvisit'] . "                 WHERE user_id = " . $userdata['user_id'];             if ( !$db->sql_query($sql) )             {                 message_die(GENERAL_ERROR, 'Could not update private message new/read time for user', '', __LINE__, __FILE__, $sql);             }               $s_privmsg_new = 1;             $icon_pm = $images['pm_new_msg'];         }         else         {             $s_privmsg_new = 0;             $icon_pm = $images['pm_new_msg'];         }     }     else     {         $l_privmsgs_text = $lang['No_new_pm'];           $s_privmsg_new = 0;         $icon_pm = $images['pm_no_new_msg'];     }       if ( $userdata['user_unread_privmsg'] )     {         $l_message_unread = ( $userdata['user_unread_privmsg'] == 1 ) ? $lang['Unread_pm'] : $lang['Unread_pms'];         $l_privmsgs_text_unread = sprintf($l_message_unread, $userdata['user_unread_privmsg']);     }     else     {         $l_privmsgs_text_unread = $lang['No_unread_pm'];     }}else{     $icon_pm = $images['pm_no_new_msg'];     $l_privmsgs_text = $lang['Login_check_pm'];     $l_privmsgs_text_unread = '';     $s_privmsg_new = 0;}  //// Generate HTML required for Mozilla Navigation bar//if (!isset($nav_links)){     $nav_links = array();}  $nav_links_html = '';$nav_link_proto = '<link>' . "n";while( list($nav_item, $nav_array) = @each($nav_links) ){     if ( !empty($nav_array['url']) )     {         $nav_links_html .= sprintf($nav_link_proto, $nav_item, append_sid($nav_array['url']), $nav_array['title']);     }     else     {         // We have a nested array, used for items like <link> that can occur more than once.         while( list(,$nested_array) = each($nav_array) )         {             $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']);         }     }}    // Format Timezone. We are unable to use array_pop here, because of PHP3 compatibility$l_timezone = explode('.', $board_config['board_timezone']);$l_timezone = (count($l_timezone) > 1 && $l_timezone[count($l_timezone)-1] != 0) ? $lang[sprintf('%.1f', $board_config['board_timezone'])] : $lang[number_format($board_config['board_timezone'])];  // Start add - Complete banner MOD$time_now=time();$hour_now=create_date('Hi',$time_now,$board_config['board_timezone']);$date_now=create_date('Ymd',$time_now,$board_config['board_timezone']);$week_now=create_date('w',$time_now,$board_config['board_timezone']);$sql_level= ($userdata['user_id']==ANONYMOUS) ? ANONYMOUS : (($userdata['user_level']==ADMIN) ? MOD : (($userdata['user_level']==MOD) ? ADMIN : $userdata['user_level']));  $banners=array();$sql = "SELECT DISTINCT banner_id, banner_name, banner_spot, banner_description, banner_forum, banner_type, banner_width, banner_height, banner_filter FROM ".BANNERS_TABLE ."     WHERE banner_active     AND IF(banner_level_type,IF(banner_level_type=1,".intval($sql_level)."<banner_level>=banner_level,".intval($sql_level)."<>banner_level)),banner_level=".intval($sql_level).")     AND (banner_timetype=0     OR (( $hour_now BETWEEN time_begin AND time_end) AND ((banner_timetype=2     OR (( $week_now BETWEEN date_begin AND date_end) AND banner_timetype=4)     OR (( $date_now BETWEEN date_begin AND date_end) AND banner_timetype=6)     )))) ORDER BY banner_spot,banner_weigth*SUBSTRING(RAND(),6,2) DESC";if ( !($result = $db->sql_query($sql)) ){     message_die(GENERAL_ERROR, "Couldn't get banners data", "", __LINE__, __FILE__, $sql);}  $banners = $db->sql_fetchrowset($result);$db->sql_freeresult($result);  $banner_count = count($banners);  for ($i = 0; $i < $banner_count; $i++){     $cookie_name = $board_config['cookie_name'] . '_b_' . $banners[$i]['banner_id'];     if ( !($HTTP_COOKIE_VARS[$cookie_name] && $banners[$i]['banner_filter']) )     {         $banner_spot=$banners[$i]['banner_spot'];         if ($banner_spot<last_spot>assign_block_vars('switch_banner_'.$banner_spot, array() );             switch ($banners[$i]['banner_type'])             {                 case 6 :                     // swf file                     $template->assign_vars(array('BANNER_'.$banner_spot.'_IMG' => '<object><param><param><embed><noembed><a>'.$banners[$i]['banner_description'].'</a></noembed></object>'));                     break;                 case 4 :                     // custom code                     $template->assign_var('BANNER_'.$banner_spot.'_IMG', $banners[$i]['banner_name'] );                     break;                 case 2 :                     // Text link                     $template->assign_var('BANNER_'.$banner_spot.'_IMG', '<a>'.$banners[$i]['banner_name'].'</a>');                     break;                 case 0 :                 default:                     $template->assign_var('BANNER_'.$banner_spot.'_IMG', '<a><img></a>');             }             $banner_show_list.= ', '.$banners[$i]['banner_id'];         }         $last_spot = ($banners[$i]['banner_forum']==$forum_id || empty($banners[$i]['banner_forum'])) ? $banner_spot : $last_spot;     }}// End add - Complete banner MOD  //// The following assigns all _common_ variables that may be used at any point// in a template.//$template->assign_vars(array(     'SITENAME' => $board_config['sitename'],     'SITE_DESCRIPTION' => $board_config['site_desc'],     'PAGE_TITLE' => $page_title,     'LAST_VISIT_DATE' => sprintf($lang['You_last_visit'], $s_last_visit),     'CURRENT_TIME' => sprintf($lang['Current_time'], create_date($board_config['default_dateformat'], time(), $board_config['board_timezone'])),     'TOTAL_USERS_ONLINE' => $l_online_users,     'LOGGED_IN_USER_LIST' => $online_userlist,     'RECORD_USERS' => sprintf($lang['Record_online_users'], $board_config['record_online_users'], create_date($board_config['default_dateformat'], $board_config['record_online_date'], $board_config['board_timezone'])),     'PRIVATE_MESSAGE_INFO' => $l_privmsgs_text,     'PRIVATE_MESSAGE_INFO_UNREAD' => $l_privmsgs_text_unread,     'PRIVATE_MESSAGE_NEW_FLAG' => $s_privmsg_new,       'PRIVMSG_IMG' => $icon_pm,       'L_USERNAME' => $lang['Username'],     'L_PASSWORD' => $lang['Password'],     'L_LOGIN_LOGOUT' => $l_login_logout,     'L_LOGIN' => $lang['Login'],     'L_LOG_ME_IN' => $lang['Log_me_in'],     'L_AUTO_LOGIN' => $lang['Log_me_in'],     'L_INDEX' => sprintf($lang['Forum_Index'], $board_config['sitename']),//   'L_REGISTER' => $lang['Register'],//   'L_PROFILE' => $lang['Profile'],//   'L_SEARCH' => $lang['Search'],//   'L_PRIVATEMSGS' => $lang['Private_Messages'],     'L_WHO_IS_ONLINE' => $lang['Who_is_Online'],//   'L_MEMBERLIST' => $lang['Memberlist'],//   'L_FAQ' => $lang['FAQ'],//   'L_USERGROUPS' => $lang['Usergroups'],     'L_SEARCH_NEW' => $lang['Search_new'],     'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'],     'L_SEARCH_SELF' => $lang['Search_your_posts'],     //-- mod : profile cp ------------------------------------------------------------------------------//-- delete//   'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span>', '</span>'),//   'L_WHOSONLINE_MOD' => sprintf($lang['Mod_online_color'], '<span>', '</span>'),//-- add     'L_WHOSONLINE' => get_users_online_color(),//-- fin mod : profile cp --------------------------------------------------------------------------         'U_SEARCH_UNANSWERED' => append_sid('search.'.$phpEx.'?search_id=unanswered'),     'U_SEARCH_SELF' => append_sid('search.'.$phpEx.'?search_id=egosearch'),     'U_SEARCH_NEW' => append_sid('search.'.$phpEx.'?search_id=newposts'),     'U_INDEX' => append_sid('index.'.$phpEx),     'U_REGISTER' => append_sid('profile.'.$phpEx.'?mode=register'),     'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'),     'U_PRIVATEMSGS' => append_sid('privmsg.'.$phpEx.'?folder=inbox'),     'U_PRIVATEMSGS_POPUP' => append_sid('privmsg.'.$phpEx.'?mode=newpm'),     'U_SEARCH' => append_sid('search.'.$phpEx),     // Referral MOD for PCP     'U_MEMBERLIST' => append_sid('memberlist.'.$phpEx),     'U_DIGESTS' => append_sid('digests.'.$phpEx),     'U_MODCP' => append_sid('modcp.'.$phpEx),     'U_FAQ' => append_sid('faq.'.$phpEx),     'U_VIEWONLINE' => append_sid('viewonline.'.$phpEx),     'U_LOGIN_LOGOUT' => append_sid($u_login_logout),     'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),#======================================================================= |#==== Start: == Activity Mod Plus ====================================== |#==== v1.1.0 =========================================================== |#====    'L_WHOSONLINE_GAMES'   => '<a><font>'. $board_config['ina_online_list_text'] .'</font></a>',    'U_ACTIVITY'          => append_sid('activity.'.$phpEx),    'L_ACTIVITY'          => $lang['Activity'],   #====#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |#==== End: ==== Activity Mod Plus ====================================== |   #======================================================================= |         'S_CONTENT_DIRECTION' => $lang['DIRECTION'],     'S_CONTENT_ENCODING' => $lang['ENCODING'],     'S_CONTENT_DIR_LEFT' => $lang['LEFT'],     'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'],     'S_TIMEZONE' => sprintf($lang['All_times'], $l_timezone),     'S_LOGIN_ACTION' => append_sid('login.'.$phpEx),       'T_HEAD_STYLESHEET' => $theme['head_stylesheet'],     'T_BODY_BACKGROUND' => $theme['body_background'],     'T_BODY_BGCOLOR' => '#'.$theme['body_bgcolor'],     'T_BODY_TEXT' => '#'.$theme['body_text'],     'T_BODY_LINK' => '#'.$theme['body_link'],     'T_BODY_VLINK' => '#'.$theme['body_vlink'],     'T_BODY_ALINK' => '#'.$theme['body_alink'],     'T_BODY_HLINK' => '#'.$theme['body_hlink'],     'T_TR_COLOR1' => '#'.$theme['tr_color1'],     'T_TR_COLOR2' => '#'.$theme['tr_color2'],     'T_TR_COLOR3' => '#'.$theme['tr_color3'],     'T_TR_CLASS1' => $theme['tr_class1'],     'T_TR_CLASS2' => $theme['tr_class2'],     'T_TR_CLASS3' => $theme['tr_class3'],     'T_TH_COLOR1' => '#'.$theme['th_color1'],     'T_TH_COLOR2' => '#'.$theme['th_color2'],     'T_TH_COLOR3' => '#'.$theme['th_color3'],     'T_TH_CLASS1' => $theme['th_class1'],     'T_TH_CLASS2' => $theme['th_class2'],     'T_TH_CLASS3' => $theme['th_class3'],     'T_TD_COLOR1' => '#'.$theme['td_color1'],     'T_TD_COLOR2' => '#'.$theme['td_color2'],     'T_TD_COLOR3' => '#'.$theme['td_color3'],     'T_TD_CLASS1' => $theme['td_class1'],     'T_TD_CLASS2' => $theme['td_class2'],     'T_TD_CLASS3' => $theme['td_class3'],     'T_FONTFACE1' => $theme['fontface1'],     'T_FONTFACE2' => $theme['fontface2'],     'T_FONTFACE3' => $theme['fontface3'],     'T_FONTSIZE1' => $theme['fontsize1'],     'T_FONTSIZE2' => $theme['fontsize2'],     'T_FONTSIZE3' => $theme['fontsize3'],     'T_FONTCOLOR1' => '#'.$theme['fontcolor1'],     'T_FONTCOLOR2' => '#'.$theme['fontcolor2'],     'T_FONTCOLOR3' => '#'.$theme['fontcolor3'],     'T_SPAN_CLASS1' => $theme['span_class1'],     'T_SPAN_CLASS2' => $theme['span_class2'],     'T_SPAN_CLASS3' => $theme['span_class3'],       'NAV_LINKS' => $nav_links_html));  //// Login box?//if ( !$userdata['session_logged_in'] ){     $template->assign_block_vars('switch_user_logged_out', array());}else{     $template->assign_block_vars('switch_user_logged_in', array());       if ( !empty($userdata['user_popup_pm']) )     {         $template->assign_block_vars('switch_enable_pm_popup', array());     }}  // Add no-cache control for cookies if they are set//$c_no_cache = (isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_sid']) || isset($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_data'])) ? 'no-cache="set-cookie", ' : '';  // Work around for "current" Apache 2 + PHP module which seems to not// cope with private cache control settingif (!empty($HTTP_SERVER_VARS['SERVER_SOFTWARE']) && strstr($HTTP_SERVER_VARS['SERVER_SOFTWARE'], 'Apache/2')){     header ('Cache-Control: no-cache, pre-check=0, post-check=0');}else{     header ('Cache-Control: private, pre-check=0, post-check=0, max-age=0');}header ('Expires: 0');header ('Pragma: no-cache');  //-- mod : profile cp ------------------------------------------------------------------------------//-- addif ( $userdata['session_logged_in'] ){     if (empty($gen_simple_header))     {         $today_year = date('Y', cal_date(time(),$board_config['board_timezone']));         $today_month = date('m', cal_date(time(),$board_config['board_timezone']));         $today_day = date('d', cal_date(time(),$board_config['board_timezone']));         $today = mktime( 0, 0, 1, $today_month, $today_day, $today_year );           $birthday_year = $today_year;         $birthday_month = intval(substr($userdata['user_birthday'], 4, 2));         $birthday_day = intval(substr($userdata['user_birthday'], 6, 2 ));         $birthday = mktime( 0, 0, 1, $birthday_month, $birthday_day, $birthday_year );           $last_year = date('Y', $userdata['user_last_birthday']);         $last_month = date('m', $userdata['user_last_birthday']);         $last_day = date('d', $userdata['user_last_birthday']);         $last = (intval($userdata['user_last_birthday']) > 0 ) ? mktime( 0, 0, 1, $last_month, $last_day, $last_year ) : 0;           // one week limit         if ( ($last <birthday>= $birthday) && ($today <40>sql_query($sql) )             {                 message_die(GENERAL_ERROR, 'Could not update user information', '', __LINE__, __FILE__, $sql);             }             $template->assign_block_vars('birthday_popup', array(                 'U_BIRTHDAY_POPUP' => append_sid('profile_birthday.'.$phpEx),                 )             );         }     }}  // birthday today listfunction get_birthday_list( $time ){     global $db, $phpbb_root_path, $phpEx, $userdata, $admin_level, $level_prior;       $res = '';       // no guest here, sorry ;)     if ( ($userdata['user_id'] == ANONYMOUS) || !$userdata['session_logged_in']) return $res;       $today = date("md", $time);     $user_id = $userdata['user_id'];     $sql = "SELECT u.*,                     (CASE WHEN i.buddy_ignore = 1 THEN 1 ELSE 0 END) AS user_ignore,                     (CASE WHEN b.buddy_ignore = 0 THEN 1 ELSE 0 END) AS user_friend,                     (CASE WHEN b.buddy_visible = 1 THEN 1 ELSE 0 END) AS user_visible                 FROM ((" . USERS_TABLE . " AS u                 LEFT JOIN " . BUDDYS_TABLE . " AS b  ON b.user_id=u.user_id AND b.buddy_id=$user_id)                 LEFT JOIN " . BUDDYS_TABLE . " AS i ON i.user_id=$user_id AND i.buddy_id=u.user_id)                 WHERE u.user_id <ANONYMOUS>sql_query($sql) )     {         message_die(GENERAL_ERROR, 'Could not read user table to get birthday today info', '', __LINE__, __FILE__, $sql);     }     while ($row = $db->sql_fetchrow($result))     {         // get user relational status         $ignore  = $row['user_ignore'];         $friend  = $row['user_friend'];         $always_visible = $row['user_visible'];           // get the status of each info         $real_display = ( !$ignore && $userdata['user_allow_real'] && $row['user_allow_real'] && ( ($row['user_viewreal'] == YES) || ( ($row['user_viewreal'] == FRIEND_ONLY) && $friend ) ) );           // take care of admin status         if ( is_admin($userdata) || ($row['user_id'] == $userdata['user_id']) ) $real_display = true;           if ($real_display)         {             $txtclass = get_user_level_class($row['user_level'], 'genmed', $row);#======================================================================= |#==== Start: == Activity Mod Plus ====================================== |#==== v1.1.0 =========================================================== |#====             if ($row['user_session_page'] == PAGE_ACTIVITY || $row['user_session_page'] == PAGE_PLAYING_GAMES)                {             $row['username'] = '<b>'. $row['username'] .'</b>';             $style_color = 'style="color:#'. str_replace('#', '', $board_config['ina_online_list_color']) .'"';                }#====#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |#==== End: ==== Activity Mod Plus ====================================== |   #======================================================================= |                       if ($row['user_allow_viewonline'] != YES) $row['username'] = '<i>' . $row['username'] . '</i>';             $temp_url = append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']);             $row['username'] = '<a>' . $row['username'] . '</a>';               // add to the user list             $res .= ( $res != '' ) ? ', ' : '';             $res .= $row['username'];         }     }     return $res;}  // send happy birthday listif (defined('SHOW_ONLINE') && $userdata['session_logged_in']){     $birthday_fellows = get_birthday_list(cal_date(time(),$board_config['board_timezone']));     if ( !empty($birthday_fellows) )     {         $template->assign_block_vars('switch_happy_birthday', array());     }     $template->assign_vars(array(         'HAPPY_BIRTHDAY_IMG' => $images['Happy_birthday'],         'L_HAPPY_BIRTHDAY' => $lang['Happy_birthday'],         'HAPPY_BIRTHDAY_FELLOWS' => $birthday_fellows,         )     );}//-- fin mod : profile cp --------------------------------------------------------------------------    //-- fin mod : profile cp --------------------------------------------------------------------------//-- mod : categories hierarchy --------------------------------------------------------------------//-- add// get the nav sentence$nav_key = '';if (isset($HTTP_POST_VARS[POST_CAT_URL]) || isset($HTTP_GET_VARS[POST_CAT_URL])){     $nav_key = POST_CAT_URL . ((isset($HTTP_POST_VARS[POST_CAT_URL])) ? intval($HTTP_POST_VARS[POST_CAT_URL]) : intval($HTTP_GET_VARS[POST_CAT_URL]));}if (isset($HTTP_POST_VARS[POST_FORUM_URL]) || isset($HTTP_GET_VARS[POST_FORUM_URL])){     $nav_key = POST_FORUM_URL . ((isset($HTTP_POST_VARS[POST_FORUM_URL])) ? intval($HTTP_POST_VARS[POST_FORUM_URL]) : intval($HTTP_GET_VARS[POST_FORUM_URL]));}if (isset($HTTP_POST_VARS[POST_TOPIC_URL]) || isset($HTTP_GET_VARS[POST_TOPIC_URL])){     $nav_key = POST_TOPIC_URL . ((isset($HTTP_POST_VARS[POST_TOPIC_URL])) ? intval($HTTP_POST_VARS[POST_TOPIC_URL]) : intval($HTTP_GET_VARS[POST_TOPIC_URL]));}if (isset($HTTP_POST_VARS[POST_POST_URL]) || isset($HTTP_GET_VARS[POST_POST_URL])){     $nav_key = POST_POST_URL . ((isset($HTTP_POST_VARS[POST_POST_URL])) ? intval($HTTP_POST_VARS[POST_POST_URL]) : intval($HTTP_GET_VARS[POST_POST_URL]));}if ( empty($nav_key) && (isset($HTTP_POST_VARS['selected_id']) || isset($HTTP_GET_VARS['selected_id'])) ){    $nav_key = isset($HTTP_GET_VARS['selected_id']) ? $HTTP_GET_VARS['selected_id'] : $HTTP_POST_VARS['selected_id'];}if (empty($nav_key)) $nav_key = 'Root';$nav_cat_desc = make_cat_nav_tree($nav_key, $nav_pgm);if ($nav_cat_desc != '') $nav_cat_desc = $nav_separator . $nav_cat_desc;  // send to template$template->assign_vars(array(     'SPACER'         => $images['spacer'],     'NAV_SEPARATOR' => $nav_separator,     'NAV_CAT_DESC'   => $nav_cat_desc,     ));//-- fin mod : categories hierarchy ----------------------------------------------------------------  //-- mod : calendar --------------------------------------------------------------------------------//-- addif (!defined('IN_CALENDAR')){     if ( intval($board_config['calendar_header_cells']) > 0 )     {         include_once($phpbb_root_path . './includes/functions_calendar.' . $phpEx);         display_calendar('CALENDAR_BOX', intval($board_config['calendar_header_cells']));     }}//-- fin mod : calendar ----------------------------------------------------------------------------  //-- mod : qbar ------------------------------------------------------------------------------------//-- addinclude( $phpbb_root_path . 'includes/functions_qbar.' . $phpEx);qbar_display_qbars(empty($gen_simple_header));//-- fin mod : qbar --------------------------------------------------------------------------------  //// IM Portal blocks//if(empty($gen_simple_header)){     if(!$layout_forum_wide_flag&&$portal_config['portal_header']&&(!defined('HAS_DIED'))&&(!defined('IN_LOGIN')))     {         if($portal_config['portal_tail'])         {             $template->assign_block_vars('switch_portal_both', array());             $template->assign_var('FOOTER_WIDTH', $portal_config['footer_width']);         }         else         {             $template->assign_block_vars('switch_portal_header', array());         }         $template->set_filenames(array(             'portal_header'         => 'portal_page_header.tpl')         );         portal_parse_blocks($portal_config['default_portal'], TRUE, 'header');         $template->assign_var('HEADER_WIDTH', $portal_config['header_width']);         $template->assign_var('PORTAL_HEADER', portal_assign_var_from_handle($template, 'portal_header'));     }     else if ($portal_config['portal_tail'])     {         $template->assign_block_vars('switch_portal_tail', array());         $template->assign_var('FOOTER_WIDTH', $portal_config['footer_width']);     }}//// end of IM Portal blocks//  $template->pparse('overall_header');  #======================================================================= |#==== Start: == phpBB Security ========================================= |#==== v1.0.2 =========================================================== |#====       //phpBBSecurity_Cookies();     phpBBSecurity_FinalSet();     phpBBSecurity_DBBackup();         /* removed by PCP Extra :: force_required() below will manage this...     # Only allow them to login & view profile to update it     if ($_SERVER['PHP_SELF'] == $board_config['script_path'] .'profile.'. $phpEx)         $is_valid = TRUE;     elseif ($_SERVER['PHP_SELF'] == $board_config['script_path'] .'login.'. $phpEx)         $is_valid = TRUE;     else         $is_valid = '';             if ( (!$is_valid) && (!$gen_simple_header) )         {         # Make sure they are not a guest         if ($userdata['user_id'] != ANONYMOUS)             {             # Do the check             if (!$userdata['phpBBSecurity_answer'] || !$userdata['phpBBSecurity_question'])                 phpBBSecurity_Force();             }         }*/#====#==== Author: aUsTiN [austin@phpbb-amod.com] [http://phpbb-amod.com] === |#==== End: ==== phpBB Security ========================================= |   #======================================================================= |  ?>

PostPosted: Sun Apr 23, 2006 9:01 pm
Author: enoonsti
"SteveRobWhatever";p="2820" wrote:Members are having problems staying logged in.


This has probably already been mentioned (and so I apologize <img> ), but did you check phpbb Security's "Max Allowed Sessions" feature?

You can find it at ACP/Security/Configuration. It's usually set at 50, and so you may need to bump it up a bit if you have a lot of members.

PostPosted: Sun Apr 23, 2006 10:03 pm
Author: SteveRobWhatever
I'll look into that, thanks!

I also got this error message today when looking at the recent topics:
Warning: Cannot modify header information - headers already sent by (output started at /homepages/21/d144609245/htdocs/www.gridironfans.com/cache/tpl_gridironfans.overall_header.php:6) in /homepages/21/d144609245/htdocs/www.gridironfans.com/includes/functions.php on line 184
[url=http][flash=,:2ikipgbw]http://img164.imageshack.us/img164/6782/errorgif1pp.th.jpg[/flash:2ikipgbw][/url]

PostPosted: Sun Apr 23, 2006 11:01 pm
Author: Jason Sanborn
"enoonsti";p="2846" wrote:
"SteveRobWhatever";p="2820" wrote:Members are having problems staying logged in.


This has probably already been mentioned (and so I apologize :D

PostPosted: Mon May 01, 2006 10:55 pm
Author: SteveRobWhatever
The registration issue is really starting to become an issue. Alot of new members are not coming back and activating their accounts simply because of the confusion. Any help is appreciated.