Notifications
Clear all

Replace functionality

3 Posts
3 Users
0 Likes
1,158 Views
Iokin Pardo
Posts: 6
Topic starter
(@iokinpardo)
Active Member
Joined: 5 years ago

Is possible to add the "Replace" functionality to the current existing " Search Phrase" option?

It could be very interesting to have a possible word replacement for the whole Forum.

Thank you very much

Topic Tags
SQL
2 Replies
Sofy
Posts: 4057
 Sofy
Admin
(@sofy)
Support Team
Joined: 5 years ago

Hi Iokin Pardo,

I'm sorry, but I don't follow you. Could you please clarify a bit? 

Reply
Robert
Posts: 9714
Admin
(@robert)
Support Team
Joined: 7 years ago

If you want to change X phrase located in all posts content to Y you should execute this SQL query in phpMyAdmin database manager of your cPanel or in other places for SQL queries:

UPDATE `wp_wpforo_posts` SET `body` = REPLACE (`body`, 'X', 'Y'); 

IMPORTANT:

  • Please backup wp_wpforo_posts table before this manipulation.
  • If your database table prefix is not wp_ , please change it in SQL query.
  • After this SQl you should delete website caches, then delete wpForo all caches in Dashboard > Forums > Dashboard admin page.
Reply
Share: