cosmin85 Active member Feb 21, 2019 #1 Hi , Any usefull query to change some text from threads directly from database (via phpmyadmin) ? eg. change textABC to ABC123 . I know that exists an addon (find and replace) but i dont understand it at all . Thanks.
Hi , Any usefull query to change some text from threads directly from database (via phpmyadmin) ? eg. change textABC to ABC123 . I know that exists an addon (find and replace) but i dont understand it at all . Thanks.
Solution P P Paul B Feb 21, 2019 SQL: UPDATE xf_post SET message = REPLACE(message,'current_content','new_content');
P Paul B XenForo moderator Staff member Feb 21, 2019 #2 SQL: UPDATE xf_post SET message = REPLACE(message,'current_content','new_content'); Upvote 3 Downvote Solution
Gene Steinberg Well-known member Aug 22, 2020 #3 How about resource descriptions in Resource Manager? Upvote 0 Downvote
Gri Active member Jun 27, 2022 #4 Brogan said: SQL: UPDATE xf_post SET message = REPLACE(message,'current_content','new_content'); Click to expand... Hi @Brogan, is it possible to delete something spesific? For example I'd like to remove ABC123 text from all messages? Upvote 0 Downvote
Brogan said: SQL: UPDATE xf_post SET message = REPLACE(message,'current_content','new_content'); Click to expand... Hi @Brogan, is it possible to delete something spesific? For example I'd like to remove ABC123 text from all messages?
Kruzya Well-known member Jun 27, 2022 #5 @Gri, just leave new_content as empty: SQL: UPDATE xf_post SET message = REPLACE(message, 'ABC123', ''); Upvote 0 Downvote
@Gri, just leave new_content as empty: SQL: UPDATE xf_post SET message = REPLACE(message, 'ABC123', '');
Gri Active member Jun 27, 2022 #6 Kruzya said: @Gri, just leave new_content as empty: SQL: UPDATE xf_post SET message = REPLACE(message, 'ABC123', ''); Click to expand... Thank you very much @Kruzya Upvote 0 Downvote
Kruzya said: @Gri, just leave new_content as empty: SQL: UPDATE xf_post SET message = REPLACE(message, 'ABC123', ''); Click to expand... Thank you very much @Kruzya
Gri Active member Jun 27, 2022 #7 I'm trying to remove this adsense code from posts. When I run this code, nothing happens, it says "0 rows affected". SQL: UPDATE xf_post SET message = REPLACE(message, '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-*****************" crossorigin="anonymous"></script>', ''); Note: I -of course- replaced real adsense id with ** Upvote 0 Downvote
I'm trying to remove this adsense code from posts. When I run this code, nothing happens, it says "0 rows affected". SQL: UPDATE xf_post SET message = REPLACE(message, '<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-*****************" crossorigin="anonymous"></script>', ''); Note: I -of course- replaced real adsense id with **
Kruzya Well-known member Jun 28, 2022 #8 How you inserted AdSense code? HTML cannot be used by default in messages. Upvote 0 Downvote
Gri Active member Jul 1, 2022 #9 Kruzya said: How you inserted AdSense code? HTML cannot be used by default in messages. Click to expand... With this add-on: Parse HTML Allow users with permission to post parsed HTML content. nixfifty.com Upvote 0 Downvote
Kruzya said: How you inserted AdSense code? HTML cannot be used by default in messages. Click to expand... With this add-on: Parse HTML Allow users with permission to post parsed HTML content. nixfifty.com