Benvenuto Posted November 28, 2003 Report Share Posted November 28, 2003 piemeeram man ir raksts ar adresi index.php?cat=raksts&nr=201 esmu savai lapelei sataisiijis searchu un tagad uz vaardu "kolraabis" man tiek izsviests augstaakmineetais raksts. gribeetos, lai useris, kas mekleejis kolraabi, nospiezhot uz linka index.php?cat=raksts&nr=201 redzeetu savu mekleejamo vaardu piemeeram citaa kraasaa. nu linkaa tas laikam vareetu paraadiities kaa index.php?cat=raksts&nr=201&h=kolraabis tikai kaa lai realizee to, lai vinjsh konkreetajaa tekstaa to vaarda kraasu arii nomaina? :( domaaju, domaaju un neizdomaaju. Link to comment Share on other sites More sharing options...
des Posted November 28, 2003 Report Share Posted November 28, 2003 Pirms texta outputoshanas uztaisi $text=str_replace($h,$coltag1.$h.$coltag2,$text); //$coltag1 piemeeram ir <span class=iekraasots> //vai <font color=#XXXXX>.... //$coltag2 attieciigais aizveroshais tags. Link to comment Share on other sites More sharing options...
Benvenuto Posted November 28, 2003 Author Report Share Posted November 28, 2003 Pirms texta outputoshanas uztaisi $text=str_replace($h,$coltag1.$h.$coltag2,$text); //$coltag1 piemeeram ir <span class=iekraasots> //vai <font color=#XXXXX>.... //$coltag2 attieciigais aizveroshais tags. :D thx des! tavs variants straadaa! Link to comment Share on other sites More sharing options...
Little_Hacker Posted November 28, 2003 Report Share Posted November 28, 2003 njaaaa.. atlika tikai galvu biki pielikt un vorko.. beet.. ir jau taada lieta (mozh tev tas ir izfiltreets viss), bet ja tavs teksts satur tagus kaut kaadus, un piemeeram es tur ierakstiishu <img un vinsh izmetiis bildi + veel meegjinaas kaut kaa nokraasot, vai tml.. var galu galaa sanaakt nesmuki :( Link to comment Share on other sites More sharing options...
Benvenuto Posted November 28, 2003 Author Report Share Posted November 28, 2003 tomeer ir viena probleema. ja iekraasojamais vaards ir linka sastaavdalja, tad links kljuust nespiezhams. http://gonor.eja.lv/index.php?cat=k&rid=209&h=good sheit ir reaals piemeers. <_< Link to comment Share on other sites More sharing options...
Little_Hacker Posted November 28, 2003 Report Share Posted November 28, 2003 nu es tak teicu :( .. ja nemaldos tad jau vienu laiku te bija shitaada teema un laikam arii atrisinaajums.. pameklee Link to comment Share on other sites More sharing options...
Kaklz Posted November 29, 2003 Report Share Posted November 29, 2003 nu es tak teicu :( .. ja nemaldos tad jau vienu laiku te bija shitaada teema un laikam arii atrisinaajums.. pameklee Hackers.lv: Kā iekrāsot tekstu HTML kodā? Link to comment Share on other sites More sharing options...
Roze Posted December 1, 2003 Report Share Posted December 1, 2003 Imho var shadi.. Bez vaajpratigaam izvirtiibaam $saturs = preg_replace('/(?<=>)([^<]+)?('.$vards.')/i','$1<span style="background-color: #C0C0C0">$2</span>',$saturs); Link to comment Share on other sites More sharing options...
BigUgga Posted December 7, 2003 Report Share Posted December 7, 2003 hmm, man taada aizdoma, ja jams iisti korekti neshancees starp script, style, head utt tagiem... :huh: Link to comment Share on other sites More sharing options...
Recommended Posts