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

SSO when using social login

$
0
0

@Sailsman63 wrote:

I noticed something when using a discourse instance centered around an OSS package. The community uses discourse as the SSO provider for their wiki, among other things.

When trying to access edit mode in their wiki, I get asked for my discourse username and password, even if I am already logged in to the forum site. I only log in using my major social account, so have never set up a password. Is this:

  • expected behavior, get over it?
  • bug?
  • possibly a quirk in the setup of that particular instance?

One thing is that this is not well documented from the user end.

Posts: 1

Participants: 1

Read full topic


Advanced but detailed installation guide

Is there a way to switch from last topic column to last post column on category page?

Broken poll in two places

$
0
0

@bedhed wrote:

We have wrong results in a poll:

  • -1% and full bar

  • result change 6 people swore this answer got the most vote (34%) (which lead to an operationnal decision involving 20 people). There could not have been more than 1 or 2 voters after, so not enough to change the percentage so much.

Context:
- No edit in the poll
- Poll was not closed/reopened
- The poll content is quite long/complicated:

(poll type=multiple name=b min=1 max=3)
- Les responsables de Ruches isolés
- Les "couples" de R voisines (à moins de 10km) situées l'une en agglo, l'autre en rural
- Les RR qui souhaitent se grouper avec un coresponsable afin de passer à un rythme hebdo
- Les RR dont on entend jamais parler... pour le meilleur ou pour le pire !
- Celles qui sont en bi-mensuel et qu'on doit appeler pour leur proposer de passer en hebdo
- Les ruches volontaires (qui veulent bouger, qui écoutent nos conseils) qui ont CA <1000 € / distrib
- Les ruches dont VA faible par rapport à leur potentiel, dans grandes villes par exemple
- Les ruches dont VA atteint des records pour les féliciter, les valoriser
- Les ruches dont les distributions ne sont pas régulières
- Les ruches qui ont ouvert il y a 4 mois
- Les Ruches qui mettent les prods en concurrence
- Les R aux messages répétitifs
- Ruches entre 500 et 1000
- Ruches > 2000
- Ruches de + de 2 ans
- Ruches qui ont des difficultés avec les réseaux sociaux
- Ruches qui galèrent à faire une offre cohérente

(/poll)

Posts: 5

Participants: 2

Read full topic

Can't get email to work, have some issues getting started

$
0
0

@Allard_Schipper wrote:

(Note: I posted this with the email troubleshooting guide and Jeff Attwood suggested I post this here).

I just got Discourse installed on a Mac. First hurdle I cannot figure out is that I am not getting emails to verify new accounts. I configured smtp in discourse.conf. I can't find app.yml though or a launcher. Probably a complete beginner's problem (have no real experience with RoR or Ruby). Thanks for any help!

Posts: 8

Participants: 4

Read full topic

Get all members location?

$
0
0

@Matthieu wrote:

Hi,

Maybe it is a bit borderline in term of data privacy but I would like to have a map with the country location of our community members, i.e. x in US, y in France, etc ...

I know I can do it in the admin panel using the ip lookup but is there a way to do obtain this info for all users easily ? Extract a list or something like this ?

Thanks

Posts: 6

Participants: 4

Read full topic

List of css variables

$
0
0

@markb wrote:

Does anyone have a full list of css variables which can be changed such as this one I was told about earlier:-

.category-description {
color: black;
}

Posts: 8

Participants: 4

Read full topic

How to get and delete comment in Topic?


Oddities after 1.5.0.beta6 upgrade

$
0
0

@joshmings wrote:

We've updated to the latest 1.5 beta (ran the Docker Manager update just before) and we get several odd issues.

Both upgrades (seem to have) went fine. I've restarted docker and the container, no luck.

Posts: 6

Participants: 4

Read full topic

Adding helpers to existing controllers from plugin

$
0
0

@deviousmachin3 wrote:

I'm working on a plugin right now and part of the requirements are that I display some information not only on the profile page of a user but the profile preview user-card, inside the profile main page the controller has access to a method called viewingSelf yet the same does not exist for the user-card.

How can I go about extending the user-card controller to support this method? Keep in mind this must remain isolated to my plugin and I cannot modify discourse itself in anyway.

Posts: 1

Participants: 1

Read full topic

Header search plugin

$
0
0

@angus wrote:

Description

Plugin repository

This plugin makes the search bar visible in the header in the Desktop UI and hides the search menu icon. It only affects the Desktop UI. It does not affect mobile web.

By default, the header search bar is hidden, and the normal search menu icon reappears, when you scroll down on a topic. This is to allow the topic title, category labels and tags to display (aka the 'extra info').

