Flatpress blog with discord webhook
Flatpress blog with discord webhook
How would I do this?
So when a admin or I make a blog post I want it to create the post AND send a message to discord using the discord webhook system
I know how to create the discord webhook I just don't know how to send a POST request to it with some blog information
Thank you in advance
So when a admin or I make a blog post I want it to create the post AND send a message to discord using the discord webhook system
I know how to create the discord webhook I just don't know how to send a POST request to it with some blog information
Thank you in advance
Content Creator | Developer | Gamer
~ ScrapBlox (Alec)
~ ScrapBlox (Alec)
Re: Flatpress blog with discord webhook
I don't know anything about FlatPress itself. Maybe a detour via the feed provided by FlatPress will help.
-->> https://newbieto.com/gaming/how-to-setu ... ith-ifttt/
-->> https://newbieto.com/gaming/how-to-setu ... ith-ifttt/
Bäume spenden Schatten und Kettensägen Licht!
Re: Flatpress blog with discord webhook
Yeah, doing it as above with the RSS feed provided in Flatpress is how I have it set up on IFTTT.
Re: Flatpress blog with discord webhook
Maybe a detour via the feed provided by FlatPress will help.
Hi thanks for the suggestion to use IFTTT but how do I setup RSS with my blog?Yeah, doing it as above with the RSS feed provided in Flatpress is how I have it set up on IFTTT.
EDIT: This link is going to the rss.php page
That's the error I get
Content Creator | Developer | Gamer
~ ScrapBlox (Alec)
~ ScrapBlox (Alec)
Re: Flatpress blog with discord webhook
That's weird - FlatPress's RSS feed is actually clean. Are you using the current version 1.2.1 of FlatPress?
Can you test your feed here? I'm afraid there's a mistake somewhere.
-->> https://validator.w3.org/feed/
Can you test your feed here? I'm afraid there's a mistake somewhere.
-->> https://validator.w3.org/feed/
Bäume spenden Schatten und Kettensägen Licht!
Re: Flatpress blog with discord webhook
Ok so I just got done doing that and here is the results of itMadekozu wrote: ↑Mon May 02, 2022 1:00 pm That's weird - FlatPress's RSS feed is actually clean. Are you using the current version 1.2.1 of FlatPress?
Can you test your feed here? I'm afraid there's a mistake somewhere.
-->> https://validator.w3.org/feed/
Version of the blog ^^^ Blog feed validation ^^^
No clue what the feed validation means
Content Creator | Developer | Gamer
~ ScrapBlox (Alec)
~ ScrapBlox (Alec)
Re: Flatpress blog with discord webhook
I think I've got the right feed and I'm taking a closer look at it.
At the very top are three lines that aren't coming from FlatPress itself and are breaking the feed. Now we just need to figure out where the 3 lines are coming from.
Possible causes would be changes to the template or any plugins. Can you look in your /fp-interface/sharedtpls/rss.tpl to see if you happen to find the three lines at the top? If so - just get out - they really don't belong there.
At the very top are three lines that aren't coming from FlatPress itself and are breaking the feed. Now we just need to figure out where the 3 lines are coming from.
Code: Select all
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
Bäume spenden Schatten und Kettensägen Licht!
Re: Flatpress blog with discord webhook
Yo thank you so much the <head> & <meta viewport> tags were in the index.php file I've removed them and IFTTT will accept the URL nowMadekozu wrote: ↑Mon May 02, 2022 1:24 pm I think I've got the right feed and I'm taking a closer look at it.
At the very top are three lines that aren't coming from FlatPress itself and are breaking the feed. Now we just need to figure out where the 3 lines are coming from.
Possible causes would be changes to the template or any plugins. Can you look in your /fp-interface/sharedtpls/rss.tpl to see if you happen to find the three lines at the top? If so - just get out - they really don't belong there.Code: Select all
<head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head>
Content Creator | Developer | Gamer
~ ScrapBlox (Alec)
~ ScrapBlox (Alec)
Re: Flatpress blog with discord webhook
Very nice, glad I could help.
However, I wouldn't have come across index.php - I'll have to remember that.
However, I wouldn't have come across index.php - I'll have to remember that.
Bäume spenden Schatten und Kettensägen Licht!
Re: Flatpress blog with discord webhook
Brilliant!
Hopefully the information in here will help future users~
I wonder why that was giving an error though? Maybe something for the Flatpress devs to look into.
Hopefully the information in here will help future users~
I wonder why that was giving an error though? Maybe something for the Flatpress devs to look into.
Who is online
Users browsing this forum: No registered users and 38 guests