Motoron Posted October 25, 2008 Report Share Posted October 25, 2008 (edited) Man ir Html webs un IPB forums, jautaajums ir taads vai var uztaisiit taa, ka man HTML webaa raadaas jaunaakie ieraksti forumaa? Mana IPB versija ir 2.3.3 un ja var tad kaa to lai izdara? Edited October 25, 2008 by Motoron Link to comment Share on other sites More sharing options...
X ID Posted October 25, 2008 Report Share Posted October 25, 2008 Nezinu vai tu atšķir html no php, bet ja tev tur ir iespējams iedarbināt php skriptu (ja tev iet forums, tad ir iespējams), tad tas ir iespējams Kautkad pasen biju šādu lietu uztaisijis, tapēc varu padalīties šo kodu. PHP <? mysql_connect ("datubazes_hosts","datubazes_lietotājs","datubazes_parole"); mysql_select_db("datubazes_nosaukums"); $sql="SELECT tid, title FROM `ibf_topics` ORDER BY last_post DESC LIMIT 5"; // nomaini 5 pret jaunāko topiku skaitu, kādu tu gribi redzēt $res=mysql_query($sql); while( $row=mysql_fetch_object($res)){ echo '<a href="/forums/?showtopic='.$row->tid.'&view=getnewpost">'.$row->title.'</a><br />'; } ?> Link to comment Share on other sites More sharing options...
Motoron Posted October 25, 2008 Author Report Share Posted October 25, 2008 Nekas nesanaak tid.'&view=getnewpost">'.$row->title.' '; } ?> 'sitaadu uzmet, visu visur pareizi nomainiiju Link to comment Share on other sites More sharing options...
X ID Posted October 25, 2008 Report Share Posted October 25, 2008 Tu tak to liki *.php failā? Link to comment Share on other sites More sharing options...
RaaapuLis Posted October 25, 2008 Report Share Posted October 25, 2008 (edited) shii rindinja tev pareiza? echo '<a href="/forums/?showtopic='.$row->tid.'&view=getnewpost">'.$row->title.'</a><br />'; ja neiet tapat pamegini <? mysql_connect("localhost","root","db_parole"); // nomaini tava parole uz savu db paroli mysql_select_db("db_nosaukums"); // nomaini db nosaukums uz datubazes nosaukumu, kuraa ir tavs forums, visticamaak ka kaut kads forum $aSql=mysql_query("SELECT * FROM `ibf_topics` ORDER BY last_post DESC LIMIT 5"); // nomaini 5 pret jaunāko topiku skaitu, kādu tu gribi redzēt while($bSql=mysql_fetch_array($aSql)){ echo "<a href="/f/?showtopic=".$bSql['tid']."&view=getnewpost">".$bSql['title']."</a><br />"; // nomaini saakumaa linku /f/ uz savu foruma adresi } ?> Sim kodinjam jabut jebkaadaa php failaam, kura formaats ir *.php Edited October 25, 2008 by RaaapuLis Link to comment Share on other sites More sharing options...
Motoron Posted October 25, 2008 Author Report Share Posted October 25, 2008 Ieliku php failaa, bet kaa lai infreimoju lai ieliktu vinu HTML lapaa? Link to comment Share on other sites More sharing options...
RaaapuLis Posted October 25, 2008 Report Share Posted October 25, 2008 html lapaa tas nebus iespejams! Vnk savu html lapas nosaukumu un formatu piem. index.html paarliec uz index.php, kam tev to html? Nekas jau nemainisies, nebus ta ka *.php ilgak lades, *.html aatraak (lai gan manuprat ta ari ir ) Link to comment Share on other sites More sharing options...
Motoron Posted October 25, 2008 Author Report Share Posted October 25, 2008 Bet vienalga vai ja uztaisu PHP failu ar to kodu man jau kkaa jaiefreimo vinsh webaa, vienalga vai HTML vai PHP....un kaa to izdariit? Link to comment Share on other sites More sharing options...
RaaapuLis Posted October 26, 2008 Report Share Posted October 26, 2008 nee, vnk ieliec to kodu vietaa kur veelies to redzeet, nau obligati jaaifreimo vai jaaincludo.. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now