Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1848

phpBB Custom Coding • Re: Some useful SQL

$
0
0
This will set all links stored in posts, signatures, the website in profiles and private messages to https.

This shouldn't be much of an issue since most sites are https these days but just be aware if they aren't links/embedded images are going to break.

You will need to edit phpbb_ prefix if yours is different.

Code:

UPDATE phpbb_posts SET post_text = replace(post_text, 'http://', 'https://');UPDATE phpbb_privmsgs SET message_text = replace(message_text, 'http://', 'https://');UPDATE phpbb_users SET user_sig = replace(user_sig, 'http://', 'https://');UPDATE phpbb_profile_fields_data SET pf_phpbb_website = replace(pf_phpbb_website, 'http://', 'https://');

Statistics: Posted by thecoalman — Tue Dec 24, 2024 5:56 pm



Viewing all articles
Browse latest Browse all 1848

Trending Articles