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

Extensions in Development • Re: [3.2][3.3][RC] AI Labs with Midjourney, Pika, Claude, ChatGPT, DALL-E, Gemini, Gemini Vision and Stable Diffusion

$
0
0
This works great, apart from the SQL commands in your how-to, like
UPDATE <you_prefix>_posts
SET post_text = REGEXP_REPLACE(post_text,
'https://cdn\\.discordapp\\.com/attachments/([0-9]+)/([0-9]+)/([^.]+)\\.([A-Za-z0-9]+)(\\?ex=)?',
'<your_website_root_url>/ailabs/discord_cdn/cdn.discordapp.com/attachments/\\1/\\2/\\3?ext=\\4&amp;ex=')
WHERE post_text LIKE "%https://cdn.discordapp.com/attachments/%"
I end up with links like

Code:

https://www.mywebsite.com/ailabs/discord_cdn/cdn.discordapp.com/attachments/1/2/3?ext=4&ex=660dcd2f&is=65fb582f&hm=e5c7767448adb0846e2edf8862b446aa352f77d6d7a9ea89b493e6fdbd35c8d3&
where 1 and 2 and 3 should be the server/channel/imagename information I imagine...

I get this as an error instead:
Screenshot 2024-05-07 202128.png

Statistics: Posted by nou nou — Tue May 07, 2024 6:22 pm



Viewing all articles
Browse latest Browse all 2096

Trending Articles