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

New badge, grant if post in category AND posted x posts anywhere

0
0

@SidV wrote:

Hello discourse's gorues, I need your help with a new badge.

I need:
* Grant a badge if user has created at least one topic in the "foo" category AND already posted 1000 post anywhere. Note that this will (should) only count posts that are public (not in categories that are restricted or private messages) or otherwise unrestricted (checkbox on edit category ignoring badges).

So I took two ideas, but I do not know how to merge them :frowning:

I take the idea from this "generic version" from a Badge for 1000 posts:

SELECT user_id, 0 post_id, current_timestamp granted_at
FROM badge_posts
WHERE (:backfill OR user_id IN (:user_ids) OR 0 NOT IN (:post_ids) )
GROUP BY user_id
HAVING count(*) > 1000

And "Grant a badge if user has created at least one topic in the "foo" category":

SELECT p.user_id, min(p.created_at) granted_at, MIN(p.id) post_id
FROM badge_posts p
JOIN topics t ON t.id = p.topic_id
WHERE category_id = (
  SELECT id FROM categories WHERE name ilike 'foo'
) AND p.post_number = 1
GROUP BY p.user_id

Extra comment, this badge does not targets posts.

I hope you can help me :thumbsup:

Posts: 1

Participants: 1

Read full topic


Welcome popup template for new users posting the 1st time

0
0

@needhelp wrote:

Hi All,

Can someone tell me where I can find this template so that I can edit the message a bit to suit my forum?

Below is the template I am talking about, this pop-up when a new user starts posting for the 1st time:

Welcome to xxx — thanks for contributing!

Does your reply improve the conversation in some way?

Be kind to your fellow community members.

Constructive criticism is welcome, but criticize ideas, not people.

For more, see our community guidelines. This panel will only appear for your first 2 posts.

Posts: 5

Participants: 3

Read full topic

Unable to login, post, reset-password etc., after update

0
0

@jdmf wrote:

9th of November I updated Discourse using CLI, and man have I had problems since.

Issues:
- Unable to post
- Unable to logout
- Unable to login (SSO, or directly)
- Unable to reset passwords

When I reset password using "rake admin:create", I'm sure my password is being reset, but I can not login. The system accepts the password, and never performs login.

I have disables all modules, to ensure no conflicts but still having issues. The server is behind AWS CloudFront, but when trying to login, change or update/create via CloudFront or directly on the server, I get same results.

Any good ideas here?

Johnny

Posts: 5

Participants: 2

Read full topic

Error while remaping posts

0
0

@Lapinot wrote:

Hi, I run the command rake posts:remap["forumalt","forum"] and I got this error message:

