owned2 Posted February 19, 2009 Report Share Posted February 19, 2009 Kā sataisīt Lai pievienotu Dienas bildei vai Dienas flash spēlēi komentāru?Vai visspār kā to izdarīt?Lai varētu katrai bildei vai katrai foto pateikt savu viedokli ?!?! :) Quote Link to comment Share on other sites More sharing options...
cucumber Posted February 19, 2009 Report Share Posted February 19, 2009 bla, palasi formu ar mosh (arhivs) ps. kur tadi rodas? Quote Link to comment Share on other sites More sharing options...
owned2 Posted February 20, 2009 Author Report Share Posted February 20, 2009 HELP, palīdziet man atrast pogu ADDREPLY, citādi jātaisa bezjēdzīgas QUOTEs Oj bļjā atradās te Dexters.....(Iedod linku lai paskatities,es neka neatradu) Quote Link to comment Share on other sites More sharing options...
cucumber Posted February 20, 2009 Report Share Posted February 20, 2009 Ludzu, tikai shini gadijuma dati tiek glabati faila http://php.lv/f/index.php?showtopic=1761 Quote Link to comment Share on other sites More sharing options...
owned2 Posted February 20, 2009 Author Report Share Posted February 20, 2009 HELP, palīdziet man atrast pogu ADDREPLY, citādi jātaisa bezjēdzīgas QUOTEs Tuyr drusku stūlba pamācība kurā es nesaprotu kur un ko...(Es kā sapratu šo kodu jāraksta message.php un šo kodu samainīt uz citu kodu?Tādu pats kods tur būs?Vai parasti ierakstīt? $fileData = file("data.txt");$messageList = array();foreach ($fileData as $row){$date = date("d.m.Y");list($date, $user, $msg) = explode('|', $row);$messageList[] = array('date' => $date, 'user' => $user, 'msg' => $msg);}echo '<h4>Ziņojumi..</h4>';foreach ($messageList as $key => $message){echo '<i>'.$message['date'].'</i> <b>'.$message['user'].'</b>: '.$message['msg'] . '<br>---<br>';} Un šis data.txt ari sataisiju tur ierakstiju 03.12.2004|Jānis|komentārs BLĀ|01.01.2000|Pēteris|comeon|24.10.2004|Krista|:?|19.07.2003|Nora|Chawa!:)|26.08.2001|Olga|Sveiki..| Neka nenotika....(ko darīt?Gudras galvas pasakat nūbam skaidrāk..) Quote Link to comment Share on other sites More sharing options...
cucumber Posted February 20, 2009 Report Share Posted February 20, 2009 ja tev tik traki iet, palasi kadu gramatu iesakumam, jo man liekas to megini parak overlokot ps. Ideja tada, ka scripts nolasa datus no faila un izvada ara, to vieta varetu but komentari, atliek vien uztaisit formu, no, kuras tiek padots komentars un ierakstits shini faila, talak atliek vien ielikt saita ar include vai ta patas ps2. skriptam nav ne vainas, vinsh ir loti vienkarsh un saprotams Quote Link to comment Share on other sites More sharing options...
owned2 Posted February 20, 2009 Author Report Share Posted February 20, 2009 HELP, palīdziet man atrast pogu ADDREPLY, citādi jātaisa bezjēdzīgas QUOTEs A include kā tur rakstīt? Quote Link to comment Share on other sites More sharing options...
cucumber Posted February 20, 2009 Report Share Posted February 20, 2009 <?php .... include("celsUzFailuKomentariem.php"); .... ?> ps. nu tak lasi kaut ko ar! Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted February 20, 2009 Report Share Posted February 20, 2009 Tuyr drusku stūlba pamācība, kurā es nesaprotu kur un ko... Pamācība nav stulba. Stulbi ir kas cits... Quote Link to comment Share on other sites More sharing options...
owned2 Posted February 20, 2009 Author Report Share Posted February 20, 2009 (edited) Pamācība nav tieši sarakstīts..tur ta uzrakstīts un viss.. Karoche es izdariju tā... Iegāju messages.php tur lejā uzrakstiju šo kodu $fileData = file("data.txt");$messageList = array();foreach ($fileData as $row){$date = date("d.m.Y");list($date, $user, $msg) = explode('|', $row);$messageList[] = array('date' => $date, 'user' => $user, 'msg' => $msg);}echo '<h4>Ziņojumi..</h4>';foreach ($messageList as $key => $message){echo '<i>'.$message['date'].'</i> <b>'.$message['user'].'</b>: '.$message['msg'] . '<br>---<br>'; Pēc tam sataisiju data.txt mapīti tur ierakstiju 03.12.2004|Jānis|komentārs BLĀ|01.01.2000|Pēteris|comeon|24.10.2004|Krista|:?|19.07.2003|Nora|Chawa!:)|26.08.2001|Olga|Sveiki..| Pēctam iegāju mapē "Infusion" tur kur Dienas bilde.php ierakstiju <?php .... include("celsUzFailuKomentariem.php"); .... ?> Tur kur "celsUzFailuKomentariem" ko tu uzrakstīt?Ceļs Failu komentāriem?Tas kā?Kur tas glabājas?Skaidrāk... p.s Es tur meiģināju uzrakstīt messages.php un rezultātā Parse error: parse error, unexpected '.' in C:\AppServ\www\infusions\bildes_panel\bildes_panel.php on line 2 Edited February 20, 2009 by owned2 Quote Link to comment Share on other sites More sharing options...
cucumber Posted February 20, 2009 Report Share Posted February 20, 2009 tu ikesh bilde.php koda ta ari raksti <?php .... include("celsUzFailuKomentariem.php"); .... ?> ? include("./messages.php"); // ja fails bilde.php un messages.php atrodas viena folderi Quote Link to comment Share on other sites More sharing options...
owned2 Posted February 20, 2009 Author Report Share Posted February 20, 2009 HELP, palīdziet man atrast pogu ADDREPLY, citādi jātaisa bezjēdzīgas QUOTEs Vot mana bilde.php tur ir šis: <center>Dienas Foto<center><img src="http://cs-pubs.oo.lv/bilde_<?php echo date("d"); ?>.jpg" width="165" height="220" alt="bilde" /><?php .... include("messages.php"); .... ?> Kas par vainu?Es messages.php nokopēju un ieliku tajā infusion mapē pie bilde.php mapes.. Hotj es tur messages.php vietā ieliktu parasti dasf.php arī būtu šis ERORS Quote Link to comment Share on other sites More sharing options...
cucumber Posted February 20, 2009 Report Share Posted February 20, 2009 (edited) lol, daudzpunktus navajag tur likt <?php include("messages.php"); ?> vai, ja tas ir php pa vidu, tad include("messages.php"); ps. liekas ka megini lekt augstak par sezamvietu Edited February 20, 2009 by cucumber Quote Link to comment Share on other sites More sharing options...
owned2 Posted February 20, 2009 Author Report Share Posted February 20, 2009 Hehe..man tagad sanāca shitaa Kā sataisīt lai zem foto būtu Komentāri(1) un kad uzspied uz Komentāri man parādas Foto pavidu un zemāk teksts... Kā? Quote Link to comment Share on other sites More sharing options...
Aleksejs Posted February 20, 2009 Report Share Posted February 20, 2009 Ko Tu tur ņemies ar tām bildēm?! http://cs-pubs.oo.lv un viss! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.