Hi.. i am trying to make this mod add on. i was wondering, can we use common.php language in function load_stats() ? i tried $user->lang['Jan'] $user->lang['Feb'] etc but it returns nothing. i also tried $user->setup('common') and $user->add_lang but the result still nothing. sorry if the answer is too obvious or trivial
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 111: Undefined variable: forum_id
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 114: Undefined index: Jan
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 115: Undefined index: Feb
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 116: Undefined index: Mar
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 117: Undefined index: Apr
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 118: Undefined index: May_short
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 119: Undefined index: Jun
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 120: Undefined index: Jul
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 121: Undefined index: Aug
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 122: Undefined index: Sep
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 123: Undefined index: Oct
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 124: Undefined index: Nov
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 125: Undefined index: Dec
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined variable: month_option
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 130: Undefined index: STAT_CHART
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 136: Undefined variable: day_option
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Notice: in file [ROOT]/statistics/addons/stats_chart.php on line 135: Undefined variable: now
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4678: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4680: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4681: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4682: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
ah nvm, after all this time i ve realized that i did stupid mistake. Months are located in datetime array. Yes, it is a multidimensional array. So i use $user->lang['datetime']['Jan'] instead and it works perfectly. Btw thanks Marc, you can lock this topic now
After all this time i ve realized that i did stupid mistake. Months are located in datetime array. Yes, it is a multidimensional array. So i use $user->lang['datetime']['Jan'] instead and it works perfectly. Btw thanks Marc, you can lock this topic now