





10:17 am

February 28, 2018

Im trying to remove the class "td-visible-desktop" from this feed full text extraction: Login to see this link
The code that im using is:
$post[‘post_content’] = preg_replace('/<div class\=[\"]td-visible-desktop[\"]\>(.*?)<\/div>/is', '',$post[‘post_content’]);
also tried:
$post[‘post_content’] = preg_replace('/<div class\\=[\\"]td-visible-desktop[\\"]\\>(.*?)<\\/div>/is', '',$post[‘post_content’]);
No good so far. Can you give me a clue?
A clue is Login to see this link
Please don't consider it as a joke or something like that, but regular expressions is the only thing that you can use in that particular case. The CyberSEO plugin allows to use any PHP code and the regular expressions of course. If you can't write it by yourself, you can order it from any PHP coder, including me.
P.S. Your code won't work because... it won't (I don't even understand it).
10:01 am

February 28, 2018

Just to give leave my solution if someone else needs it.
$post['post_content'] = preg_replace('/<div class="td-visible-phone">.*?<\/div>/is', '', $post['post_content']);
$post['post_content'] = preg_replace('/<div class="td-visible-desktop">.*?<\/div>/is', '', $post['post_content']);
$post['post_content'] = preg_replace('/<div class="td-a-rec.*?<\/div>/is', '', $post['post_content']);
Most Users Ever Online: 541
Currently Online:
14 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 86
s.baryshev.aoasp: 68
harboot: 62
Freedom: 61
Pandermos: 54
MediFormatica: 49
Member Stats:
Guest Posters: 337
Members: 2983
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1696
Posts: 8682
Newest Members:
bizmastersglobal, grzegorz.wieliczko85, jman020702, raffaellabonaschi, matogon, nduwawepAdministrators: CyberSEO: 4093