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

Duplicate Solved Notification?

$
0
0

@jomaxro wrote:

Putting in #bug, but I don't have a repro so feel free to move to #support if that is the case.

Just got 2 notifications that a post of mine was marked as solved. I've seen it before if the post that was marked as solved is changed, but I only have one post in the topic...

Posts: 3

Participants: 2

Read full topic


Custom Emoji not working in Profile Card

Rate limits for API users

$
0
0

@AstonJ wrote:

I want to create a sister app at some point that will post topics on to the forum via an API user account - is there any info available on rate limits for this? Can we 'trust' certain accounts so that rate limits do not apply?

Posts: 1

Participants: 1

Read full topic

Relocation of server caused e-mail send out to fail

$
0
0

@ohlafl wrote:

Hello!

Long time Discourse user here, never had any issues. Relocated the server today but booted up at the new location without any issues, everything working smoothly until I tested sending an e-mail. I get this stack trace:

/usr/local/lib/ruby/2.3.0/net/smtp.rb:542:in `initialize'
/usr/local/lib/ruby/2.3.0/net/smtp.rb:542:in `open'
/usr/local/lib/ruby/2.3.0/net/smtp.rb:542:in `tcp_socket'
/usr/local/lib/ruby/2.3.0/net/smtp.rb:552:in `block in do_start'
/usr/local/lib/ruby/2.3.0/timeout.rb:101:in `timeout'
/usr/local/lib/ruby/2.3.0/net/smtp.rb:551:in `do_start'
/usr/local/lib/ruby/2.3.0/net/smtp.rb:521:in `start'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/mail-2.6.5/lib/mail/network/delivery_methods/smtp.rb:113:in `deliver!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/mail-2.6.5/lib/mail/message.rb:2149:in `do_delivery'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/mail-2.6.5/lib/mail/message.rb:237:in `block in deliver'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionmailer-4.2.8/lib/action_mailer/base.rb:543:in `block in deliver_mail'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.8/lib/active_support/notifications.rb:164:in `instrument'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionmailer-4.2.8/lib/action_mailer/base.rb:541:in `deliver_mail'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/mail-2.6.5/lib/mail/message.rb:237:in `deliver'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionmailer-4.2.8/lib/action_mailer/message_delivery.rb:85:in `deliver_now'
/var/www/discourse/lib/email/sender.rb:184:in `send'
/var/www/discourse/app/jobs/regular/user_email.rb:41:in `execute'
/var/www/discourse/app/jobs/regular/critical_user_email.rb:10:in `execute'
/var/www/discourse/app/jobs/base.rb:154:in `block (2 levels) in perform'

We're running a local SMTP server for the delivery but that has worked flawlessly until the reboot. I have a hard time understanding the logs here, does anyone have any idea?

Posts: 5

Participants: 3

Read full topic

Search - Excluding keywords

$
0
0

@Paul_Turpie wrote:

Is it possible to exclude keywords from a search?

I recently wanted to recent search for posts about Microsoft Project on an IT Forum for schools that uses discourse. However, searching for "project" brought back lots of posts about "projectors".

Most forums would allow me to exclude projectors by searching for "project -projectors", but Discourse doesn't seem to allow it.

Posts: 2

Participants: 2

Read full topic

Request to join a group feature——How to remind people to add personal information?

$
0
0

@xiasummer wrote:

Now, when sb request to join a group, the message is so simple

I would like to apply for membership in @GroupName

But, I want them to add the information below (and I believe most people would think it usefull):

  • True Name

  • Gender

  • Age

  • Profession

and etc.

So how could I just Custmize such message?

Posts: 2

Participants: 2

Read full topic

Our team in the about page rather than our admins

$
0
0

@Pad_Pors wrote:

in the about page only our admins and our moderators are shown; while our team consists of the whole team and not only admin/mod roles.

isn't it better to show the team group in the about page?

the team group can be selected to be shown here in the group settings.

Posts: 2

Participants: 2

Read full topic

Api to fetch topic by page

$
0
0

@gchiu wrote:

I can see there is an api to retrieve a topic, and there is a chunk_size of 20 I see in the response.

How do I get the next page?

highest_post_number 33
deleted_by _
actions_summary [
    make map! [
        id 4
        count 0
        hidden false
        can_act false
    ]
    make map! [
        id 7
        count 0
        hidden false
        can_act false
    ]
    make map! [
        id 8
        count 0
        hidden false
        can_act false
    ]
]
chunk_size 20
bookmarked _
tags []
featured_link _
topic_timer _
message_bus_last_id 36

Posts: 3

Participants: 3

Read full topic


Custom permalinks not resolving in Hamburger Menu

$
0
0

@thirstforwine wrote:

I added a custom permalink to simplify the URL for an additional Guideline page - creating a topic link for my chosen page

/usernames to redirect to topicID 103

The permalink works fine if you type the new URL into the browser as you are redirected to the correct topic

I then added a short script to the </HEAD> section of the CSS/HTML customisation (as per this suggestion) which does, indeed, put the new link in the Hamburger menu with the chosen URL

However, clicking on this link loads the link page, but the site no longer resolves the custom permalink, so I get a Page Not Found error

If you then refresh the page, it works.

Is there a reason that loading a page via the menu does not resolve the permalink?

Posts: 5

Participants: 2

Read full topic

How to use the bbpress import script - or any other import script with mysql dependency

$
0
0

@lead4good wrote:

So, you've been weeping when you tried to execute the import script inside the docker container, it telling you that you haven't got the mysql gem installed even though you have. You've been trying for hours to setup a dev instance of discourse, failing hard. Weep no more, this will solve all your problems.

First we are going to set up a docker instance called 'import', which includes the mysql dependency, then we will set up the mysql database as an additional docker container ( if you cant access it otherwise) and then we will run the import script.

1.1. Installing Discourse

Install Discourse by following the official installation guide.

1.2. Preparing the Docker container

Copy the container configuration file app.yml to import.yml and edit it with your favorite editor.

cd /var/discourse
cp containers/app.yml containers/import.yml

nano containers/import.yml

Now inside containers/import.yml add - "templates/import/mysql-dev.template.yml" to the list of templates. Afterwards it should look something like this:

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.template.yml"
  - "templates/import/mysql-dev.template.yml"

That's it. You can save the file, close the editor and build the container and you will finally have mysql support inside your container.

/var/discourse/launcher stop app
/var/discourse/launcher rebuild import

2. Setting up the mysql database - optional

You don't have to do this step, if you can already access your database from within the docker container.

Put the mysql backup onto the machine you are running the discourse instance, change to the directory that contains the backup and start a mysql database instance like this:

docker run -d -e MYSQL_ROOT_PASSWORD=pass -e MYSQL_USER=user -e MYSQL_PASSWORD=pass -e MYSQL_DATABASE=db -v "$PWD":/backup --name=mysql mysql

Now enter the docker instance

docker exec -it mysql bash

and import the database

mysql -u$MYSQL_USER -p$MYSQL_PASSWORD $MYSQL_DATABASE < /backup/yourbackup.sql

finally grep your instances IP address for usage during the import

docker inspect mysql | grep IPAddress

3. Running the import script

Enter the import container you've created

cd /var/discourse
./launcher enter import

Open the bbpress import script

nano script/import_scripts/bbpress.rb

and adapt the mysql configuration

@client = Mysql2::Client.new(
      host: "172.17.0.X",
      username: "user",
      database: "db",
      password: "pass",
    )

Now you are good to go, to import run the script like this

su discourse -c "bundle exec ruby script/import_scripts/bbpress.rb"

Hopefully it succeeded and you can now move on to your next big thing!

Thx to @gerhard for his post on importing phpbb3

Posts: 1

Participants: 1

Read full topic

Error in discourse-setup around handling of Lets Encrypt

$
0
0

@Philip_Colmer wrote:

Running discourse-setup on an AWS instance results in the following error occurring:

Checking your domain name . . .
./discourse-setup: line 37: [: too many arguments


blah.example.com does not resolve to 172.30.1.83.
IT IS ALMOST CERTAINLY A BAD IDEA TO TURN ON LET'S ENCRYPT!!
Unless you know why this check failed, DO NOT USE Let's Encrypt.

That error is reasonably easy to fix - line 37 is using single [ but changing it to [[ and ]] fixes the "too many arguments" error but not the resolving problem.

For my host, I've CNAMEd blah.example.com (not the real server name!) to the underlying ec2 host name rather than the raw IP address. The bash variable RESOLVED_IP therefore doesn't get set to just the IP address, it gets set to something like:

ec2-52-90-11-22.compute-1.amazonaws.com. 123.123.123.123

where the last bit (123.123.123.123) is the actual IP address of the host and what RESOLVED_IP needs to be set to.

My bash skills aren't up to fixing that bit, otherwise I would and then submit a pull request but hopefully there is enough information there to help someone fix it.

Posts: 4

Participants: 2

Read full topic

Problem with enabling discourse-plugin-poll-ui

$
0
0

@pawelg wrote:

Hey guys,
recently I set up my own discourse forum. I wish to have a poll button in my Composer toolbar. I found the plugin for it (https://github.com/cpradio/discourse-plugin-poll-ui) but it looks incompatible with the current version of discourse.

When I opened the dev console I got error like below

I was trying to fix but after a few days of struggling, I don't have an idea how to fix it.

Could anybody take look into it?

PS. I took a look into topic related to this plugin but it's closed now :frowning: (https://meta.discourse.org/t/poll-ui-adding-polls-through-a-ui-in-the-composer-window/35133)

Posts: 8

Participants: 3

Read full topic

Which file to edit to insert button in the header?

$
0
0

@wiliamjoaquim wrote:

I need to insert a register button in the header, because with SSO enabled it disappears, which file should I edit?

Could you provide the code to insert for a button?

Posts: 3

Participants: 2

Read full topic

Unable to Edit a Topic after Posting

Category List Styling

$
0
0

@Thomas_Ralph1 wrote:

This is a screenshot of the category name styles from another discourse. Can someone tell me how i change my category list style to this?

Posts: 2

Participants: 2

Read full topic


Add likes and views to search display

$
0
0

@pfaffman wrote:

I'd like to add to the search page the number of likes and views a topic has received.

The json in https://site.com/search.json?q=whatever has the number of likes in the posts and for topics includes likes and views. I think it should be "easy" to pull that data out of the json payload and display it, but it's still not easy for me.

Posts: 1

Participants: 1

Read full topic

How do I access SSO external_id in widget?

$
0
0

@rohmann wrote:

I need to know my user's ID from the our external user database to connect an integration. Some context:
HBS

{{mount-widget widget="my-custom-widget" args=(hash user=user)}}

Widget

export default createWidget('topic-widget', {
  html(attrs, state) {
     console.log( attrs.user )
  }
});

I have the user, but it looks like there's no way to get the external ID from that object? How can I supplement this? Is there a way to have that property available on the model? Thanks!

Posts: 3

Participants: 2

Read full topic

Activity Summary - Alternative Layout

$
0
0

@pelcami wrote:

Since "Mailing List Mode - Send daily updates" is going to be removed, is there a way to create an option to utilize that format for the "Activity Summary?" (see below)

Perhaps the solution is a plugin that let us use the old "Mailing List Mode - Send Daily Updates" layout/format - and send it through the Activity Summary.

Requesting the indexing with number section removed.

It's the indexing at the top of this layout/format that is most useful to us. To be clear, I'm not suggesting replacing the current Activity Summary layout/format (as I understand it works for a lot of people). I'm requesting an alternative layout/format with indexing (sent out through the Activity Summary operation)

If it helps, I got department approval to pay someone $100 for it. I realize it's not much, but I really want to keep Discourse as our mailing list/campus communication platform and hope to work with the developer community to find options.

Posts: 1

Participants: 1

Read full topic

I can't get the welcome message to display

Topic Template "Templates"

$
0
0

@jomaxro wrote:

On one of my sites, we make significant use of topic templates. We use them as "forms", particularly in our "support" category where we ask for basic information "what's the problem", "software version", etc. Our support category has numerous subcategories, each corresponding to a product we support. Each subcategory, however, uses the same topic template. Currently, if we want to update the template we have to do so manually for every single subcategory. It would be nice if we could define Topic Templates elsewhere, something similar to the canned replies plugin comes to mind, where we can then reference a template in category settings. That way, we only need to make the change once, and all the categories are updated, instead of the current manual system.

Posts: 1

Participants: 1

Read full topic

Viewing all 60642 articles
Browse latest View live


Latest Images