Dynamic sidebar plugin

:warning: Warning 1: broken depending on the version of Discourse

:warning: Warning 2: Conflict with other plugins like discourse_tagging and polls


Continuing the discussion from [Solved]: Need a developer for several Discourse projects / customization:

Thanks to Vairix, an organization specialized on Rails who have help us with this, we can now share this customizations. We needed this for our organization, Territorio creativo.

The fourth one, it’s a plugin that adds a dynamic sidebar on the right:

https://github.com/tcreativo/plugin_discourse_dynamic_sidebar

Screenshots:


26 Likes

Thank you very much for putting these plugins out in the open!

Is the forum publicly accessible? It’d be nice to see these customisations live. I’m hoping the sidebar only shows on the topic indexes, seeing as it’d get in the way of the right-hand “gutter” if shown inside topics.

2 Likes

It seems that the forum is public: http://personasprimero.com
And it’s a very interesting D. forum, with good writing quality, critical discussions… I like it.

2 Likes

Twitter widget is not refreshed on the main page after the any topic view.

Isn’t it? I think that the widget shows updated tweets although the user doesn’t reload the page.

Thanks! :smile:
It’s on phase beta yet, but you can register if you want!

  • Open the site main page.
  • Navigate to any topic
  • navigate back to main page
  • see the screen
1 Like

Ok! I understand the issue now, we’ll look deeper to find the problem.

Thanks for this :heart:
Testing on my localhost it seems to work great for adding a text sidebar to the “list” pages.

Minor “bug”, on the Admin Setting page I was getting a wonky looking en.sidebar_settings menu button.

I don’t know if you wanted it to have it’s own button or be under the “plugins” button, but I think some simple config/ YAML tweaks should fix thinks up nicely.

tested

settings.yml

# sidebar_settings:

plugins:
  sidebar_content:
    default: 'text'
    client: ''
  active:
    default: false
    client: true

client.en.yml

en:
  admin_js:
    admin:
      site_settings:
        categories:
#          sidebar_settings: 'Sidebar Settings' 

          plugins: "Plugins"
2 Likes

That make sense!! If you want, send us a PR for this change. Thanks!

I would actually love to see this being put to use here on Meta.

dev

Put up feeds from GitHub Commits and Pull Requests

support

Have a simple HTML menu of most frequently asked questions. Maybe even a dynamic menu of most popular How-tos.

features

Taking it a little further: Dynamic list of most liked features.


The noise factor does bother me a little, but I think could be mitigated by making it a toggleable menu. Might mock it up later.

1 Like

The feature that you propose would be great, and useful for us, too.
However, at this moment we can’t dedicate time to develop this. If someone wants to make a PR, it would be welcome :smile:


By the way, we expected to see in this topic the opinion from @lightyear, that made a similar plugin.

Yeah. But a) I don’t know if that does work on vanilla DC at the moment (though I wouldn’t see why not), b) I recently disabled the replacing of the application template because of double overwrite problems with a third plugin and c) I haven’t had time to look at the plugin discussed here either. And I don’t want to speak up, unless I know what I am talking about :wink: .

What I can say, though, is that my sidebar plugin is widget-based, which are URL-aware and can be extended by other plugins. Meaning that for example tagger provides a widget where it shows the corresponding tags for a topic or category. The widget order can be defined in the admin settings.

2 Likes

Hi everyone,

Thanks for this plugin. Would it be possible to use this plugin (or possibly @lightyear discourse-plugin-sidebar to run Adsense in the sidebar? I would also like to be able to add some simple static images in the sidebar.

Thanks!

2 Likes

Quick update: @DavidGNavas tcreativo/plugin_discourse_dynamic_sidebar doesn’t seem to work on Discourse 1.2.0.beta3:

https://github.com/tcreativo/plugin_discourse_dynamic_sidebar/issues/3

Thanks for reporting the issue!
We will look at the changes in the code to try to resolve it (we were still using 1.2.0.beta1 on our site)

1 Like

Thanks very much David for taking a look at this! Much appreciated.

1 Like

Has anyone checked to see if it works with Beta4? Can’t wait until this one is resolved :smile:

I have beta4, checked. Didn’t work for me - crashed the markup and made it impossible to enter the admin interface.

I’m also on beta 4, it does not seems to work either. Although I can still enter the admin. The button has some strange test [en.undefined]. Nothing show up on main screen at all…