Advertisement:

Author Topic: I have problem in Language Button Menu - Installation Instructions for 2.0 RC5  (Read 53370 times)

Offline នី ឫទ្ថី

  • Semi-Newbie
  • *
  • Posts: 17
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
« Last Edit: October 06, 2011, 05:16:57 AM by Rithy »

Offline Branko.

  • SMF Hero
  • ******
  • Posts: 3,330
  • Gender: Male
  • U zemlji slijepih, jednooki je kralj
    • SATForum
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
Code: [Select]

/***************************************
 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
***************************************/

Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Offline នី ឫទ្ថី

  • Semi-Newbie
  • *
  • Posts: 17
Thank you

Offline នី ឫទ្ថី

  • Semi-Newbie
  • *
  • Posts: 17
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


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?

Offline Branko.

  • SMF Hero
  • ******
  • Posts: 3,330
  • Gender: Male
  • U zemlji slijepih, jednooki je kralj
    • SATForum
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.
« Last Edit: October 07, 2011, 07:49:42 AM by Branko. »
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.