fastuning
07-21-2009, 12:23 PM
Hi, i´m interested to show in the message only the first image that find, no text. So i need to find in all the message the "<img" code and print only from it to the first ">" that find.
so for example in this text:
test test test <img src="text.jpg" width="100"> texto text texto
i find the "<img" and save in a variable from "<img" to the first ">" finded.
I only want in the news module the title, an one image that will be the first that appear in whatever position in the message text, and a read more link to go to the complete new.
if someone can help me please.
so for example in this text:
test test test <img src="text.jpg" width="100"> texto text texto
i find the "<img" and save in a variable from "<img" to the first ">" finded.
I only want in the news module the title, an one image that will be the first that appear in whatever position in the message text, and a read more link to go to the complete new.
if someone can help me please.