Simple Machines Community Forum

SMF Support => Language Specific Support => Topic started by: នី ឫទ្ថី on October 06, 2011, 05:10:16 AM

Title: I have problem in Language Button Menu - Installation Instructions for 2.0 RC5
Post by: នី ឫទ្ថី on October 06, 2011, 05:10:16 AM
I can't see anything appear.
Help me please....
I follow this instruction
http://custom.simplemachines.org/mods/index.php?action=parse;mod=2705;attach=170271;smf_version=2.0_RC5

I've got problems in the instruction
in
Quote
// Do we have any languages to validate this?
   if (!empty($modSettings['userLanguage']) && (!empty($_GET['language']) || !empty($_SESSION['language'])))
      $languages = getLanguages();

I can't find it

and in
Quote
./Themes/default/../core/css/index.css
Find (at the end of the file): [Select]
I can't find ?>

And where should I put db_settings.php ?

Need you answer
Title: Re: I have problem in Language Button Menu - Installation Instructions for 2.0 RC5
Post by: Branko. on October 06, 2011, 06:47:52 AM
This  "Do we have any languages to validate this? " you can find in /Sources/Load.php (if use notepad++ editor find line 528)
This "And where should I put db_settings.php ?" ...not necessary (everything is automatic) when you install your mod, read this "This file should be able to execute standalone."
For css/index.css just add at the end

/***************************************
START LANGUAGE MENU STYLES
***************************************/
/*The main language button menu container*/
#language_menu {
position: relative;
display: inline;
float: right;
padding: 10px;
}
/*Make the buttons align horizontaly*/
#language_menu form {
padding: 0;   
display: inline;
}
/* Pointer to easly identify "clickable" buttons */
#language_menu form button {
font-size:10px;
cursor: pointer;
}
/* Default cursor and different color for distinction of current language */
#language_menu form button.active {
color: #666;
cursor: default;
}
#language_menu img.langicon {
padding-right: 4px;
float: left;
margin-top: 2px;
}
#language_menu button.langflagbutton {
background: none;
border:none;
padding: 0;
margin:0;
opacity: 0.5;
}
#language_menu button.langflagbutton:hover {
opacity: 1;
}
#language_menu button.langflagbuttonactive {
background: none;
border:none;
padding: 0;
margin:0;
cursor: default;
opacity: 1;
}
/***************************************
END LANGUAGE MENU STYLES
***************************************/

Title: Re: I have problem in Language Button Menu - Installation Instructions for 2.0 RC5
Post by: នី ឫទ្ថី on October 06, 2011, 10:30:16 PM
Thank you
Title: Re: I have problem in Language Button Menu - Installation Instructions for 2.0 RC5
Post by: នី ឫទ្ថី on October 06, 2011, 10:43:26 PM
Quote from: Branko. on October 06, 2011, 06:47:52 AM
This  "Do we have any languages to validate this? " you can find in /Sources/Load.php (if use notepad++ editor find line 528)
Yes, I saw it in  sources/Load.php and I also inserted the code as the instruction but the language button still not appear


Quote from: Branko. on October 06, 2011, 06:47:52 AM
This "And where should I put db_settings.php ?" ...not necessary (everything is automatic) when you install your mod, read this "This file should be able to execute standalone."
I still not understand. I mean where should I put the host? or I could put it any where?
Title: Re: I have problem in Language Button Menu - Installation Instructions for 2.0 RC5
Post by: Branko. on October 07, 2011, 07:17:23 AM
You are misunderstood...mod should install from package manager and then make changes (in places where test is failed).Click on the icon next to "replace" and you will see what to change. Parse function only will help you.In this case db_settings.php automatically adapt your database.