You can override the extra info and have the search input display instead by checking the setting override extra info in Settings > Plugins.

Known issues

The search UI suffers from the same issues as the current discourse search UI (as of 12/08/15), namely:

  1. If you enter a search term, then delete it, the search results do not get updated, leaving you with an empty input and the results of your prior search term: http://quick.as/VjbYSqvAG

  2. If you enter a search term, then delete it, then go to 'full page search', a single letter of your prior search remains, on an otherwise blank page: http://quick.as/gLbJu98oX

Posts: 1

Participants: 1

Read full topic

Here's how to make a badge for the answer with the most likes in a topic!

$
0
0

@stevenpslade wrote:

Continuing the discussion from What cool badge queries have you come up with?:

I wanted to give a badge if a user's answer had received the most likes in a topic. Here's what I came up with:

SELECT topics.id AS topic, posts.id AS post, users.id AS user_id, users.title, MAX(posts.like_count) AS like_count, CURRENT_TIMESTAMP granted_at
  FROM topics
  JOIN posts ON topics.id = posts.topic_id
  JOIN users ON users.id = posts.user_id
  WHERE posts.like_count > 0
    AND (:backfill OR pa.post_id in :post_ids)
  GROUP BY topics.id, posts.id, users.id, users.title
  HAVING MAX(posts.like_count) >= (
    SELECT MAX(p.like_count)
	FROM topics t
        JOIN posts p ON t.id = p.topic_id
        JOIN users u ON u.id = p.user_id
       WHERE t.id = topics.id
       GROUP BY u.id ORDER BY max desc LIMIT 1)
  ORDER BY MAX(posts.like_count) DESC;

Posts: 1

Participants: 1

Read full topic

Create new user through API using Zapier - Webhooks

$
0
0

@lenny9 wrote:

Hi,
My goal is to create a new discourse user, using a zapier webhook. Anyone have experience, or can point me in the right direction?

In a Zapier zap I get an email address and a unique password. Want to send a webhook to my (discourse hosted) discourse to create and activate this user.

I found a nr of posts here, but cannot tie it together. I am not a developer, but have used zapier a lot for many build in integrations.
What do I fill in? See Zapier screenshot...
- Where do I fill in my discourse api key and admin username?
- where do I put the email / password
- can I use the before@ part as username (as discussed here)
- Is this possible at all, using zapier?

If anyone can give e a few hints I would be most grateful!

Lennart

Posts: 1

Participants: 1

Read full topic

Install error : Protocol violation

$
0
0

@ivanrlio wrote:

Hi guys,

I am following this guide (https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-mac-os-x-for-development/15772). I'm having an issue with installing Discourse (the same error as, https://meta.discourse.org/t/install-error-protocol-violation-with-postgresql/35160) and have ensured that the 'config/database.yml' attribute 'prepared_statements = false'.

My versions:

➜ discourse git:(master) ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin15]
➜  discourse git:(master) rails -v
Rails 4.2.4
➜  discourse git:(master) psql --version
psql (PostgreSQL) 9.4.5

   List of installed extensions
  Name   | Version |   Schema   |                            Description
---------+---------+------------+-------------------------------------------------------------------
 hstore  | 1.3     | public     | data type for storing sets of (key, value) pairs
 pg_trgm | 1.1     | public     | text similarity measurement and index searching based on trigrams
 plpgsql | 1.0     | pg_catalog | PL/pgSQL procedural language
(3 rows)

The error:

== Seed from /Users/ivanrlio/discourse/db/fixtures/002_groups.rb
rake aborted!
ActiveRecord::StatementInvalid: PG::ProtocolViolation: ERROR:  bind message supplies 1 parameters, but prepared statement "a1" requires 0
: SELECT  "groups".* FROM "groups" WHERE "groups"."id" = 0 LIMIT 1
/Users/ivanrlio/discourse/app/models/group.rb:236:in `lookup_group'
/Users/ivanrlio/discourse/app/models/group.rb:222:in `block in ensure_automatic_groups!'
/Users/ivanrlio/discourse/app/models/group.rb:221:in `each_key'
/Users/ivanrlio/discourse/app/models/group.rb:221:in `ensure_automatic_groups!'
(eval):1:in `block (2 levels) in run_file'
PG::ProtocolViolation: ERROR:  bind message supplies 1 parameters, but prepared statement "a1" requires 0
/Users/ivanrlio/discourse/app/models/group.rb:236:in `lookup_group'
/Users/ivanrlio/discourse/app/models/group.rb:222:in `block in ensure_automatic_groups!'
/Users/ivanrlio/discourse/app/models/group.rb:221:in `each_key'
/Users/ivanrlio/discourse/app/models/group.rb:221:in `ensure_automatic_groups!'
(eval):1:in `block (2 levels) in run_file'

