May 4, 2011

How to trim the standard part of the text in a post? | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





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

sp_TopicIcon
How to trim the standard part of the text in a post?
Topic Rating: 5 Topic Rating: 5 Topic Rating: 5 Topic Rating: 5 Topic Rating: 5 Topic Rating: 5 (1 votes) 
May 4, 2024
12:36 pm
Avatar
youwwwmaster
Member
Members
Forum Posts: 8
Member Since:
August 11, 2023
sp_UserOfflineSmall Offline

Each post has a standard part that is not highlighted with any special HTML tags. I read on the forum that  can remove this part of the text through the Expert tab and adding a special PHP code. But my knowledge of PHP is not enough to do this. If it’s not difficult, help me write the correct PHP code to remove this

Login to see the code

Thank you!

May 4, 2024
3:50 pm
Avatar
CyberSEO
Admin
Forum Posts: 3709
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Here is a quote from Login to see this link:

Login to see the quote

So in your case the code will look like follows:

Login to see the code

Since you say that you are not familiar with PHP, please note that a GPT assistant was created specifically for situations like yours, which is familiar with the CyberSEO Pro documentation. Just open it using Login to see this link in your browser and instruct the assistant to write a PHP snippet for CyberSEO Pro according to your specifications.

I’m not familiar with the content usage policies of the site you’re importing from, but it may be against the rules to remove source links. Therefore, I recommend that you contact the site owner and get official permission.

May 6, 2024
8:49 am
Avatar
youwwwmaster
Member
Members
Forum Posts: 8
Member Since:
August 11, 2023
sp_UserOfflineSmall Offline

Cool! Thanks a lot! With the help of Chat, GPT did everything I needed. Yes, I always leave links to sources, just in a different form. I needed to reduce the unnecessary burden on the translator and also reduce the cost of translation

The final code that trims the excess during preprocessing looks like this. (for those who suddenly read this thread in the future and so that they immediately have a solution, and not just the always annoying “Thank you, it’s solved!”)

Paste this* into the preprocessing section in the Expert section
*change the pattern to suit your needs

Login to see the code

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 64

Freedom: 61

MediFormatica: 49

B8europe: 47

saviulisse67: 45

Member Stats:

Guest Posters: 338

Members: 2667

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1549

Posts: 7829

Newest Members:

mark.frontiercreative, fairriverllc, josepatricioperalta, goran.o.aroga, betomanzoli, monefff

Administrators: CyberSEO: 3709