But when I get to the index page, I keep getting this error.
Code: Select all
Fatal error: Call to undefined method user::format_dateucb() in /home/tlgimsco/domains/ogphu.co.cc/public_html/includes/functions_upcbirthdays.php on line 91
Code: Select all
Fatal error: Call to undefined method user::format_dateucb() in /home/tlgimsco/domains/ogphu.co.cc/public_html/includes/functions_upcbirthdays.php on line 91
Code: Select all
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_birthdays_ahead', '7');
Code: Select all
<br /><!-- IF BIRTHDAYS_AHEAD_LIST -->{L_BIRTHDAYS_AHEAD}: <strong>{BIRTHDAYS_AHEAD_LIST}</strong><!-- ENDIF -->
THank you.. This one worked. The table row had an initial value of 365... Deleted it and insert the above and it worked.LDM wrote:There could be a few things to try as I haven't seen that error on a fresh install before.
Double check the table is added in Database, if not, run this in there:Code: Select all
INSERT INTO phpbb_config (config_name, config_value) VALUES ('allow_birthdays_ahead', '7');
You mean this line??LDM wrote:hmm, it sounds like something server related. Can you see if the edit is at the bottom of index_body.html.
Code: Select all
<br /><!-- IF BIRTHDAYS_AHEAD_LIST -->{L_BIRTHDAYS_AHEAD}: <strong>{BIRTHDAYS_AHEAD_LIST}</strong><!-- ENDIF -->
Code: Select all
// Assign index specific vars
Code: Select all
if ($config['load_birthdays'] && $config['allow_birthdays'] && ( $config['allow_birthdays_ahead'] > 0 ) )
{
if(!function_exists('get_upcbirthdays'))
{
include_once($phpbb_root_path . 'includes/functions_upcbirthdays.' . $phpEx);
}
get_upcbirthdays();
}
Code: Select all
'allow_birthdays' => array('lang' => 'ALLOW_BIRTHDAYS', 'validate' => 'bool', 'type' => 'radio:yes_no', 'explain' => true),
Code: Select all
'allow_birthdays_ahead' => array('lang' => 'ALLOW_BIRTHDAYS_AHEAD','validate' => 'int', 'type' => 'text:3:4', 'explain' => true, 'append' => ' ' . $user->lang['DAYS']),
Code: Select all
/**
* Format user date
*/
function format_date($gmepoch, $format = false, $forcedate = false)
Code: Select all
/**
* Format user date for the Upcoming Birthday Mod
*/
function format_dateucb($date, $format = false)
{
$lang_dates = $this->lang['datetime'];
$format = (!$format) ? $this->date_format : $format;
// Short representation of month in format
if ((strpos($format, '\M') === false && strpos($format, 'M') !== false) || (strpos($format, '\r') === false && strpos($format, 'r') !== false))
{
$lang_dates['May'] = $lang_dates['May_short'];
}
unset($lang_dates['May_short']);
return strtr(@date(str_replace('|', '', $format), $date), $lang_dates);
}
Code: Select all
'BIRTHDAYS' => 'Birthdays',
Code: Select all
'BIRTHDAYS_AHEAD' => 'Users with a birthday within the next %d days',
Code: Select all
'ALLOW_BIRTHDAYS_EXPLAIN' => 'Allow birthdays to be entered and age being displayed in profiles. Please note the birthday list within the board index is controlled by a separate load setting.',
Code: Select all
'ALLOW_BIRTHDAYS_AHEAD' => 'Number of Days to display upcoming birthdays',
'ALLOW_BIRTHDAYS_AHEAD_EXPLAIN' => 'Displays the upcoming birthdays on the index page. Entering 0 or negative numbers will disable this feature.',
Code: Select all
<!-- IF S_DISPLAY_BIRTHDAY_LIST and BIRTHDAY_LIST or BIRTHDAYS_AHEAD_LIST -->
Code: Select all
{L_NO_BIRTHDAYS}<!-- ENDIF --><br /><!-- IF BIRTHDAYS_AHEAD_LIST -->{L_BIRTHDAYS_AHEAD}: <strong>{BIRTHDAYS_AHEAD_LIST}</strong><!-- ENDIF -->
Thank you so much!! I found a discrepancy in the index.php... Don't know how I got that considering the original file I got has the correct line.LDM wrote:I still think it could may be server related as haven't seen this issue before. Maybe a bug on that mod that only affects some servers or maybe a language issue?
Here are the edits for the core files so you can have a check over your files.