Any help would be much appreciated.

Thanks

Posts: 4

Participants: 3

Read full topic

Remove a site from a multisite instance

$
0
0

@eriko wrote:

My search foo is failing me. I have set up our docker instance to support multisite and it is working well. Of the sites that we created for workgroups a couple have not caught on and I want to remove them. I can remove the entry from the multisite.yml config and delete the databases but I think that there may be more cruft remaining after I do this. Where else should I look for debris?

Posts: 2

Participants: 2

Read full topic


1000+ new posts on hosted instance despite no new posts

Cannot remove a banner post that is unlisted

$
0
0

@jomaxro wrote:

When a post is unlisted by a mod/admin, the option to pin the topic is removed from the wrench menu. This is expected, as one should not be able to pin an unlisted topic. However, when the topic is a pinned as a banner, it would appear that it remains a banner even after being unlisted, and there is no option to take the banner down as that is part of the "pin" menu.

Posts: 3

Participants: 2

Read full topic

Sidekiq: Jobs::UserEmail.delayed_perform failing for one user

$
0
0

@Yuun wrote:

Running on latest, and the job appears to only be failing for the one user.

From Sidekiq:

Job
Jobs::UserEmail.delayed_perform

Arguments
{:type=>:user_replied, :user_id=>84, :notification_id=>19276, :current_site_id=>"default"}

Error
Jobs::HandledExceptionWrapper: Wrapped ArgumentError: uncaught throw :exception

From /logs:

Info:
Job exception: uncaught throw :exception

Backtrace:
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/i18n-0.7.0/lib/i18n/backend/base.rb:37:in `throw'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/i18n-0.7.0/lib/i18n/backend/base.rb:37:in `translate'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/i18n-0.7.0/lib/i18n/backend/fallbacks.rb:38:in `translate'
/var/www/discourse/lib/freedom_patches/translate_accelerator.rb:128:in `translate'
/var/www/discourse/lib/email/message_builder.rb:100:in `body'
/var/www/discourse/lib/email/message_builder.rb:113:in `build_args'
/var/www/discourse/lib/email/message_builder.rb:9:in `build_email'
/var/www/discourse/app/mailers/user_notifications.rb:323:in `send_notification_email'
/var/www/discourse/app/mailers/user_notifications.rb:223:in `notification_email'
/var/www/discourse/app/mailers/user_notifications.rb:99:in `user_replied'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionmailer-4.2.4/lib/action_mailer/base.rb:596:in `block in process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionmailer-4.2.4/lib/action_mailer/base.rb:593:in `process'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionmailer-4.2.4/lib/action_mailer/base.rb:584:in `initialize'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionmailer-4.2.4/lib/action_mailer/message_delivery.rb:25:in `new'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/actionmailer-4.2.4/lib/action_mailer/message_delivery.rb:25:in `__getobj__'
/usr/local/lib/ruby/2.0.0/delegate.rb:70:in `method_missing'
/var/www/discourse/lib/email/sender.rb:26:in `send'
/var/www/discourse/app/jobs/regular/user_email.rb:69:in `execute'
/var/www/discourse/app/jobs/base.rb:154:in `block (2 levels) in perform'

I don't have further info on hand, but I believe I've seen this issue with this user before. They have a valid email address and can receive emails from Discourse generally, but this job doesn't want to go through.

Insofar as it's just the one user and (maybe) the one notification I'm not hugely worried, but I wanted to log this in and see if there's anything I should/can do to remedy the situation. Thanks again for the time on this. :smile:

Posts: 2

Participants: 2

Read full topic

How to set a default category for a new topic?

$
0
0

@boopathi_s wrote:

i want to create a new topic during creation of topic it shows options for select a category instead of that i wish to show a category names. or default category names. Is there any changes has to be done in settings? suggest me

Posts: 1

Participants: 1

Read full topic

Plugin idea: Image optimization with WebP

$
0
0

@erlend_sh wrote:

Inspired by this:

When pictures are uploaded or locally downloaded, Discourse generates a WebP version of that image which it'll use if it detects a compatible browser.

  • Should probably only use WebP for thumbnails. Expanded images should always be the source file.
  • Maybe the best approach would be a lightweight "standalone service" the way Discourse's avatar generator works.

Posts: 2

Participants: 2

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images