frold
2019 年9 月 11 日 19:53
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 个赞
frold
2019 年9 月 12 日 08:04
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 个赞
frold
2019 年9 月 23 日 14:43
4
If anyone sees the idea of the plugin and want to contribute - please join by adding your code…
1 个赞
frold
2019 年9 月 27 日 18:00
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 个赞
Is the colormag theme free?
frold
2019 年9 月 27 日 18:08
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
2019 年10 月 21 日 12:15
8
Now it support grayscale, or blur effect if random images is choosen
frold
2019 年11 月 27 日 13:13
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 个赞
Canapin
(Coin-coin le Canapin)
2020 年4 月 18 日 22:42
10
我也在使用 Colormag 主题,并且同样制作了一个小挂件,在侧边栏显示最新的论坛话题:
Bienvenue sur monocycle.info. Actualités, conseils, infos pratiques, wiki, forum… Rejoignez la communauté monocycle !
我不会分享代码,因为它非常非常混乱,我甚至没有进行任何 WordPress 设置。
但基本上,它会显示最新创建 的话题,并且排除了一些不太感兴趣的分类。
我使用 WP CRON 任务每天更新一次挂件内容。
1 个赞