Quantcast
Channel: Discourse Meta - Latest topics
Viewing all 60707 articles
Browse latest View live

Curious case of Discourse not loading

$
0
0

Girish Padharthi wrote:

Hi,

Discourse page could not be loaded from one particular PC (Windows 7). Works just fine with others.

I observed this scenario while hosting a discourse server for my work group. This is also observed with https://meta.discourse.org/

Suspected that JavaScript might have been disabled. The below link suggests otherwise.

https://www.whatismybrowser.com/is-javascript-enabled

Could you suggest any solutions for fixing this?

Thanks for taking time to read this.

Posts: 3

Participants: 3

Read full topic


How To override an existing handlebars template from plugin - Part II

$
0
0

Benjamin Kampmann wrote:

The original discussion about How To override an existing handlebars template from plugin has been closed, so I'll leave the feedback here.

Did you actually test this?

I tried overwriting the menu header for a tiny plugin which just wants to add a "private message" button next to the "create topic" button for handy usage. But when I do it the way you describe it with a prefixed "javascript/", handlebar/ember generates the template into:

Ember.TEMPLATES["javascripts/navigation/default"] = Ember.Handlebars.compile("{{bread-...");

Which, for the obvious reason that it has the wrong name, doesn't get picked up of course. If instead you omit the "javascript/" (and of course move the file to the proper location) the application.js generation is fine

Ember.TEMPLATES["navigation/default"] = Ember.Handlebars.compile("{{bread-...");

But because the asset has the same name it seems to favor the first one it can find picked in the development environments javascript_tags-thing, making it a pain to develop and debug. Also it just feels not very thought-through nor reliable to be honest.

I personally would prefer a way to temper with templates (like inject your own stuff) before it gets compiled but I'm not sure that is easy to do.

Posts: 8

Participants: 5

Read full topic

Upgrade to `latest-version` through docker

$
0
0

Leo Bergnéhr wrote:

I love the docker hosting you've done, but I ran into something today when I was going to upgrade to the latest version:

This is what I get from the /admin/docker log after clicking upgrade:

$ cd /var/www/discourse && git pull
You are not currently on a branch, so I cannot use any
'branch..merge' in your configuration file.
Please specify which branch you want to merge with on the command
line and try again (e.g. 'git pull ').
See git-pull(1) for details.

This is my /var/docker/containers/app.yml

params
  # ssh key here ...
  # git revision to run
  version: latest-release

I think it's the first time I'm running with the latest-release tag and think that might be the problem. I'm having trouble finding some more info on that particular parameter and what's reasonable to set it to.

Before running the upgrade through /admin/docker I upgraded to the latest docker and pulled the latest bits from the docker repo, then did a launcher destroy/boostrap/start app cycle.

Posts: 7

Participants: 3

Read full topic

Merging authentication with our website?

$
0
0

To The Tick Llc wrote:

Is it possible to to merge Discourse user authentication with that of our website, so its a single login? any documentation on this?

Posts: 8

Participants: 5

Read full topic

Undefined method "excerpt" for Topic

$
0
0

Oleander wrote:

Just updated to v0.9.9 and got this error message in production (not development).

