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

SSO Settings Help

$
0
0

@charliel wrote:

We run a WordPress site and want to use Discourse as our forum, to replace bbPress.

Our current issue is that if a new user (not registered on WP) is on Discourse, clicks login then registers through WP, he ends up on our homepage, not the forum page. Now I’m wondering if this is because right now our Discourse forum is on oursitename.ourhostingsite.net so the domains are different.

Then I’m looking in the settings and wondering if

enable sso provider

Implement Discourse SSO provider protocol at the /session/sso_provider endpoint, requires sso_secret to be set

Should be ticked? Currently we have ticked enable sso and filled in the sso url and secret.

So basically, what’s the difference between enable sso and enable sso provider? Should both be ticked? Why might new users not be re-directed to the forum after signup?

Thanks.

Posts: 1

Participants: 1

Read full topic


Issue with sending a message to a private group

$
0
0

@alehandrof wrote:

Let’s say you have a private group called foobar set up like this:

Capto_Capture 2017-11-06_14-29-53_

  • “Who can see this group?” → “Group owners, members and admins”
  • “Who can message this group?” → “Only group members, moderators and admins”

If a member of the group tries to send a message to it by creating a new message and typing foobar in the “Add user…” field, they’ll fail. The system will not list foobar as a selectable choice.

If you change “Who can see this group?” to “Everyone”, you’ll be able to select the group and send a message to them.

