sandrulis Posted June 7, 2009 Report Share Posted June 7, 2009 kada funkcija vai kas ir jaizmanto? lai, kad ir liels texts viņš parāda kkadu daļu un pēc tam links read more varat parādīt kkadu kodiņu! kā piemēru! paldies! Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted June 7, 2009 Report Share Posted June 7, 2009 To jau pats tu vari uztaisīt ieliec sakumlapā kādu daļu un pec tam linku uz jaunu failu kur vis pilnais teksts sarakstīts! :D Un ja kads dod kodinu tad jūs lūdzu varētu iedot tādu kurš palielina to textiņu nevis atver jaunu lapu! Quote Link to comment Share on other sites More sharing options...
sandrulis Posted June 7, 2009 Author Report Share Posted June 7, 2009 a nu vispaar jau loģiski! :) bet kaa var izvilkt kkadu daļu no noteiktā teksta? Quote Link to comment Share on other sites More sharing options...
rausis Posted June 7, 2009 Report Share Posted June 7, 2009 (edited) lietoju šo funkciju: function cuttext($string, $limit) { return mb_strlen($string) > $limit ? mb_substr($string, 0, $limit - 3) . '...' : $string; } Edited June 7, 2009 by rausis Quote Link to comment Share on other sites More sharing options...
sandrulis Posted June 7, 2009 Author Report Share Posted June 7, 2009 paldies! Quote Link to comment Share on other sites More sharing options...
Snaip3Rs Posted June 7, 2009 Report Share Posted June 7, 2009 A ka viņa jaliek lai rādītu daļu teksta un piespiežot lasīt vairāk parāda pilnu? lūdzu iedot kodu piemēram texts, tavs kods 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.