May 4, 2011

Use ChatGPT to write your own PHP snippets for CyberSEO Pro | 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
Use ChatGPT to write your own PHP snippets for CyberSEO Pro
Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 Topic Rating: 0 (0 votes) 
January 19, 2023
5:58 pm
Avatar
CyberSEO
Admin
Forum Posts: 3687
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Many CyberSEO Pro users often ask to write a PHP snippet for CyberSEO Pro to perform this or that task. I do understand than not everybody knows PHP and especially such things as regular expressions. So why don’t use the ChatGPT power for that?

For example, you are importing a feed that contains some similar blocks of HTML code, you want to get rid of. For example, let’s consider those HTML blocks look like this:

Login to see the code

and this:

Login to see the code

The these blocks have different content, but they are similar, because they all have a same template.

So you need a regular expression, which will remove these similar blocks from the syndicating post content, which is stored in the $post[‘post_content’] variable (Login to see this link).

Here is a tip for you then. Open ChatGPT (Login to see this link) and give it the following assignment:

Login to see the quote

Just copy-paste the generated code to the “Custom PHP code” box of your feed settings and the magic will happenwink

You can do the same trick to generate a PHP code snippet for other task. Just make sure to formulate it correctly. If it won’t work, just tell it to ChatGPT and ask to fix it, according to your needs.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
2 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: 2653

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1541

Posts: 7776

Newest Members:

frajaros, federico_pac, rexfordkent, nick.jtsevents, christophe.megaphone, r94alves

Administrators: CyberSEO: 3687