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

Email doesn't work


Restore not taking multisites into account

$
0
0

Sander Datema wrote:

When you upload a backup file (or when you made one) and want to restore it, Discourse will look for the archive in the default location. That tar command, however, does look in the right place but will fail of course.

No error is shown, it's only visible in the log.

Posts: 4

Participants: 3

Read full topic

Links to Twitter photos in post body results in failed post on 0.9.9

$
0
0

Phil Nelson wrote:

Recently updated from most recent 0.9.8. Users trying to post links to Twitter posts with photos attached results in a 500 error. Example URL: https://twitter.com/dd_toronto/status/451793220956348416

Example error:

<message>key not found: "access_token"</message>
<url>http://forums.structure.io/onebox?url=https%3A%2F%2Ftwitter.com%2Fdd_toronto%2Fstatus%2F451793220956348416&amp;refresh=false</url>
<exception-class>KeyError</exception-class>

Posts: 1

Participants: 1

Read full topic

DigitalOcean Droplet image?

$
0
0

Johan wrote:

@codinghorror @sam

As DO have prebuilt images for things like Ghost and GitLab, has there been any plans to ask them nicely/cooperate with them about a Discourse image to make it even easier for people to install it?

Posts: 1

Participants: 1

Read full topic

How StackExchange works?

Spam Blocking Feature Idea: Alert when Same IP Address Answers Topic

$
0
0

Lowell Heddings wrote:

Here's the scenario, which we've seen happen plenty of times over the years:

  1. User signs up, asks a question.
  2. Hours later, another user signs up, answers that question by suggesting software or a service and linking to it.
  3. Investigation finds that the IP address is the same for both users and the question was a setup.

Seems like an easy thing to check - if the post is from a new user and/or contains a link, check to make sure that the IP address isn't the same as the first poster IP.

The actions could be either:

  • Automatically hide post and message the user.
  • Automatically just Flag the post to notify the moderators (preferable IMO)

It definitely would only stop a portion of the spam, but 99 times out of 100, when two new users have the same IP address in the same topic, something bad is going on. It would be nice as a moderator to know that two new users in a topic have the same IP address and are probably the same person.

Posts: 18

Participants: 9

Read full topic

Original Poster changes when Admin modifies post

Will posts show up on Google

$
0
0

Adriaan Putter wrote:

Will Google be able to crawl all the forum posts? Would like to know how it works if pages are loaded just-in-time.

Posts: 27

Participants: 12

Read full topic


Dynamic SVG onebox for d3.js?

$
0
0

Graeme Stuart wrote:

Continuing the discussion from The system user needs a cool avatar:

I have a site with some fancy d3.js dynamic svg magic. Is it feasible for a onebox to pull the rendered svg data from the page? It sounds like a hard thing to do but it would be awesome.

For example, my d3 code produces this.

<svg class="face" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid meet" width="100%" height="100%"><g transform="translate(20, 20)"><circle class="face" fill="#c6e912" stroke-width="1.7999999999999998" stroke="black" r="18.400000000000002"></circle><g class="eye" transform="translate(-7, -5.722888)"><ellipse class="eyeball" rx="5.3494008" ry="5.118064799999999" fill="#ffffff" stroke="black" stroke-width="1"></ellipse><circle class="iris" cy="0.06686639999999999" fill="#62738b" stroke="black" stroke-width="0.30000000000000004" r="3"></circle><circle class="pupil" cy="0.06686639999999999" fill="black" r="1.6247004"></circle><circle class="glint" cx="-0.6831336" cy="-0.6162672" r="0.30000000000000004" fill="white"></circle></g><g class="eye" transform="translate(7, -5.722888)"><ellipse class="eyeball" rx="5.3494008" ry="5.118064799999999" fill="#ffffff" stroke="black" stroke-width="1"></ellipse><circle class="iris" cy="0.06686639999999999" fill="#62738b" stroke="black" stroke-width="0.30000000000000004" r="3"></circle><circle class="pupil" cy="0.06686639999999999" fill="black" r="1.6247004"></circle><circle class="glint" cx="-0.6831336" cy="-0.6162672" r="0.30000000000000004" fill="white"></circle></g><g class="mouth" transform="translate(0, 6.722888)"><path stroke="black" d="M-8.7831336,-0.7389653333333334C-8.188755733333332,-0.3694826666666667,-7.594377866666665,0.3694826666666667,-4.963855599999999,0.7389653333333334C-2.333333333333333,1.108448,2.333333333333333,1.108448,4.9638556,0.7389653333333334C7.594377866666665,0.3694826666666667,8.188755733333332,-0.3694826666666667,8.7831336,-0.7389653333333334" fill="none" stroke-width="1"></path></g></g></svg>

Can this even be rendered in a discourse post?
Can it be 'pulled in' as a onebox?

Posts: 1

