Jump to content
php.lv forumi

Mr. Osis

Reģistrētie lietotāji
  • Posts

    13
  • Joined

  • Last visited

About Mr. Osis

  • Birthday 11/03/1983

Contact Methods

  • Website URL
    http://www.lbha-latvia.lv, http://www.poniji.lv
  • ICQ
    0

Profile Information

  • Location
    Pelēči

Mr. Osis's Achievements

Newbie

Newbie (1/14)

  1. nja... cereeju uz kaadu normaalu menu, bet java paaraak ilgi laadeejas, tapee mekleeju ko ieksh php... labi, vsjo - taisiishu no html un pic, vai kkaa tamliidziigi... paldies visiem par help!
  2. xml failu paarluukaa atverot viss ir shtokos - garumziimes raada.... ieksh php - nekaa :( labi - pagriziisim probleemu citaadaa griezumaa - vai kaadam nav sakariigs php scripts prieksh menu navigation (vertikal)?
  3. itkaa xml failaa arii ir uzlikts encoding uz win1257, ja to tu biji domaajis...
  4. taga err nav, bet lv arii nav :( arii frame page ieliku...
  5. sorz.. neiebraucu uzreiz.. teitan i tas err: Parse error: syntax error, unexpected T_STRING in /webhotels/domains/www.poniji.lv/www/TEMP/PMZAA/parse.php on line 11 php code 11 rinda: $search = array ( 'LT', 'GT', 'REPLACE_LINK', 'REPLACE_TEXT' );
  6. piedo, bet tas nepaliidz - veelaizvien errors... ja novaac header - err pazuud, bet vienalga nav lv burtu
  7. ja to pievieno php failam - errors panesas php code (full): <?php header('Content-Type: text/html; charset=windows-1257); <head> <meta http-equiv="content-type" content="text/html; charset=windows-1257" /> </head> // Load the XML file containing layout and items int the variable $menu $menu = simplexml_load_file("menu.xml"); // Making an array of words to replace $search = array ( 'LT', 'GT', 'REPLACE_LINK', 'REPLACE_TEXT' ); // The words to replace them with $replace_with = array ( '<', '>'); $pre = str_replace($search, $replace_with, $menu->layout->pre); echo $pre; // Print one line for every item foreach ($menu->menuItems->menuItem1 as $menuItem1) { $replace_with = array('<', '>', $menuItem1->mIlink1, $menuItem1->mItext1); $line1 = str_replace($search, $replace_with, $menu->layout->line1); echo $line1; } // Print one line for every item foreach ($menu->menuItems->menuItem as $menuItem) { $replace_with = array('<', '>', $menuItem->mIlink, $menuItem->mItext); $line = str_replace($search, $replace_with, $menu->layout->line); echo $line; } $replace_with = array ( '<', '>'); $post = str_replace($search, $replace_with, $menu->layout->post); echo $post; ?> XML code (full): <?xml version="1.0" encoding="windows-1257"?> <menu> <menuItems> <menuItem1> <mItext1>IK "Zemgales Poniji»</mItext1> <mIlink1>../index_tmp.htm</mIlink1> </menuItem1> <menuItem> <mItext>Mērķi un uzdevumi</mItext> <mIlink>merki.htm</mIlink> </menuItem> </menuItems> <layout> <!-- Some layout information LT will be replaced with < GT will be replaced with > REPLACE_LINK will be replaced with the link (mIlink) REPLACE_TEXT will be replaced with the text (mItext) //--> <pre></pre> <line>LTp align="left"GTLTbGTLTfont size="4" face="Times New Roman"GTLTa target="main" href="REPLACE_LINK"GTREPLACE_TEXTLT/aGT LT/fontGTLT/bGTLT/pGT</line> <line1>LTp align="left"GTLTbGTLTfont size="4" face="Times New Roman"GTLTa target="_top" href="REPLACE_LINK"GTREPLACE_TEXTLT/aGT LT/fontGTLT/bGTLT/pGT</line1> <post></post> </layout> </menu>
  8. nee - datus savaac php fails un izvada laukaa freimotaa lapaa iisaak sakot: http://www.poniji.lv/TEMP/PMZAA/index.htm pats php: http://www.poniji.lv/TEMP/PMZAA/parse.php
  9. XML failaa <?xml version="1.0" encoding="Windows-1257"?> <menu> <menuItems> <menuItem1> <mItext1>IK "Zemgales Poniji»</mItext1> <mIlink1>../index_tmp.htm</mIlink1> </menuItem1> <menuItem> <mItext>Mērķi un uzdevumi</mItext> <mIlink>merki.htm</mIlink> </menuItem> browserii: IK "Zemgales PonijiĀ» MÄ“rÄ·i un uzdevumi php failaa nekaads encoding nav noraadiits... cik stulbs es esmu? ;) kaads var paliidzeet ar padomu?
  10. ui.. paldiesinjsh... aizgaaja kaa smeereets!!! nu es i laame peec fakta un buutiibas ;) :D
  11. vobshem jautaajums i taads: nevaru dabuut php forumaa normaalu latvieshu valodu - preciizaak - paartulkoju phpBB2 uz lv, tik saakas probleemas ar to, ka nevaru piemekleet norm encoding, jo, buutiibaa, nezinu kaac tas i lv vobshem - uzliku iso-8859-13, uzraada ka tas i igaunju... un ir probleemas ar bildeem.... man vajadzeetu Baltic (Windows).. ja manuaali skatoties to uzliek, viss liekas kaartiibaa, tapee - please - paliidziet!!!!
×
×
  • Create New...