May 4, 2011

Extract one Link from post content | CyberSEO Pro | Support Forums

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

Related Topics sp_topicicon
Extract one Link from post content
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
August 5, 2011
11:13 pm
Avatar
Vadim
Guest
Guests

I want to extract a linked picture from the post content.

Or in other words: all of the content has to be removed, except the (only 1) picture with his link.

The link is something like that:

<a href=”http://777livecams.com/?show=10679&amp;stid=rssfeed_10679_m&amp;id=XXXXX&amp;sc_id=1″ target=”_blank” title=”Echte-19 (19)”><img src=”http://mm.777-partner.com/images/1758022_320x240.jpg” border=”2″ alt=”Echte-19″ width=”240″ height=”180″ /></a>

 

There is only one link / one pic in the postcontent.

Hope you can help me

August 5, 2011
11:54 pm
Avatar
Admin
Forum Posts: 3097
Member Since:
July 2, 2009
sp_userofflinesmall Offline

The following code should do the trick:

Login to see the code.

August 6, 2011
1:51 am
Avatar
Vadim
Guest
Guests

Thanks for that. It does the trick.

 

Greetings

Vadim

Forum Timezone: Europe/Moscow

Most Users Ever Online: 105

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 81

Freedom: 61

B8europe: 54

saviulisse67: 45

adultdenim: 44

allgoodies: 38

Member Stats:

Guest Posters: 350

Members: 1927

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1328

Posts: 6627

Administrators: CyberSEO: 3097