error when put in this code

Download and support for PhpBB3 User Status
Locked
EliteNODDY
BBCoder II
BBCoder II
Posts: 5
Joined: 10 Aug 2011, 20:00
BBCodes: 0

error when put in this code

Post by EliteNODDY »

love this mod just found this little thing
i have added all the codes that i have to but this code

Code: Select all

// User Status
$lang = array_merge($lang, array(
   'USER_STATUS'   	 		=> 'Status',
   'USER_STATUS_BANNED'   	=> 'Banned!',
));
which i try and put in language/en/common.php

i get a white page and cant do nothing as anyone eles come over this before if so could you help plezz thanks
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

error when put in this code

Post by Stoker »

Make sure that you put it BEFORE this code and not after:

Code: Select all

?>
Board rules! No PM support
EliteNODDY
BBCoder II
BBCoder II
Posts: 5
Joined: 10 Aug 2011, 20:00
BBCodes: 0

error when put in this code

Post by EliteNODDY »

Stoker wrote:Make sure that you put it BEFORE this code and not after:

Code: Select all

?>
thats what i have done mate like it told me to do but am lost y its giving me white page all over my forum
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

error when put in this code

Post by Stoker »

Then post up the last 20 lines of your language file where the code is added.
Board rules! No PM support
EliteNODDY
BBCoder II
BBCoder II
Posts: 5
Joined: 10 Aug 2011, 20:00
BBCodes: 0

error when put in this code

Post by EliteNODDY »

Code: Select all

));
// BEGIN PM Notify & Guest Register bar
$lang = array_merge($lang, array(
    'PMG_WELCOME'		=> 'Welcome to',
    'PMG_REGISTER'		=> 'Click here to register', 
    'PMG_HELLO'			=> 'Hello',	
    'PMG_YOUHAVE'		=> '- You have',
	'PMG_AND'			=> 'and',
));
// END PM Notify & Guest Register bar

// BEGIN Welcome Mod
$lang = array_merge($lang, array(
    'UP_LATE'             		=> 'You\'re up late %1$s, Shouldn\'t you be sleeping?',
    'UP_EARLY'             		=> 'Good Morning %1$s, You\'re up early today',
    'GOOD_MORNING'           	=> 'Good Morning %1$s, What a lovely morning it is',
    'GOOD_AFTERNOON'       		=> 'Good Afternoon %1$s, Finally you are here',
    'GOOD_EVENING'           	=> 'Good Evening %1$s, Nice to see you here',
   	'GOOD_NIGHT'           		=> 'Good Night %1$s, time to go to bed',
    'MEMBER_FOR'           		=> 'Member For:',
    'WELCOME_GUEST'           	=> 'Guest',
    'WELCOME_HOUR'           	=> 'Hour',
    'WELCOME_HOURS'           	=> 'Hours',
   	'WELCOME_DAY'           	=> 'Day',
    'WELCOME_DAYS'           	=> 'Days',
    'WELCOME_MONTH'           	=> 'Month',
    'WELCOME_MONTHS'       		=> 'Months',
   	'WELCOME_YEAR'           	=> 'Year',
    'WELCOME_YEARS'				=> 'Years',
	'WELCOME_TO_MOD'			=> 'Welcome to',
));
// END Welcome Mod
// BEGIN mChat Mod
$lang = array_merge($lang, array(
	'MCHAT_TITLE'				=> 'Mini-Chat',
));
// END mChat Mod
// BEGIN: OurTube
$lang = array_merge($lang, array(
    'TUBE' => 'OurTube',
    'TUBE_COPYRIGHT' => 'Powered by OurTube &copy; <a href="http://www.csko.sk/">csko.SK</a>',
    'TUBE_BOARD_URL' => generate_board_url(),
));
// END


//Begin: National_Flag
$lang = array_merge($lang, array(
		'FLAG'				=> 'National Flag',
		'FLAG_EXPLAIN'		=> 'Choose your Countries Flag',
		'TOP_FLAG_TITLE'	=> 'Top 5 National Flags',
		'FLAG_USER'			=> '%s User',
		'FLAG_USERS'		=> '%s Users',
));
//End: National_Flag
$lang = array_merge($lang, array(
	'PERCENTAGE_PROGRESS' => '%s%%',
	'PROGRESS_TO_NEXT_RANK' => 'Progress to next rank:'
));
$lang = array_merge($lang, array(
   'BOT_USERS_ONLINE' => '%d bots online',
   'BOT_USERS_TOTAL' => ', %d bots and ',
   'BOT_USERS_ZERO_ONLINE' => '0 bots online',
   'BOT_USERS_ZERO_TOTAL' => ', 0 bots and ',
   'BOT_USER_ONLINE' => '%d bot online',
   'BOT_USER_TOTAL' => ', %d bot and ',
   'BOTS_ONLINE' => 'Bots: ',
   'BOTS_ZERO_ONLINE' => '0 bots',
));
$lang = array_merge($lang, array(
'FRONTPAGE'		=> 'Site Frontpage',
'FRONTPAGE_SHORT'	=> 'Frontpage',
));
	//Start Poster IP --
$lang = array_merge($lang, array(
	'VIEWTOPIC_SEE_WHOIS'			=> 'Whois on:',
));	
	//End Poster IP --
// annual stars
$lang['LENGTH_OF_MEMBERSHIP'] = 'Years of membership';
$lang['YEARS_OF_MEMBERSHIP'] = '%d years of membership';
$lang['YEAR_OF_MEMBERSHIP'] = '%d year of membership';
$lang['IMG_ICON_ANNUAL_STAR']   = 'Annual star'


// User Status
$lang = array_merge($lang, array(
   'USER_STATUS'   	 		=> 'Status',
   'USER_STATUS_BANNED'   	=> 'Banned!',
));



?>
here you go mate
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

error when put in this code

Post by Stoker »

And if you delete this part:

Code: Select all

// annual stars
$lang['LENGTH_OF_MEMBERSHIP'] = 'Years of membership';
$lang['YEARS_OF_MEMBERSHIP'] = '%d years of membership';
$lang['YEAR_OF_MEMBERSHIP'] = '%d year of membership';
$lang['IMG_ICON_ANNUAL_STAR']   = 'Annual star'
Board rules! No PM support
EliteNODDY
BBCoder II
BBCoder II
Posts: 5
Joined: 10 Aug 2011, 20:00
BBCodes: 0

error when put in this code

Post by EliteNODDY »

Stoker wrote:And if you delete this part:

Code: Select all

// annual stars
$lang['LENGTH_OF_MEMBERSHIP'] = 'Years of membership';
$lang['YEARS_OF_MEMBERSHIP'] = '%d years of membership';
$lang['YEAR_OF_MEMBERSHIP'] = '%d year of membership';
$lang['IMG_ICON_ANNUAL_STAR']   = 'Annual star'
that has sorted it i thank you so much i guess this the annual stars made this mod not work am not sure what mod that annual stars is from
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

error when put in this code

Post by Stoker »

Well, the code should be added to another file. Not the language file.
Board rules! No PM support
Locked