frold
September 11, 2019, 7:53pm
1
I have been able to make my first plugin for Wordpress and Discourse.
It let you change the wordpress theme not only to get content from articles - but now you can mix articles and forum posts. I have been able to recode the widgets for the colormag theme.
Im not a coder I have to say, just a sparetime coder who find it funny - so the code might be a little buggy and not the most beautyful
I did add 2 new widgets and by them you can either get the latest posts from a specific forum category (choosen from a dropdown) or the latest posts from your site.
Widget Style 1
With a output like
Widget Style 2
With a output like
It is controlled in wordpress with these settings:
You can see a live demo here:
http://colormag.liljefred.dk
The original theme you find here:
10 Likes
frold
September 12, 2019, 8:04am
3
Download :
You find the beta files here.
https://github.com/frold/Colormag-Wordpress-Theme-Discourse-Widget
But to reduce loading time it seems like it need some more skilled coder to go through the code…
I hope someone in the community want to help. As said in the first post, Im not a coder by profession.
1 Like
frold
September 23, 2019, 2:43pm
4
If anyone sees the idea of the plugin and want to contribute - please join by adding your code…
1 Like
frold
September 27, 2019, 6:00pm
5
What is the fatest?
To do at the moment : read date from the json file located at the distance server
Or let my script download the json file and then read data from the json file on the server where I run wordpress?
Im not that skilled coder and I need to speed up the script, so it is usefull
Preview (where I use my disourse forum):
Test: http://colormag.liljefred.dk/
1 Like
jtbayly
September 27, 2019, 6:04pm
6
Is the colormag theme free?
frold
September 27, 2019, 6:08pm
7
yes that’s the reason I use it as the template. You can buy a pro edition as well. This plugin should work with that edition too.
frold
October 21, 2019, 12:15pm
8
Now it support grayscale, or blur effect if random images is choosen
frold
November 27, 2019, 1:13pm
9
A new demo site - and live site (Im not able to edit the first post)
Studie, studieordninger, lægeliv, fagpolitik, boganmeldelser - ordet er dit ordet er frit hvad end du læser ved KU, SDU, AU, AAU eller er speciallæge
I have been running a forum for medical students in Denmark since 2001 - as a non-commercial and sparetime project. The last 10+ years I have been a medical doctor - but I still want to have a place for medical students and comming students - where they can debate.
I have been all the way around starting with phpBB2 , later phpBB3 for a short periode of time. Then I went to Joomla with Kunena as the forum.
In november 2017 I merged to Discourse. I have been a happy user ever since.
The new sit…
1 Like
Canapin
(Coin-coin le Canapin)
April 18, 2020, 10:42pm
10
I also use Colormag theme and I too made a small widget to add the last forum topics in the sidebar:
Bienvenue sur monocycle.info. Actualités, conseils, infos pratiques, wiki, forum… Rejoignez la communauté monocycle !
I won’t share the code since it’s very, very messy, I dont’ even made any Wordpress setting.
But basically, it display the last created topics and I excluded some less interesting categories.
I use a WP CRON task to update the content of the widget once a day.
1 Like