Note that AFAICT, it’s solely a UI issue. Even when the group’s visibility was limited a member of the group could send a message by going to the group’s page (e.g., https://connect.amicalnet.org/groups/foobar) and using the “Message” button available there.

Posts: 1

Participants: 1

Read full topic

Changing Lanes: Nudging people to move discussions to more appropriate tools

$
0
0

@mcwumbly wrote:

I have this vague recollection of @codinghorror referring to the idea below as “changing lanes” in a post somewhere, but I can’t find it


Continuing the discussion from HTML/RTF pasting:

I completely agree. Google Docs is a great solution for collaborative editing. The discussions in the margins can be more appropriate in the doc as well, particularly if they are serving to help push doc itself in a particular direction (suggestions for re-wording, etc).

That often segues into longer conversations in the margins of the docs. We’ve experimented a bit with nudging people to move those discussions to Discourse when they start to happen, but the line between the two types of discussions can be very blurred, so I think this will be an ongoing challenge until there’s some critical mass of people who are out there with similar notions of good practices that can all help nudge each other and the rest.

We’ve faced similar challenges in nudging people to move different types of conversation to and from Slack and email as well, of course.

If you’ve done things in particular that you have found help move conversations from Google docs back into a more appropriate medium for discussion, I’d love to hear about them.

Posts: 1

Participants: 1

Read full topic

Add Algolia search to your Discourse

$
0
0

@dzello wrote:

:mag_right: discourse-algolia :blue_heart:

I’ve recently created a plugin that indexes topics, posts, users and tags with Algolia and combines them into a multi-category autocomplete search. Here’s a GIF of how it works, and you can try it live right now on the Algolia Community Discourse.

You can find the Github repository, complete with installation instructions, on github at algolia/discourse-algolia.

Plugin configuration just requires populating a few fields. Indexing tasks are put in the jobs queue after objects are saved. Note: you will need to create an Algolia account, which is free up to 10,000 records. (Disclaimer: I work at Algolia.)

:raising_hand_woman: FAQ

Q: Does this replace the default Discourse search?
A: Only if you want it to, and right now only for the autocomplete in the header. The full search page is still reachable by hitting the enter key without a search result selected, or by using the “advanced search” link in the autocomplete footer. I say “only if you want it to” because you can enable indexing to Algolia but not affect the UI or existing Discourse search in any way - that’s why there are two checkboxes in the plugin settings. If you’re just doing indexing, you can search the data in your Algolia dashboard to see how it’s working.

Q: Do I have to pay to use the plugin?
A: It depends on how much data you have. If you have less than 1k posts, you should fit into Algolia’s free Community Plan, which gives you 10k records. A good rule of thumb is that you’ll need 10 Algolia records for each post, as posts are split up into-paragraph size chunks for optimum relevance and speed. Still, YMMV. If you’d like to use the plugin but have concerns about the cost, just send me an email and I’ll see what we can do.

:hammer_and_wrench: Seeking Beta Testers!

I’m looking for up to 5 Discourse owners who would be interested in trying this out and helping me make it more robust and full-featured. Ideally you have a good amount of data we can test with and use search a lot. If you’re interested, please send me a PM or email me. In return, any Algolia quota you need during the beta will be free and we’ll give you 50% off any future usage if you decide to become a paying customer.

:memo: Issues & Feature Requests

Please file them on the Github repository or reply with your question here.

Thanks!
Josh

Posts: 2

Participants: 2

Read full topic

Threading for email-only topics seems broken

$
0
0

@gwmngilfen wrote:

Hi all,

I’m currently preparing a migration from Google Groups to Discourse (yep, another one, love the importer by the way). Hitting a slight snag with threading on topics created by emails though. Let me see if I can explain… (IDs rewritten due to link limits)

Let’s say I have two users, A and B, and I’m watching the “list” via my inbox.

  • User A starts a new topic via email. His client sends an email which I see in our POP3 mailbox, with
    • ID <foo at gmail dot com>
    • No references / in-reply-to (as you’d expect)
  • Discourse mails me with the topic, we use Mailjet so I get an email with ID <bar at mailjet dot com>

So now I have 1 email in my inbox, so far so good.

  • User B replies by email, and in our POP3 box I see a mail with:
    • ID <quux at yahoo dot com>
    • In-reply-to / References <bar at mailjet dot com>
  • Discourse mails this reply to me, and in my inbox I get:
    • ID <\cat at mailjet dot com>
    • In-reply-to / References: <foo at gmail dot com>

This breaks threading, because the in-reply-to and references on the second email are to a mail I’ve never received (ID <foo at gmail dot com>). So, my client assumes they’re independent.

Is anyone else seeing this? I think I’ve fixed it with the patch below (which I’d be happy to make a PR for if wanted) but I’d like to know if I’m missing something, or if there’s a better fix we could do?

diff --git a/lib/email/sender.rb b/lib/email/sender.rb
index 08e141a..f325078 100644
--- a/lib/email/sender.rb
+++ b/lib/email/sender.rb
@@ -106,10 +107,12 @@ module Email
         # https://www.ietf.org/rfc/rfc2822.txt
         if post.post_number == 1
           @message.header['Message-ID']  = topic_message_id
+          @message.header['References']  = "<topic/#{topic_id}@#{host}>"
         else
           @message.header['Message-ID']  = post_message_id
           @message.header['In-Reply-To'] =
referenced_post_message_ids[0] || topic_message_id
-          @message.header['References']  = [referenced_post_message_ids, topic_message_id].flatten.compact.uniq
+          @message.header['References']  = [referenced_post_message_ids, topic_message_id, "<topic/#{topic_id}@#{host}>"].flatten.compact.uniq
         end

         # https://www.ietf.org/rfc/rfc2919.txt

(yes, I know I should put that string in a variable or something, it’s just a testing hack)

Basically, filling in References even for the first post in a thread isn’t (I think) against RFC2822, so we add the topic ID at all times so there’s always a consistent ID. Seems to work in my limited tests. Is that sensible, or entirely insane? :slight_smile:

Posts: 1

Participants: 1

Read full topic

Email stats/numbers

$
0
0

@sianwhite wrote:

Is there a way to see any stats for the auto emails that go to users from Discourse? Like opens, clicks, unsubscribes? I can’t see anything on the dashboard.

Thanks in advance!

Posts: 2

Participants: 2

Read full topic

Discourse 1.8 Mangling Text in a Code Block

$
0
0

@ccstone wrote:

Hey Sam,

You have this issue marked as fixed and closed the topic, but in fact it is not fixed.

I just tried it on both the Keyboard Maestro Forum and the Meta-Discourse Forum.

What’s the latest word?

Thank you.


Take Care,
Chris

[Edit 2017/11/06 06:27 CST — it appears my testing was in error — see follow-up post.]

Posts: 4

Participants: 3

Read full topic

Unable to pin topics using iPhone SE

$
0
0

@ljpp wrote:

Another UI scaling issue on the classic (read: :poop:) iPhone screen size & resolution.

When trying to pin a topic, the calendar view goes off screen. When I tap on a date that is visible, no value is added to the date text input field, so it is impossible to say whether a date was selected or not.

Latest iOS and updates, an up-to-date Discourse 1.8 stable.

Posts: 1

Participants: 1

Read full topic


Change title in head section for specific category

$
0
0

@Mathieu wrote:

Hello there,

I’m trying to do something by creating a plugin but I have problems to find the best way to.

I have on my Discourse instance a specific category for which I want to change the in the head section.
I need all titles on this category to be transformed by "some text :" + title when rendering.

I do not need to change title in database or something like this because the title in h1 is the good one. Just need to do what I explained.

Can someone guide me?
Thanks by advance.

Posts: 3

Participants: 2

Read full topic

Bulk invites and trust level

$
0
0

@outofthebox wrote:

I’ve just invited two groups of people to join our Discourse using the bulk invite tool with a .csv file. It looks like they are being successfully added to the group.

However, the group permissions are “Trust level automatically granted to members when they’re added: 2”. But the users don’t seem to be receiving trust level 2 upon accepting the invitation.

Posts: 1

Participants: 1

Read full topic

How to install Discourse on an isolated CentOS 7 server

$
0
0

@nil4 wrote:

Here is what worked for me to install Discourse on an isolated CentOS 7 server. In a nutshell, on a machine with internet access I prepared:

  1. the Git repos that Discourse setup needs: SamSaffron/pups, discourse/discourse, discourse/discourse_docker and discourse/docker_manager.
  2. the two Docker images: discourse/base and samsaffron/docker-gc
  3. the complete Ruby Gem cache that bundle install downloads during bootstrap.

I copied these to the isolated server, and used them to install offline; below are the full details.I hope this helps.

1. Preparation on a machine with internet access

With Docker-CE and Git installed, run these commands:

mkdir -p ~/local/github.com
mkdir -p ~/local/rubygems.org
mkdir -p ~/local/docker-images

# 1
git clone --bare https://github.com/SamSaffron/pups.git            ~/local/github.com/SamSaffron/pups.git
git clone --bare https://github.com/discourse/discourse.git        ~/local/github.com/discourse/discourse.git
git clone --bare https://github.com/discourse/discourse_docker.git ~/local/github.com/discourse/discourse_docker.git
git clone --bare https://github.com/discourse/docker_manager.git   ~/local/github.com/discourse/docker_manager.git

#2
sudo mkdir -p /var/discourse
sudo git clone https://github.com/discourse/discourse_docker.git   /var/discourse

Step #1 clones the required Discourse GitHub repositories locally.

Step #2 prepares for the local installation of Discourse, which must run once, to extract Ruby GEMs from the Discourse image (step #4 below).

Search /var/discourse/launcher to find the line starting with image=discourse/base e.g.:

image=discourse/base:2.0.20171008

Two Docker images are needed: discourse/base with the version above, and docker-gc. To get them locally, run:

#3
docker pull discourse/base:2.0.20171008
docker pull samsaffron/docker-gc
docker save -o ~/local/docker-images/discourse_base   discourse/base:2.0.20171008
docker save -o ~/local/docker-images/docker-gc        samsaffron/docker-gc

Step #3 downloads the images and exports them to files under ~/local/docker-images/.

The ~/local folder now has local copies of the Discourse code, and Docker images required for installation.

However, local copies of the Ruby GEMs that Discourse downloads as part of its bootstrap process are still needed. IMHO it would be much easier if they were just included in the discourse/base Docker image.

Discourse needs to be bootstrapped to get these files. Follow the official instructions, but stop at the Start Discourse step. That is, configure and bootstrap Discourse, up to the point where the Docker container local_discourse/app is created.

Then run the following commands:

# 4
docker run -it -v ~/local/rubygems.org:/local-rubygems local_discourse/app /bin/bash
# the commands below run inside the Discourse 'app' container
cp -r /var/www/discourse/vendor/bundle/ruby /local-rubygems
exit

Step #4 copies the full Ruby GEM cache out of the Discourse image into the ~/local/rubygems.org folder.

Now everything required to set up Discourse offline is available in the ~/local folder. Copy this folder to the target machine.

2. Install Discourse on the target machine, with no internet access

Copy the ~/local folder prepared above to the target machine that has no internet access, e.g. to /root/local.

You will need to be root through the rest of the setup and bootstrap process:

sudo -s

Import the two Docker images:

docker load -i /root/local/docker-images/discourse_base
docker load -i /root/local/docker-images/docker-gc

Configure Git to use the /root/local/github.com/ folder instead of going out to https://github.com/:

git config --global url."file:///root/local/github.com/".insteadOf https://github.com/

Create the Discourse folder and clone discourse_docker.git there:

mkdir -p /var/discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse/

Run ./discourse-setup to generate your Discourse configuration. At the end of the configuration process, when you see the message Updates successful. Rebuilding in 5 seconds., press Ctrl+C.

cd /var/discourse/
./discourse-setup

Edit the /var/discourse/launcher file and disable updating pups (the version bundled with Discourse will be used instead), changing from:

  if [[ ! "false" =  $update_pups ]]; then
    run_command="$run_command git pull &&"
  fi

to:

#  if [[ ! "false" =  $update_pups ]]; then
#    run_command="$run_command git pull &&"
#  fi

Edit the /var/discourse/containers/app.yml file and update the volumes section as follows:

volumes:
  # these two volumes are already defined
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log
  # ADD THE TWO VOLUMES BELOW, making the local copies of github.com repos and Ruby GEM cache
  # available inside the Discourse container when it is built
  - volume:
      host: /root/local/github.com
      guest: /local-github.com
  - volume:
      host: /root/local/rubygems.org
      guest: /local-rubygems.org

This makes the local GitHub repo clones, and the Ruby GEM cache, available to the Discourse container.

Edit the /var/discourse/templates/web.template.yml file, and make the following changes.

(1) Disable updating Bundler (using the version bundled with Discourse instead) by commenting-out the gem update bundler line, from:

  - exec:
      cd: $home
      hook: web
      cmd:
        # ensure we are on latest bundler
        - gem update bundler
        - chown -R discourse $home

to:

  - exec:
      cd: $home
      hook: web
      cmd:
        # ensure we are on latest bundler
        #- gem update bundler
        - git config --global url."file:///local-github.com/".insteadOf https://github.com/
        - chown -R discourse $home

Instead of updating bundler, Git (the one inside the container) is configured to use the local folder instead of going out to https://github.com/.

(2) Configure bundle install to use the local Ruby GEM cache and not connect to rubygems.org by changing these lines from:

  - exec:
      cd: $home
      hook: bundle_exec
      cmd:
        - su discourse -c 'bundle install --deployment --verbose --without test --without development'
        - su discourse -c 'bundle exec rake db:migrate'
        - su discourse -c 'bundle exec rake assets:precompile'

to:

  - exec:
      cd: $home
      hook: bundle_exec
      cmd:
        # copy the locally-cached Ruby GEMS to /var/www/discourse/vendor/...
        - cp -rv /local-rubygems.org/ $home/vendor/bundle/ruby/
        # install GEMs from local cache only, using `--local` (see http://bundler.io/v1.15/bundle_install.html)
        - su discourse -c 'bundle install --local --deployment --verbose --without test --without development'
        - su discourse -c 'bundle exec rake db:migrate'
        - su discourse -c 'bundle exec rake assets:precompile'

And that’s it. Run ./launcher bootstrap app and, hopefully, enjoy your offline Discourse!

Posts: 1

Participants: 1

Read full topic

How to Close CDN for JS

Mailbox view for notifications?

$
0
0

@outofthebox wrote:

One of the convenient, quick features about Jive-x is (was?) the mailbox view for notifications:

As you click on each notification, it displays the content of the message, then at the bottom is the option to reply. This makes going through and replying to messages quite convenient.

Posts: 1

Participants: 1

Read full topic

How to disable User of the Month?

$
0
0

@LilTrashPanda wrote:

Hi everyone,

I’m looking to disable the User of the Month award that’s granted to new users each month, but can’t find it in the admin settings.

Could anyone point me in the direction of how to do this?

TIA!

Posts: 2

Participants: 2

Read full topic

Test Email Templates button

$
0
0

@outofthebox wrote:

Hi, on the Customize > Email Templates page, there is a button for “Save Changes”. It would be convenient if there was also a field for “Email Address” and “Send Test Email” on each of the email template form pages.

Posts: 1

Participants: 1

Read full topic


Discourse is Best Forum Solution in the 2017 CMS Critic Awards

Mentions of people, places and Avatars in One-box issues

$
0
0

@Sean_R wrote:

When the body of a comment linked to a Wordpress post has a @mention, #place, or image. The resulting links are relative and that breaks links in the comment. This causes crawlers to choke and other issues. Is there a way to fix this?

Example:

<div class="comment-content"><p>Hi <a class="mention" href="/u/jonathan1">@jonathan1</a>,</p>
<p>We announced we will be supporting the Pixel 2 and Pixel 2 XL, earlier today.</p>
<aside class="quote">
  <div class="title">
    <div class="quote-controls"></div>
    <img alt="" width="20" height="20" src="/user_avatar/forums.republicwireless.com/beng/40/8320_1.png" class="avatar">
    <a href="https://forums.republicwireless.com/t/google-pixel-2-and-pixel-2-xl-byop-support/13162?source_topic_id=11985" rel="nofollow noopener">Google Pixel 2 and Pixel 2 XL BYOP Support</a> <a class="badge-wrapper  bullet" href="/c/news"><span class="badge-category-bg" style="background-color: #e44e13"></span><span class="badge-category clear-badge" title="Keep up with official Republic Wireless news, releases, and important announcements.">Announcements &amp; News</span></a>
  </div>
  <blockquote>
    We’re excited to announce that we’ll be supporting the <a href="https://store.google.com/product/pixel_2" rel="nofollow noopener">Google Pixel 2 and Pixel 2 XL</a> through our <a href="https://help.republicwireless.com/hc/en-us/articles/115005739967" rel="nofollow noopener">BYOP program</a>!
  </blockquote>
</aside>
</div>

I think the integration is fixing the @mention but the other two are broken and the source is wrong for all of them causing crawlers to break.

58 PM

<p>Read our announcements <a class="hashtag" href="/c/7-news">#<span>news</span></a></p>

Let me know if more detail is needed.

Posts: 1

Participants: 1

Read full topic

Unable to download image from lightbox with prevent anons from downloading files enabled

$
0
0

@jomaxro wrote:

When the prevent anons from downloading files site setting is enabled, the download link below lightboxed images stops working, even for logged in users. Users end up on a generic Oops! That page doesn’t exist or is private., where they have a login button (despite being logged in).

Posts: 4

Participants: 4

Read full topic

Users waiting for approval message has incorrect count

Users waiting for approval message recipients

$
0
0

@David_Taylor wrote:

Continuing the discussion from Groups no longer listed as participating in personal messages?:

This problem still exists for me after updating, so maybe it wasn’t related.

When I receive a “N new users waiting for approval” message, each individual moderator appears in the recipient list, rather than the @moderators group:

Looking back over old messages, maybe this is how it’s always been. It would be nice if this message was sent to @moderators, so it ends up in the group inbox :slight_smile:

Posts: 2

Participants: 2

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images