3:53 am
May 11, 2017
Hello,
I managed to start CyberSEO and it is working like a charm. A lot of extras what makes it very flexible. I really like it.
In the beginning it was not fetching full text because after the install it has put wrong URL to full-text script. Just saying if anybody has the same problem. Check the URL in your settings to fix this.
Anyways now I would like to ask a small favor.
I would like to remove last image from the RSS posts. Usually It is an image of an author or a logo.
So, please could you give me the PHP code for..
1. removing last image
or
2. removing image with size under 10k
10x and all the best.
I think it's not a good approach to do as suggested above. The proper way would be to delete some exact pattern of HTML code. For example, the author logo image may have some special formatting (HTML tags), styles, div parameters etc. So the PHP snippet can find it and cut from the post's body. Please post your feed's URL or email it to Login to see this link
4:21 am
May 11, 2017
12:07 pm
May 11, 2017
Thanks admin!
I can read some php and know a bit regexp. I tested your code and wrote my regex. Non of them work.
This is my version I tested with
$post['post_content'] = preg_replace('/<div class="about-author row hidden-xs">([\s\S]*?<\/div>){7}/s', '', $post['post_content']);
$post['post_excerpt'] = preg_replace('/<div class="about-author row hidden-xs">([\s\S]*?<\/div>){7}/s', '', $post['post_excerpt']);
If I take original post page html and paste it into regex checker with this regex expression the unnecessary html is matched.
Why is not removed. I dont know.
4:03 pm
May 11, 2017
admin said
I think it's not a good approach to do as suggested above. The proper way would be to delete some exact pattern of HTML code. For example, the author logo image may have some special formatting (HTML tags), styles, div parameters etc. So the PHP snippet can find it and cut from the post's body. Please post your feed's URL or email it to Login to see this link
Most Users Ever Online: 541
Currently Online:
3 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
ninja321: 84
s.baryshev.aoasp: 68
Freedom: 61
Pandermos: 54
MediFormatica: 49
B8europe: 48
Member Stats:
Guest Posters: 337
Members: 2855
Moderators: 0
Admins: 1
Forum Stats:
Groups: 1
Forums: 5
Topics: 1642
Posts: 8357
Newest Members:
samuel2288, comercios.cercademi, wanmarkets, torontomark48, info.ckmedianetwork, contact.mybeautystarAdministrators: CyberSEO: 3949