** Invoke posts:remap (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute posts:remap
rake aborted!
NoMethodError: undefined method `acting_user=' for nil:NilClass
/var/www/discourse/lib/post_revisor.rb:123:in `revise!'
/var/www/discourse/app/models/post.rb:428:in `revise'
/var/www/discourse/lib/tasks/posts.rake:135:in `block (2 levels) in <top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation/delegation.rb:46:in `each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/relation/delegation.rb:46:in `each'
/var/www/discourse/lib/tasks/posts.rake:130:in `block in <top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/task.rb:248:in `block in execute'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/task.rb:243:in `each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/task.rb:243:in `execute'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/task.rb:187:in `block in invoke_with_call_chain'
/usr/local/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/task.rb:180:in `invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/task.rb:173:in `invoke'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/application.rb:152:in `invoke_task'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/application.rb:108:in `block (2 levels) in top_level'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/application.rb:108:in `each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/application.rb:108:in `block in top_level'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/application.rb:117:in `run_with_threads'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/application.rb:102:in `top_level'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/application.rb:80:in `block in run'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/application.rb:178:in `standard_exception_handling'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rake-11.2.2/lib/rake/application.rb:77:in `run'
bin/rake:4:in `<top (required)>'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `load'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:27:in `run'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:332:in `exec'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:20:in `dispatch'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:11:in `start'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/exe/bundle:34:in `block in <top (required)>'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/exe/bundle:26:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => posts:remap
Remapping

I had to undergo some dirty migration/upgrade not long ago, it may be related...

Posts: 3

Participants: 2

Read full topic

Has anyone actually migrated from SMF to Discourse, successfully?

0
0

@dsanchez wrote:

Has anyone accomplished this?

How did your users took the change? Do they like it more now?

Is still not possible to migrate polls? My forum (SMF 2.0.12) has nearly 5K users and 100K posts and I am really interesting in migrating the whole thing to Discourse because of its very modern interface (SMF development is unfortunately very slow) My forum has several polls so not migrating them is not an option.

I don't mind about private messages and plan to allow users to access the old forum if they want to access them.

Any advise from those who actually migrated? Can you share your history?

Thanks!

Posts: 10

Participants: 4

Read full topic

I have lots of third party plugins and a Discourse upgrade broke my site

0
0

@ewanly wrote:

I just did a rebuild and I lost access to the site - Only my CSS menu showing! Completely white screen.
I did rebuild again, I did restarted my droplet but nothing changed.
Could you please check on the last commit!

Posts: 17

Participants: 5

Read full topic

Can the categories tab be selected by default?

0
0

@dsanchez wrote:

so that is the user's default view when accessing Discourse? this way it will look like the "old" web forum style.

Posts: 2

Participants: 2

Read full topic

Summary Email feedback

0
0

@neil wrote:

The new summary email design is now checked into master and live on this site. Please post feedback and bugs about it here.

We tested extensively in Litmus to make sure the email will look "right" in most common email clients.

Example screenshot below, as viewed in GMail web, using live data from meta.discourse (click to view full size, it is very tall)


  • "New in ... you follow" is squished on mobile due to too many columns. Put category under topic title in the same column.
  • :white_check_mark: "Join the discussion" is too long / verbose. Use "Read more" instead?
  • We should make sure tags are included in addition to categories for sites that have tagging enabled

Posts: 3

Participants: 2

Read full topic


Mailing list mode and email addresses

0
0

@tobiaseigen wrote:

Hi all - I am struggling with something and not immediately finding a post about it here on meta. I have a community I am setting up where everyone has mailing list mode turned on by default. They'd like to be able to see each other's email addresses in the emails, like a mailing list or a google group, so they can reply directly to each other. Is there not a setting for this somewhere?

Also, can someone please remind me if there is a reason to use a different email address for the notification email and the reply-by-email address?

Thanks!

Posts: 3

Participants: 3

Read full topic

No image zoom on mobile

How do I change the default greyed words to another sentence?

0
0

@ronald_dee wrote:

When you create a topic, there is "What is this discussion about in one brief sentence?".

How do I change this from the admin panel, is this possible? Thanks!

Posts: 5

Participants: 3

Read full topic

Outstanding support from the team at Discourse.com

0
0

@PeterButton wrote:

Back in April last year I started a Discourse community for a client. We chose to use Discourse.com for hosting.

Things started well with the community, but for a number of reasons momentum was lost. I contacted the support team at Discourse and let them know what was happening. It was always possible that momentum might be re-established, but I was insufficiently confident and I eventually had to stop our subscription payments.

In the last couple of days circumstances have changed. It's not certain that everything will now continue but it was sufficiently likely that I contacted @neil and @codinghorror to ask what might be possible. Was I facing the need to start again from scratch or might it be possible to recover the previous work?

They located their backup and had the site up and running in a little over 24 hours.

I'm hugely impressed. Thanks very much indeed.

Posts: 1

Participants: 1

Read full topic

It does not work in an open links in a new tab

Decorating all external links

0
0

@Overgrow wrote:

Hello,
I'd like to mark external links (links except from own domain) with an arrow through css.. Do I need to modify all es6 functions that parse links or is there simple way?

if (DiscourseURL.isInternal(href))

Also I'm not sure if this is definitive list of sources where links are parsed and styled

_showLinkCounts()  in /app/assets/javascripts/discourse/widgets/post-cooked.js.es6
linkHtml(link) in app/assets/javascripts/discourse/widgets/post-links.js.es6
html(attrs, state) in /app/assets/javascripts/discourse/widgets/topic-map.js.es6

Thanks in advance!

Posts: 5

Participants: 3

Read full topic

Can't login from Smartphone

0
0

@dsanchez wrote:

when I click the blue "login" button, nothing happens. To login to this website I had to use my laptop;.

Posts: 5

Participants: 4

Read full topic


Editing post without bumping up last activity date

0
0

@needhelp wrote:

Hi All

Is there a way for admin to edit a post without bumping up the last activity date?

I have imported contents into Discourse and am in the process of cleaning up some older posts that contain spam or unauthorized links. Each time I edited a post in my forum, it bumps the post's last activity date and bring the post to the top of the forum.

Some of these posts I edited are very old so it looks odd that they are bumped to the top.

Thanks.

Posts: 2

Participants: 2

Read full topic

Data Explorer fails to run

0
0

@fefrei wrote:

In Discourse 1.7.0.beta7, the (up-to-date) data explorer plugin fails to run queries for me :sadpanda:

It fails to run with the following error:

This affects multiple of my instances, do it doesn't appear to be a local problem.

Posts: 2

Participants: 2

Read full topic

Navigation - Add custom menu items

0
0

@vinothkannans wrote:

discourse-navigation


Discourse on Codiss

About

Plugin to add a custom menu items / nav links to your Discourse website automatically (without any coding / programming tweaks).

Supported Menus

List of currently available locations where the custom menu links can be added.

PR submitted in official Discourse repo to resolve Footer Links issue.

Screenshots


Installation

Repo is at: https://github.com/vinkas0/discourse-navigation

In your app.yml add:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/vinkas0/discourse-navigation.git

And then rebuild the container:

./launcher rebuild app

Configuration

You can easily add your custom menu links in /admin/plugins/navigation path.

Posts: 1

Participants: 1

Read full topic

Creating new tags issue

0
0

@akaAlso wrote:

I'm not able to create new tags recently, I get redirected to a tags page showing the few that have been created previously with the heading
Oops! That page doesn't exist or is private
This happens if I try to create a new tag in a topic and also in the tags group page when I tried following the tagging how-to.

If I add an existing tag to a new topic I get immediately taken to the topics summary page for that tag as though I'd selected the filter from the ribbon.

I believe I'm on 1.6, on a discoursehosting instance...(how do I check, "about" is usually where I'd look to check versioning?)

Posts: 3

Participants: 2

Read full topic

Staged accounts created for bounced emails

0
0

@David_Taylor wrote:

I get a few spam emails sent to my forum domain, and discourse correctly bounces these with the error email_reject_bad_destination_address. However, each time this happens a staged user account is created, which I then have to manually reject.

Is this intended behaviour?

Posts: 2

Participants: 2

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images