language help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    language help

    my whole site is like dis main menu inbox, and all other menus are like this

    _______(43)
    _______(32)
    _________

    etc... icheck my sql lang ibwf user is set to 1

    dont know whats the wrong even when i delete the language.php site is working i think my language.php is not getting detected can some one post a correct language.php tenks

    #2
    its not the language page that are the error its ur index
    Code:
    <?php
    $stitle = "Dreamerz";
    $lang = mysql_fetch_array(mysql_query("SELECT lang FROM ibwf_users WHERE id='".$uid."'"));
    if($lang[0]=="1"){
    ///////ENGLISH//////////////////////////////////////////////////////
    ///////INDEX.PHP////////////////////////////////////////////////////
    
    ///////bcon
    $lang1 = "ERROR! cannot connect to database";
    $lang2 = "This error happens usually when backing up the database, please be patient, The site will be up any minute";
    $lang3 = "THANK YOU VERY MUCH";
    
    ///////isshield
    $lang4 = "This IP address is blocked";
    $lang5 = "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over";
    $lang6 = "Time to unblock the IP:";
    $lang7 = "UserName:";
    $lang8 = "Password:";
    $lang9 = "LOGIN";
    
    ///////islogged
    $lang10 = "You are not logged in";
    $lang11 = "Or Your session has been expired";
    $lang12 = "Login";
    
    ///////isbanned
    $lang13 = "You are <b>Banned</b>";
    $lang14 = "Time to finish your penalty:";
    $lang15 = "Ban Reason:";
    
    ///////main
    $lang16 = "you night owl!";
    $lang17 = "Good morning ";
    $lang18 = "Enjoy your lunch ";
    $lang19 = "Good afternoon ";
    $lang20 = "Good Evening ";
    $lang21 = "Inbox";
    $lang21a = "New Message";
    $lang21b = "New Messages";
    $lang22 = "Buddies";
    $lang23 = "Chatrooms";
    $lang24 = "Forums";
    $lang25 = "Clubs";
    $lang26 = "Fun/Games";
    $lang27 = "Downloads";
    $lang28 = "User Gallery";
    $lang29 = "MY controls";
    $lang30 = "Site Stats";
    $lang31 = "Search";
    $lang32 = "ShoutBox";
    $lang33 = "Members Online:";
    $lang34 = "Staff Online:";
    $lang35 = "V.I.P's Online:";
    $lang36 = "Mod R/L";
    $lang37 = "xHTML Version";
    $lang37a = "WML Version";
    $lang38 = "Log Out";
    $lang39 = "AdminCP";
    $lang40 = "Menu";
    $lang41 = "Online Stats";
    $lang42 = "Shortcuts";
    $lang43 = "Upload anything";
    $lang44 = "Extras";
    $lang45 = "Dreamerz-Shop";
    $lang46 = "Dreamerz-Bank ";
    $lang47 = "Dreamerz-WarZone ";
    }else
    
    if($lang[0]=="2"){
    ///////Sinhala////////////////////////////////////////////////////
    
    
    ///////INDEX.PHP////////////////////////////////////////////////////
    ///////bcon
    $lang1 = "ERROR! database ekata sambanda kala nohaka";
    $lang2 = "Kanagaatui mea mohothe arawap eke backup gannawa. thawa tikakin wap eka wada karai.. chuttak iwasanna.";
    $lang3 = "GODAK STHUTHI!";
    
    ///////isshield
    $lang4 = "Mea IP eka block karala thiyanne!";
    $lang5 = "kohoma unath oyaa ape wap ekata aththatama kamathi nam api oyaawa aayeth arawap ekata saadaren piligannawa.. contact -araa-";
    $lang6 = "Time to unblock the IP:";
    $lang7 = "Mage Nick eka:";
    $lang8 = "Mura padaya:";
    $lang9 = "Log Wenna";
    
    ///////islogged
    $lang10 = "Oyaa thawama log wela na";
    $lang11 = "Ehema naththam Oyage login session ek expire wela";
    $lang12 = "Log wenna";
    
    ///////isbanned
    $lang13 = "Oyaawa <b>Ban karala!</b>";
    $lang14 = "Oyaage daduwam kaalaya iwara wenna thawa:";
    $lang15 = "Ban karapu hethuwa:";
    
    ///////main
    $lang16 = "Doi matha nadda?";
    $lang17 = "Aubowan!";
    $lang18 = "Suba Udaasanak";
    $lang19 = "Lunch eka gaththada? ";
    $lang20 = "Suba sandawak!";
    $lang21 = "Lium Pettiya";
    $lang21a = "Aluth Liumak";
    $lang21b = "Aluth Lium";
    $lang22 = "Mage Yaaluwo";
    $lang23 = "Ape Chat eka";
    $lang24 = "Ape kathaa";
    $lang25 = "Ape Samaaja";
    $lang26 = "Niyama FUN eka";
    $lang27 = "Baagatha kiriim";
    $lang28 = "Ape Pinthura";
    $lang29 = "Mage sakaseem";
    $lang30 = "ARAWAP visthara";
    $lang31 = "Soyanna";
    $lang32 = "Kathaa pettiya";
    $lang33 = "Online Membersla:";
    $lang34 = "Staff eke aya:";
    $lang35 = "Vishesha aya:";
    $lang36 = "Mod R/L";
    $lang37 = "xHTML version eka";
    $lang37a = "WML Version eka";
    $lang38 = "Passe ennam";
    $lang39 = "AdminCp";
    $lang40 = "Menu eka";
    $lang41 = "Online thathwayan";
    $lang42 = "keti maarga";
    $lang43 = "Obata magen";
    $lang44 = "Athireka";
    $lang45 = "Dreamerz-Shop eka";
    $lang46 = "Dreamerz-bank eka";
    $lang47 = "Dreamerz-Angampora [Aluth!]";
    }
    
    
    
    else
    
    if($lang[0]=="3"){
    ///////Sinhala////////////////////////////////////////////////////
    
    
    ///////INDEX.PHP////////////////////////////////////////////////////
    ///////bcon
    
    
    ///////bcon
    $lang1 = "ERROR! cannot connect to database";
    $lang2 = "This error happens usually when backing up the database, please be patient, The site will be up any minute";
    $lang3 = "THANK YOU VERY MUCH";
    
    ///////isshield
    $lang4 = "This IP address is blocked";
    $lang5 = "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over";
    $lang6 = "Time to unblock the IP:";
    $lang7 = "UserName:";
    $lang8 = "Password:";
    $lang9 = "LOGIN";
    
    ///////islogged
    $lang10 = "You are not logged in";
    $lang11 = "Or Your session has been expired";
    $lang12 = "Login";
    
    ///////isbanned
    $lang13 = "You are <b>Banned</b>";
    $lang14 = "Time to finish your penalty:";
    $lang15 = "Ban Reason:";
    
    
    
    ///////main
    $lang16 = "jou nag uil!";
    $lang17 = "Goeie môre ";
    $lang18 = "geniet jou breek ";
    $lang19 = "Goeie middag ";
    $lang20 = "Goeienaand ";
    $lang21 = "Inboks";
    $lang21a = "Nuwe Boodskap";
    $lang21b = "Nuwe Boodskappe";
    $lang22 = "Vriende";
    $lang23 = "Kletskamer";
    $lang24 = "Forums";
    $lang25 = "Klubs";
    $lang26 = "Pret/Speletjies";
    $lang27 = "Downloads";
    $lang28 = "Lede Galery";
    $lang29 = "KPaneel";
    $lang30 = "Site Stats";
    $lang31 = "Vennote";
    $lang32 = "Shoutbox";
    $lang33 = "Lede Aanlyn:";
    $lang34 = "Personeel Aanlyn:";
    $lang35 = "V.I.P's Aanlyn:";
    $lang36 = "Moderasie R/L";
    $lang37 = "xHTML Weergawe";
    $lang37a = "WML Weergawe";
    $lang38 = "Teken Uit";
    $lang39 = "AdminKP";
    $lang40 = "Menu";
    $lang41 = "aanlyn Status";
    $lang42 = "Shortcuts";;
    $lang43 = "Obata magen";
    $lang44 = "Extra";
    $lang45 = "Dreamerz-Shop";
    $lang46 = "Dreamerz-bank";
    $lang47 = "Dreamerz-WarZone";
    }
    
    
    else
    
    if($lang[0]=="4"){
    ///////Sinhala////////////////////////////////////////////////////
    
    
    ///////INDEX.PHP////////////////////////////////////////////////////
    ///////bcon
    
    
    ///////bcon
    $lang1 = "ERROR! cannot connect to database";
    $lang2 = "This error happens usually when backing up the database, please be patient, The site will be up any minute";
    $lang3 = "THANK YOU VERY MUCH";
    
    ///////isshield
    $lang4 = "This IP address is blocked";
    $lang5 = "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over";
    $lang6 = "Time to unblock the IP:";
    $lang7 = "UserName:";
    $lang8 = "Password:";
    $lang9 = "LOGIN";
    
    ///////islogged
    $lang10 = "You are not logged in";
    $lang11 = "Or Your session has been expired";
    $lang12 = "Login";
    
    ///////isbanned
    $lang13 = "You are <b>Banned</b>";
    $lang14 = "Time to finish your penalty:";
    $lang15 = "Ban Reason:";
    
    
    
    ///////main
    $lang16 = "Online Malammu";
    $lang17 = "Selamat pagi";
    $lang18 = "Nikmati makan siangmu ";
    $lang19 = "Selamat siang ";
    $lang20 = "Selamat malam ";
    $lang21 = "Kotak Masuk";
    $lang21a = "Pesan Baru";
    $lang21b = "Pesan-Pesan Baru";
    $lang22 = "Teman-Teman";
    $lang23 = "Ruang Chat";
    $lang24 = "Forum";
    $lang25 = "Club";
    $lang26 = "Permainan";
    $lang27 = "Download";
    $lang28 = "Galeri Pengguna";
    $lang29 = "Kontrol";
    $lang30 = "Site Statistik";
    $lang31 = "Cari";
    $lang32 = "Kotak Sapa";
    $lang33 = "Anggota Online:";
    $lang34 = "Staf Online:";
    $lang35 = "V.I.P Online:";
    $lang36 = "Mod R/L";
    $lang37 = "xHTML Versi";
    $lang37a = "WML Versi";
    $lang38 = "Keluar";
    $lang39 = "Panel kontrol Admin";
    $lang40 = "Menu";
    $lang41 = "Online Statistik";
    $lang42 = "Jalan Pintas";
    $lang43 = "Upload Apa saja";
    $lang44 = "Extra";
    $lang45 = "Toko-Dreamerz";
    $lang46 = "Bank-Dreamerz ";
    $lang47 = "Zona Perang Dreamerz [Baru!] ";
    }
    
    
    else
    
    if($lang[0]=="5"){
    ///////Sinhala////////////////////////////////////////////////////
    
    
    ///////INDEX.PHP////////////////////////////////////////////////////
    ///////bcon
    ///////bcon
    $lang1 = "ERROR! cannot connect to database";
    $lang2 = "This error happens usually when backing up the database, please be patient, The site will be up any minute";
    $lang3 = "THANK YOU VERY MUCH";
    
    ///////isshield
    $lang4 = "This IP address is blocked";
    $lang5 = "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over";
    $lang6 = "Time to unblock the IP:";
    $lang7 = "UserName:";
    $lang8 = "Password:";
    $lang9 = "LOGIN";
    
    ///////islogged
    $lang10 = "You are not logged in";
    $lang11 = "Or Your session has been expired";
    $lang12 = "Login";
    
    ///////isbanned
    $lang13 = "You are <b>Banned</b>";
    $lang14 = "Time to finish your penalty:";
    $lang15 = "Ban Reason:";
    
    ///////main
    $lang16 = "you night owl!";
    $lang17 = "صباح لخير ";
    $lang18 = "متع وجبتك";
    $lang19 = " لخير مساء";
    $lang20 = "مساء لخير";
    $lang21 = "صندوق لوارد";
    $lang21a = "رسالة جديدة";
    $lang21b = "رسائل جديدة";
    $lang22 = "أصدقاء";
    $lang23 = "غرف لدردشة";
    $lang24 = "منتديات";
    $lang25 = "لنوادي";
    $lang26 = "لترفيه";
    $lang27 = "لتنزيلات";
    $lang28 = "لبوم لصور";
    $lang29 = "لوحة لتحكم";
    $lang30 = "لموقع معلومات";
    $lang31 = "حث";
    $lang32 = "لصرخة";
    $lang33 = "أعضاء لمتوجدون:";
    $lang34 = "هيئة الإدارة:";
    $lang35 = "شخصيات مهمة:";
    $lang36 = "Mod R/L";
    $lang37 = "نسخة";
    $lang37a = "نسخة";
    $lang38 = "خروج";
    $lang39 = "AdminCP";
    $lang40 = "لقائمة";
    $lang41 = "التواجد تفاصيل";
    $lang42 = "ختصرات";
    $lang43 = "تحميل";
    $lang44 = "الزيادات";
    $lang45 = "أرا سوق";
    $lang46 = "بنك أرا ";
    $lang47 = " الحرب‏(جديد‏) أرا-منطقة ";
    }
    
    
    else
    
    if($lang[0]=="6"){
    ///////Sinhala////////////////////////////////////////////////////
    
    
    ///////INDEX.PHP////////////////////////////////////////////////////
    ///////bcon
    ///////bcon
    $lang1 = "ERROR! cannot connect to database";
    $lang2 = "This error happens usually when backing up the database, please be patient, The site will be up any minute";
    $lang3 = "THANK YOU VERY MUCH";
    
    ///////isshield
    $lang4 = "This IP address is blocked";
    $lang5 = "How ever we grant a shield against IP-Ban for our great users, you can try to see if you are shielded by trying to log-in, if you kept coming to this page that means you are not shielded, so come back when the ip-ban period is over";
    $lang6 = "Time to unblock the IP:";
    $lang7 = "UserName:";
    $lang8 = "Password:";
    $lang9 = "LOGIN";
    
    ///////islogged
    $lang10 = "You are not logged in";
    $lang11 = "Or Your session has been expired";
    $lang12 = "Login";
    
    ///////isbanned
    $lang13 = "You are <b>Banned</b>";
    $lang14 = "Time to finish your penalty:";
    $lang15 = "Ban Reason:";
    
    ///////main
    $lang16 = "Malai nera Aandhai!";
    $lang17 = "Kaalai Vandhanangal ";
    $lang18 = "Nandraga Sappitungal ";
    $lang19 = "Pagal Vandhanangal ";
    $lang20 = "Malai Vandhanangal ";
    $lang21 = "Thagaval Pettagam";
    $lang21a = "Puthiya thagaval";
    $lang21b = "Puthiya Thagavalgal";
    $lang22 = "Nanbaragal";
    $lang23 = "Arattai Arai";
    $lang24 = "Forums";
    $lang25 = "Clubs";
    $lang26 = "Kuthugalam/Vilayaattu";
    $lang27 = "Downloads";
    $lang28 = "Pavanayalar Padangal";
    $lang29 = "Ennudaya ARAWAP (Controls)";
    $lang30 = "Thalathin Thagaval";
    $lang31 = "Thedal";
    $lang32 = "Kathal Petti";
    $lang33 = "Thalathil Ullor:";
    $lang34 = "Thalathil Ulla Athigarigal:";
    $lang35 = "Thalathil Ulla Mukkiya pramugargal:";
    $lang36 = "Athigariyin R/L";
    $lang37 = "XTML udaga";
    $lang37a = "WML Udaga";
    $lang38 = "Veliyeral";
    $lang39 = "Uyar Athigariyin CP";
    $lang40 = "Poruladakkam";
    $lang41 = "Online thagavalgal";
    $lang42 = "Kurukkuvali";
    $lang43 = "Ethanuyum serungal";
    $lang44 = "Kuduthalaga";
    $lang45 = "Dreamerz - Kadai";
    $lang46 = "Dreamerz - Vangi ";
    $lang47 = "Dreamerz - Por puriyum Idam ";
    }
    
    ?>
    go check on ur index at the top for this

    Code:
    $lang = mysql_fetch_array(mysql_query("SELECT lang FROM ibwf_users WHERE id='".$uid."'"));
    include("language.php");
    and move it to the top of the first action
    Code:
    if($action=="main")
    then it should work and check in ur profile in ibwf_users if ur lang are set to 1 before u do any changes register again and check if its working then if u say u did change the lang to 1

    Comment


      #3
      its not working even though if i do it dj-matrix bro gave me a language.php and i replaced it , that worked like charm but i finally lost if and its not there in this forum help me!

      Comment


        #4
        can you post the code of the main menu of your script?
        com site: http://vampist.net
        download site: http://wapdloads.net
        fb: http://www.facebook.com/pmplx

        Comment


          #5
          listen really i am sure theres nothig to do with the index its with lanuage dj-matrix gave me a language.php and i replaced it with my current lanuage.php then it worked i am finding for that lanuage.php if any one as it give me please

          Comment


            #6
            did u do this

            go check on ur index at the top for this

            Code:
            $lang = mysql_fetch_array(mysql_query("SELECT lang FROM ibwf_users WHERE id='".$uid."'"));
            include("language.php");
            and move it to the top of the first action
            Code:
            if($action=="main")

            Comment


              #7
              yes i did that when i do that i am getting a white page. how come it could eb error on it huh? if its working on freehostia why not on byeth that means its not detecting the language.php thats the problem mate

              Comment


                #8
                could be byethost or just ur sql

                Comment


                  #9
                  it was the same thing i faced before and dj-matrix gave me a lanuage.php it worked!i really dont know whats the difference on what he gave to me and the one i had. help plz!
                  thanks riderz for helps! but didnt work yet
                  Last edited by sinwapx; 12.02.10, 10:11.

                  Comment

                  Working...
                  X