Participants: 1

Read full topic

Set up reply via email support

$
0
0

Jeff Atwood wrote:

So you'd like to set up reply via email support for your Discourse forum.

Good news! Unlike outgoing email, which is completely unsuitable for typical consumer mail services like GMail, Outlook, Yahoo Mail, etc, incoming reply via-email tends to be extremely low volume. Unless you have a truly massive forum with a zillion people replying to notification emails, you are probably safe using, say, Gmail.

So here's how to set it up using GMail as an example.

  1. Create a new GMail account. Assign it a username like discourse-replies@example.com or in my case, replies@example.com. Give it a strong password.

  2. Log in to this account via http://mail.google.com. Accept the terms of service, enter the CAPTCHA, load the default web interface. Maybe send a test email, receive a test email. Kick the tires. POP3s access is on by default in Gmail, and all incoming emails will be retained -- but you can tweak as needed in Settings, Forwarding and POP/IMAP.

  3. Visit the Discourse settings and check the Email tab.

  4. Change the following settings:

    • reply_by_email_address enter replies+%{reply_key}@example.com
    • pop3s_polling_username enter replies@example.com
    • pop3s_polling_password enter the password of that email account
    • pop3s_polling_host set to pop.gmail.com
    • pop3s_polling_enabled set to true
    • reply_by_email_enabled set to true

There is a certain amount of polling that goes on for this account, but we've set it to a low, safe volume.

We do assume that your email service supports plus addressing aka address tags, so check that before starting. GMail obviously does.

If everything is working, you should see the footer of all notification mails now tell you that you can reply either by visiting the website, or replying via email:

To respond, reply to this email or visit {topic URL} in your browser.

Posts: 10

Participants: 4

Read full topic

WordPress Plugin Question - Widget for Home Page?

$
0
0

Briancguy wrote:

Hi,
Does the current WordPress plugin offer the ability to show on the home page of my site the most recent posts in our Discourse plugin? Is there an easy way to do this - similar to how we have a Twitter widget that shows the most recent X number of posts we've done in Twitter?

Posts: 6

Participants: 4

Read full topic

Statistics regarding registrations (native versus external)

$
0
0

Adam Capriola wrote:

It would be nice to know which users register through one of the external options (Google, Twitter, Facebook, Yahoo, etc.) versus creating an account natively through Discourse. If I knew very few people were using the external options, I might remove some (or all) to make the login form simpler.

Posts: 1

Participants: 1

Read full topic

Rake Aborted Issue After Setup - Using Discourse Docker

$
0
0

DAB Lucide wrote:

I'm running the Discourse Docker setup and it will not let me use the rake command. I first found this out when I tried to install the Adsense Plugin I ran the rake command with and without the bundle exec and it always aborts the task.

Without bundle exec