NoMethodError: undefined method `excerpt' for #Topic

Backtrace

activemodel-4.0.4/lib/active_model/attribute_methods.rb:439→ method_missing
activerecord-4.0.4/lib/active_record/attribute_methods.rb:167→ method_missing
active_model_serializers-0.8.1/lib/active_model/serializer.rb:99→ block in attribute
/(eval):20→ _fast_attributes
...
multi_json-1.9.2/lib/multi_json/adapters/oj.rb:20→ dump
multi_json-1.9.2/lib/multi_json/adapters/oj.rb:20→ dump
multi_json-1.9.2/lib/multi_json/adapter.rb:24→ dump
multi_json-1.9.2/lib/multi_json.rb:138→ dump
app/controllers/list_controller.rb:197→ block (2 levels) in respond
actionpack-4.0.4/lib/action_controller/metal/mime_responds.rb:191→ call
actionpack-4.0.4/lib/action_controller/metal/mime_responds.rb:191→ respond_to
app/controllers/list_controller.rb:194→ respond
app/controllers/list_controller.rb:55→ block (2 levels) in <class:ListController>
app/controllers/list_controller.rb:59→ block (2 levels) in <class:ListController>
actionpack-4.0.4/lib/action_controller/metal/implicit_render.rb:4→ send_action
actionpack-4.0.4/lib/abstract_controller/base.rb:189→ process_action
actionpack-4.0.4/lib/action_controller/metal/rendering.rb:10→ process_action
actionpack-4.0.4/lib/abstract_controller/callbacks.rb:18→ block in process_action
...
omniauth-1.2.1/lib/omniauth/builder.rb:59→ call
rack-1.5.2/lib/rack/etag.rb:23→ call
rack-1.5.2/lib/rack/conditionalget.rb:25→ call
rack-1.5.2/lib/rack/head.rb:11→ call
lib/middleware/anonymous_cache.rb:102→ call
actionpack-4.0.4/lib/action_dispatch/middleware/params_parser.rb:27→ call
actionpack-4.0.4/lib/action_dispatch/middleware/flash.rb:241→ call
rack-1.5.2/lib/rack/session/abstract/id.rb:225→ context
rack-1.5.2/lib/rack/session/abstract/id.rb:220→ call
...
activesupport-4.0.4/lib/active_support/tagged_logging.rb:68→ block in tagged
activesupport-4.0.4/lib/active_support/tagged_logging.rb:26→ tagged
activesupport-4.0.4/lib/active_support/tagged_logging.rb:68→ tagged
railties-4.0.4/lib/rails/rack/logger.rb:20→ call
config/initializers/quiet_logger.rb:10→ call_with_quiet_assets
config/initializers/silence_logger.rb:19→ call
actionpack-4.0.4/lib/action_dispatch/middleware/request_id.rb:21→ call
rack-1.5.2/lib/rack/methodoverride.rb:21→ call
rack-1.5.2/lib/rack/runtime.rb:17→ call
rack-1.5.2/lib/rack/sendfile.rb:112→ call
...
unicorn-4.8.2/lib/unicorn/http_server.rb:140→ start
unicorn-4.8.2/bin/unicorn:126→ <top (required)>
[GEM_ROOT]/bin/unicorn:23→ load
[GEM_ROOT]/bin/unicorn:23→ <main>

Params

{
  "action" => "category_latest",
  "category" => "my-cat",
  "controller" => "list"
}

Posts: 4

Participants: 3

Read full topic

Translations disambiguations

$
0
0

Julien Dumétier wrote:

At the request from @Maomao, as a translator we've got sometimes issues translating some messages, this thread will try to be the missing link between the dev team and the translators to help them provide the best translation possible.
Please @sam, @codinghorror, @zogstrip and the others... help us smile

Posts: 12

Participants: 6

Read full topic

'/' shortcut for search leaves a '/' in the search field

$
0
0

Leo Bergnéhr wrote:

When using the key shortcut / in Chrome to open up the search field, it also puts that character (/) in the search field. That seems like a bug to me.

Posts: 2

Participants: 2

Read full topic

Brand new plugin interface

$
0
0

Sam Saffron wrote:

I have been working on a heavily simplified plugin interface so its a lot easier for people to get started with extending Discourse.

For example:

Say you wanted to extend Discourse and add Ubuntu SSO to the dialog.

Place a file called plugin.rb in the directory plugins/ubuntu_sso

###plugins/ubuntu_sso/plugin.rb

# name: discourse-ubuntu
# about: ubuntu login support for Discourse
# version: 0.1
# authors: Sam Saffron, Marco Ceppi

auth_provider :title => 'with Ubuntu',
              :authenticator => Auth::OpenIdAuthenticator.new('ubuntu','https://login.ubuntu.com', trusted: true),
              :message => 'Authenticating with Ubuntu (make sure pop up blockers are not enbaled)',
              :frame_width => 1000,   # the frame size used for the pop up window, overrides default
              :frame_height => 800

register_css <<CSS

.btn-social.ubuntu {
  background: #dd4814;
}

.btn-social.ubuntu:before {
  font-family: Ubuntu;
  content: "U";
}

CSS

Run bundle exec rake assets:precompile
Restart you services.

Done, you have working Ubuntu SSO.

This interface is still not complete, as I finalize it I will be adding more examples here.

The /plugins directory is ignored by git so you can place your extensions there safely.

Longer term plans

  1. Possibly use a Rails::Engine for greater flexibility
  2. More hooks
  3. Admin UI to enable or disable plugins (with multisite support)
  4. Central plugin repo
  5. External gem dependencies

If you are interested in extending the interface etc, let me know.

cc @marcoceppi

Posts: 96

Participants: 44

Read full topic


How to upgrade?

$
0
0

Zach Alexander wrote:

I manage two (soon three) Discourse installations as part of a job I just started today. I need to upgrade, but I see no guides on how to do this.

I'm a Rails dev, and I can handle doing whatever manual steps I need to take, but I'm surprised there aren't any docs on upgrading in the repo (AFAICT). I could figure it out myself, but this is probably not the most efficient way to go about this.

Thanks in advance!

Posts: 7

Participants: 5

Read full topic

Operation not permitted when upgrading Docker Manager

$
0
0

Jeff Atwood wrote:

This is what i get when i try upgrading the docker manager:

Log

$ cd /var/www/discourse/plugins/docker_manager && git pull
error: unable to unlink old 'app/assets/javascripts/docker_manager.js' (Operation not permitted)
error: unable to unlink old 'app/views/docker_manager/admin/_git_status.html.erb' (Operation not permitted)
error: unable to unlink old 'app/views/docker_manager/admin/index.html.erb' (Operation not permitted)
error: unable to unlink old 'lib/docker_manager/upgrader.rb' (Operation not permitted)
Updating 866ebd6..4e34f7b

Posts: 5

Participants: 2

Read full topic

Add sso_overrides_avatar option for SSO Plugin

Category-specific moderators

$
0
0

Shiv Kumar wrote:

Is there currently a way to restrict a moderator's privileges to certain categories (and not all)? Maybe add it to the category's security settings?

Reason: let's say we're a company that gets a lot of help from 3rd parties. In our forum, we'd like to have separate categories for each of these 3rd parties, and have the 3rd parties moderate them (i.e. ability to close/delete a topic or move posts between topics). But we definitely do not want them to be able to moderate any of the other 3rd parties' categories or, worse yet, our company-specific categories.

Posts: 4

Participants: 4

Read full topic

Cursor out of place in CSS editor

Dynamically shown new/updated topics throw off counts

$
0
0

Bill Ayakatubby wrote:

This one's been bugging me for a while. After clicking the blue notification bar to see new/updated topics, the new and unread counts aren't updated. Both Firefox release on Win 7 and Chrome release on Win 8 desktop. In the following example, I had six new topics when I opened Discourse this morning. I waited until the blue bar showed up and clicked it. That gave me seven new topics and threw off the counts. This is what happened after reading one of the original six. (I forgot to grab screenshots before reading.)

Once I read the topic from the blue bar, the counts were back in sync.

Posts: 1

Participants: 1

Read full topic

User-selectable default home view preference

$
0
0

JP Gordon wrote:

It would be a nice option to have a modifiable home view (say, in Preferences). Thus, a user could select "Latest" as the default home view and another user could have "Categories".

Posts: 5

Participants: 3

Read full topic


Free Hosted Option?

$
0
0

greggman wrote:

Sorry not sure what topic this belongs under. but....

Have you considered a free hosted option? I know they are not quite the same thing but I've been using disqus.com for comments on my blog. It's awesome, they host it. That means they deal with spam issues, they deal with upgrades to the system. Of course there are tradeoffs

They have 1 login for all sites: Good: less hassle to use, track all threads from one place, reputation carries (not a spammer on one site assumes not a spammer on others) Bad: less granularity

They probably plan to mine for data: Good: can tell trends, etc. Bad: privacy

Sure I could host my own discourse installation but what I've found running a blog for 12 years now is it's no fun to do it myself. Sooner or later the spammers find a way in and I have hours of cleanup to do. Even if they never find a way in I have hours of maintenance. Disqus is mostly install and forget. Even cooler for wordpress it's pretty much risk free because it manages to insert the comments back into the wordpress database so if I ever quit disqus I don't lose my comments.

$49 a month is way too much for discourse for a personal blog that might only see 25-250 forum messages a year. Seeing as how facebook comments are free and disqus comments are free it seems like you might want to consider this as an option. Maybe the free option you reserve the right to insert some ads or something.

Posts: 42

Participants: 15

Read full topic

Should you be able to create subcategories with the same name as ones under another category?

Topic title stays docked in header when you navigate to 'preferences'

User unable to change "About Me" in preferences

$
0
0

Lowell Heddings wrote:

We have one user that is unable to change their about me section in their preferences. I tested it myself, and it seems like that field doesn't save.

Additionally, the field is currently displaying empty, and even if you put data into it, it won't save.

Posts: 4

Participants: 2

Read full topic

Broken homepage in Chrome

Viewing all 60707 articles
Browse latest View live




Latest Images