Colormag Wordpress Theme Discourse Widget

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 :slight_smile:

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개의 좋아요

To do’s

  • find someone who can review the code
  • some kind of cache for random images
  • eg add a greyscale or blur option for random images or both
    – ?grayscale
    – ?blur
    – ?grayscale&blur
  • style optimation
    – are all div tags closed?
  • add more option in the admin page
2개의 좋아요

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… :frowning:

I hope someone in the community want to help. As said in the first post, Im not a coder by profession.

1개의 좋아요

플러그인의 아이디어를 보시고 기여하고 싶으신 분은 코드를 추가하여 함께해 주세요… :smiley:

1개의 좋아요

가장 빠른 방법은 무엇인가요?

현재 해야 할 일: 원격 서버에 있는 JSON 파일에서 날짜를 읽기

아니면 내 스크립트가 JSON 파일을 다운로드한 후, 워드프레스를 실행 중인 서버의 JSON 파일에서 데이터를 읽는 것이 더 나을까요?

저는 코딩에 그다지 능숙하지 않고 스크립트를 빠르게 만들어야 하므로 도움이 될 만한 조언을 구합니다. :slight_smile:

미리보기 (디스커스 포럼을 사용하는 곳):

테스트: http://colormag.liljefred.dk/

1개의 좋아요

colormag 테마는 무료인가요?

네, 그래서 이걸 템플릿으로 사용하거든요. 프로 에디션도 구매할 수 있어요. 이 플러그인은 그 에디션에서도 작동할 거예요.

이제 그레이스케일 또는 랜덤 이미지가 선택될 때 블러 효과를 지원합니다.

새로운 데모 사이트 - 그리고 라이브 사이트 (첫 번째 게시물을 수정할 수 없습니다)

1개의 좋아요

저도 Colormag 테마를 사용 중이며, 사이드바에 최근 포럼 주제를 추가하기 위해 작은 위젯을 만들었습니다:

코드가 매우, 매우 지저분해서 공개하지 않겠습니다. 워드프레스 설정도 만들지 않았습니다.
하지만 기본적으로는 가장 최근 생성된 주제를 표시하고, 덜 흥미로운 몇몇 카테고리는 제외했습니다.
WP CRON 작업을 사용하여 위젯의 내용을 하루에 한 번 업데이트합니다.

1개의 좋아요