root@cid:/var/www/discourse# rake plugin:install repo=http://github.com/discoursehosting/discourse-adsense --trace
rake aborted!
You have already activated rake 0.9.6, but your Gemfile requires rake 10.1.1. Using bundle exec may solve this.
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `block in setup'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'
/usr/local/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/setup.rb:7:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require'
/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require'
/var/www/discourse/config/boot.rb:6:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/var/www/discourse/config/application.rb:1:in `<top (required)>'
/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
/var/www/discourse/Rakefile:5:in `<top (required)>'
/usr/local/lib/ruby/2.0.0/rake/rake_module.rb:25:in `load'
/usr/local/lib/ruby/2.0.0/rake/rake_module.rb:25:in `load_rakefile'
/usr/local/lib/ruby/2.0.0/rake/application.rb:604:in `raw_load_rakefile'
/usr/local/lib/ruby/2.0.0/rake/application.rb:89:in `block in load_rakefile'
/usr/local/lib/ruby/2.0.0/rake/application.rb:160:in `standard_exception_handling'
/usr/local/lib/ruby/2.0.0/rake/application.rb:88:in `load_rakefile'
/usr/local/lib/ruby/2.0.0/rake/application.rb:72:in `block in run'
/usr/local/lib/ruby/2.0.0/rake/application.rb:160:in `standard_exception_handling'
/usr/local/lib/ruby/2.0.0/rake/application.rb:70:in `run'
/usr/local/bin/rake:37:in `<main>'

With bundle exec

root@cid:/var/www/discourse# bundle exec rake plugin:install repo=http://github.com/discoursehosting/discourse-adsense --trace
rake aborted!
uninitialized constant Annotate
/var/www/discourse/lib/tasks/auto_annotate_models.rake:33:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:641:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:641:in `each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:641:in `run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/application.rb:244:in `run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:446:in `load_tasks'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
/var/www/discourse/Rakefile:7:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/rake_module.rb:25:in `load'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/rake_module.rb:25:in `load_rakefile'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:637:in `raw_load_rakefile'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:94:in `block in load_rakefile'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:93:in `load_rakefile'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:77:in `block in run'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.1.1/bin/rake:33:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
/var/www/discourse/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'

I decided to check to see if I had bundler installed, which it appears I do.

root@cid:/var/www/discourse# gem list

*** LOCAL GEMS ***

bigdecimal (1.2.0)
bundler (1.3.5)
io-console (0.4.2)
json (1.7.7)
minitest (4.3.2)
psych (2.0.0)
rake (0.9.6)
rdoc (4.0.0)
rubygems-update (2.1.11)
test-unit (2.0.0.0)

Any ideas on why this is happening and how to resolve it? Thanks.

Posts: 22

Participants: 6

Read full topic

Understanding progress bar post numbering

$
0
0

Bill Ayakatubby wrote:

Continuing the discussion from Windows Phone IE scroll position quirks:

I'm able to reproduce the above bug report in Chrome 33 on Win 8 desktop. Post 56 is the one displayed at the top of the screen, though the top of it is scrolled off just ever so slightly. If I middle-click to open it in a new tab, the URL bar shows 56, 57 if opened in the same tab. There seems to be no difference in scroll position on same-tab vs new-tab. The first time I tried, the progress bar said 51. Now it consistently says 52.

Posts: 31

Participants: 8

Read full topic

How does Discourse convert tables to images?

$
0
0

Pratyush Mittal wrote:

When I copy a data from Excel / OpenOffice to Discourse, it auto-magically converts it to an image which retains all the borders, cell highlights and styles. How does it work?

If possible, I will try to extend it to other tables too, such as tables from Google Spreadsheets and tables from html content.

Posts: 3

Participants: 3

Read full topic


Plugin that adds a user to a group if they have a certain e-mail domain

$
0
0

Jeff Tchang wrote:

Hi. Just looking at the plugin architecture. I managed to get a docker development instance going and have run bundle exec rails server. The server spews out lots of information about SQL queries.

I am trying to figure out if a basic plugin I have created is working.

Inside plugins/discourse_extras/plugin.rb I have this:

after_initialize do
  puts "Initializing plugin"
end

class User < ActiveRecord::Base
  after_save :do_something

  def do_something
    print Rails.logger.info("Testing")
    puts "After save of User record"
  end
end

Basically I'd eventually like to add a user to a group if their e-mail matches.

  1. How can I tell if I am correctly monkey patching the User model's after_save? It doesn't seem to be getting called and I am not seeing anything in the console.
  2. Is there a "standard" way to send to a log file inside Discourse?

-Jeff

Posts: 2

Participants: 2

Read full topic

One topic on our Discourse showing up empty

New: Reply via Email Support!

$
0
0

Robin Ward wrote:

We've just enabled the ability to reply by email to Discourse for all users on meta! It works like on other sites such as Facebook or Github. If an email is related to a topic, it will say in the footer that you can reply to it. Simply reply to the message in your email client and your post will be made on Discourse.

Please help us test it out and give us feedback!

Configuring Reply by Email

To enable the feature on your own Discourse site, you need to set up a few site settings:

  • reply_by_email_enabled - set to true
  • reply_by_email_address - change to your email address that will handle replies. For example reply+%{reply_key}@reply.myforum.com. %{reply_key} is required and will be replaced with a unique identifier for the email.

Receiving Email

Right now we only support parsing replies from POP3S servers. In the future we'll likely add other methods such as support for web APIs. Pull requests welcome! Here's how to configure POP3s:

  • pop3s_polling_enabled - set this to true
  • pop3s_polling_port - Your POP3S server port (default is 995)
  • pop3s_polling_host - The host to poll for mail
  • pop3s_polling_username - The username for your POP3S account
  • pop3s_polling_password - The password for your POP3S account

Using Gmail to Receive Email

We've tried it out with gmail and it seems to work great as they offer POP3s support. (Note: don't confuse this with sending email. Gmail is not recommended as a SMTP server for a Discourse forum as you will encounter many limits and spam prevention measures.)

To use gmail, create an account and use the following pop3 settings:

server: pop.gmail.com
username: <your full gmail account address>
password: <you know this>

Have fun! fish

Posts: 43

Participants: 18

Read full topic

How do I set up Ghost to use Discourse for comments?

Behaviour of external links for not logged-in visitors

$
0
0

arajvanshi wrote:

I selected the setting default_external_links_in_new_tab in the admin area. This resulted in the expected behaviour of setting default preference of all new users set to 'open external links in new tab'.

However, for non-logged-in visitors, the behaviour is still the old one, it is opening the external links in the same tab leading visitors to go away from the website. When admin selects the default_external_links_in_new_tab setting, it should change the behaviour for non-logged-in visitors as well.

Posts: 1

Participants: 1

Read full topic

Viewing all 60613 articles
Browse latest View live




Latest Images