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

Facebook Onebox embed

$
0
0

@vinothkannans wrote:

Facebook Onebox


Simply embed your Facebook posts and videos in your posts by adding url

https://github.com/vinkas0/discourse-facebook-onebox.git

Supported oEmbed endpoints

Of course, can embed only public posts and videos

Posts:

https://www.facebook.com/{page-name}/posts/{post-id}
https://www.facebook.com/{username}/posts/{post-id}
https://www.facebook.com/{username}/activity/{activity-id}
https://www.facebook.com/photo.php?fbid={photo-id}
https://www.facebook.com/photos/{photo-id}
https://www.facebook.com/permalink.php?story_fbid={post-id}
https://www.facebook.com/media/set?set={set-id}
https://www.facebook.com/questions/{question-id}
https://www.facebook.com/notes/{username}/{note-url}/{note-id}

Videos:

https://www.facebook.com/{page-name}/videos/{video-id}/
https://www.facebook.com/{username}/videos/{video-id}/
https://www.facebook.com/video.php?id={video-id}
https://www.facebook.com/video.php?v={video-id}

Screenshots

Known Issues

Facebook embedding will adjust post height dynamically when it loaded.

Posts: 4

Participants: 2

Read full topic


Way to automatically show links in flagged topic discussions?

$
0
0

@davemaxwell wrote:

Is there a way to automatically show the linked posts in just the flagged notifications? I know the linked posts were hidden intentionally, but we deal with a relatively high volume of flagged posts, and having to constantly click the down arrow to get to see the original post is aggravating at best.

So instead of seeing this

We see this

Posts: 2

Participants: 2

Read full topic

Data import script improvements for migrating large data soon

$
0
0

@junaid_pk14 wrote:

Hello Guys,

Guys please share your thoughts on idea discussed below. Thank you.

We are migrating our forum from Vbulletin to Discourse. We have 596400 Users, 296000 Topics and 5 million posts. We tried the provided script and imported data of Groups, Categories, Users and Topics. 596400 User(without avatar picture) took around 29 hours and Topics took around 14hours Post took around 17 days. We ran the import script on machine with following specs

Ram : 32 GB Ram
CPU : Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz with hyperthreading
Hard-Drive : 219 GB SSD
Cores : 4 physcial and 8 logical cores

Ruby version : ruby 2.1.2p95
Rails : 4.2
Discourse branch : v1.5.3
OS : CentOS Linux release 7.2.1511 (Core)

Problem: Import process is taking too much time. If we go with this model then we will have to wait for very long time in deployment model we have in back of our head. We imagined following model for deployment from vbulletin to discourse.

"We will set Vbulletin model in readonly mode and keep our users will be able to read post and can use mobile tapatalk app but can't post or reply topic and post. Once the data imported successfully, discourse forum will be available on same urls and readonly mode will be changed to 'off'. Now users can perform all available functionality."

Solution: We wanted to reduce import time as much as we can so that our users don't disturb for long period. We thought that we can reduce time by importing data of same type but independent in parallel using lot of machines. From independent data i mean that we will import all users on step 1 and on 2nd step we will import all topics and on 3rd step we will import all posts. We implemented this idea by using same script provided in discourse repository by doing modification of introducing start & end resultsets parameters to define data range and using Sidekiq. Let run this flow with a example to bring more clarity in this idea.

Lets assume following things
No of Users = 20k
No of machines running with above idea implemented = 10
BackgroundJob = Sidekiq
Time to insert 200 users = 1 minute
Batch a sidekiq job will process = 2k

With above assumptions, 10 sidekiq jobs will be created each with 2k users. Batch range will be following, see below. When sidekiq will process 1st job, it will pass start & end recordset parameter to default script(vbulletin) with parameter to restrict to only import 'Users' data with id range in 0-2000, similary next job will be processing 2000 - 4000 and some job will be processing 10000-12000 user and so on. By using this idea we are able to insert 2k user per minute with db server with high cores and optimized Postgresql server settings. All above data will be processed in 10 minutes.

Batch ranges
">= - <"
0 - 2000
2000 - 4000
4000 - 6000
8000 - 10000
..............
..............
16000 - 18000
18000 - 20000

I am still working to improve the no of inserts per minute to process large amound of data even soon.

Regards,
Junaid

Posts: 1

Participants: 1

Read full topic

Is it possible to watch or track ALL categories in a forum?

$
0
0

@AnneCarpenter wrote:

In preferences, under "Watched" or "Tracked" you can select which categories. What if you want to watch or track ALL categories in a forum, is this possible? (entering the name of each category individually is presumably the workaround if not)

Posts: 2

Participants: 2

Read full topic

Prevent Docker from using Google DNS

$
0
0

@jomaxro wrote:

So I am attempting to install Discourse in production for the first time. I am doing this on a college campus, where external DNS servers (like Google) are blocked. As such, when attempting to bootstrap Discourse it fails. How can I change Docker to use the host PCs DNS settings, or manually set Docker's DNS addresses?

Posts: 6

Participants: 2

Read full topic

Moving selected posts to private message

$
0
0

@Nick_Putman wrote:

I can see that there is a feature to move topics to private messages and visa versa, but is it also possible to select specific posts within a topic and move these to a private message?

This topic suggests that there is a way by impersonating a user, but perhaps there is another way?

Posts: 3

Participants: 2

Read full topic

How to connect discourse ZeroNet?

Problem using Discourse OAuth basic

$
0
0

@nbombau wrote:

Hi everyone,

I'm trying to implement OAuth in Discourse. We currently have a OAuth authentication mechanism implemented and being used by other applications. I have correctly (?) configured Discourse:

However, every time I try to login we get an error message. Looking at the logs I found the following error:
(oauth2_basic) Authentication failure! invalid_credentials: OAuth2::Error, {"access_token":"eef0166622530091135ed46b3af7ae338686a40e","token_type":"bearer","scope":"read_products","user_id":"296828"}

Here is the stacktrace:

/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/logster-1.2.5/lib/logster/logger.rb:37:in `add'
/usr/local/lib/ruby/2.3.0/logger.rb:507:in `error'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:158:in `log'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:474:in `fail!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.3.1/lib/omniauth/strategies/oauth2.rb:82:in `rescue in callback_phase'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-oauth2-1.3.1/lib/omniauth/strategies/oauth2.rb:71:in `callback_phase'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:227:in `callback_call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:184:in `call!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in `call!'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/omniauth-1.3.1/lib/omniauth/builder.rb:63:in `call'
/var/www/discourse/config/initializers/008-rack-cors.rb:15:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
/var/www/discourse/lib/middleware/anonymous_cache.rb:127:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/flash.rb:260:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7/lib/active_record/query_cache.rb:36:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rails_multisite-1.0.4/lib/rails_multisite/connection_management.rb:225:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7/lib/active_support/callbacks.rb:81:in `run_callbacks'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/logster-1.2.5/lib/logster/middleware/reporter.rb:31:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7/lib/rails/rack/logger.rb:38:in `call_app'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7/lib/rails/rack/logger.rb:22:in `call'
/var/www/discourse/config/initializers/100-quiet_logger.rb:13:in `call_with_quiet_assets'
/var/www/discourse/config/initializers/100-silence_logger.rb:26:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.1/lib/mini_profiler/profiler.rb:171:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/message_bus-2.0.1/lib/message_bus/rack/middleware.rb:62:in `call'
/var/www/discourse/lib/middleware/request_tracker.rb:73:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7/lib/rails/engine.rb:518:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7/lib/rails/application.rb:165:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7/lib/rails/railtie.rb:194:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7/lib/rails/railtie.rb:194:in `method_missing'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:66:in `block in call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `each'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-1.6.4/lib/rack/urlmap.rb:50:in `call'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:562:in `process_client'
/var/www/discourse/lib/scheduler/defer.rb:85:in `process_client'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:658:in `worker_loop'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:508:in `spawn_missing_workers'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:132:in `start'
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/unicorn-5.1.0/bin/unicorn:126:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.3.0/bin/unicorn:23:in `load'
/var/www/discourse/vendor/bundle/ruby/2.3.0/bin/unicorn:23:in `<main>'

Can anyone help me make sense of all of this? I can't figure out what's the problem :disappointed:

Thanks a lot!!

Posts: 1

Participants: 1

Read full topic


Ability for users to make join requests to private groups

$
0
0

@Nischayn22 wrote:

This is a request to extend the work done in https://meta.discourse.org/t/groups-should-have-a-root-directory-page-just-like-users/37996 and https://meta.discourse.org/t/group-owners-for-managing-group-membership/36233

Users should be able to make join requests to private groups. The group admins should get notifications for such requests and be able to add the member to the group. This could also be optimised in some ways:

1) Require minimum number of approvals for addition to the group by the group admins. Useful for groups with many admins.

2) Allow non-admins to add members to group by voting (with min-voting requirement). This will result in low headache for group-admins and lower wait time for the requester. This also needs that every group member be notified of this and a separate page for approvals.

3) Would prefer to have admin view-able logs for who granted access to whom.

Posts: 3

Participants: 2

Read full topic

Can I have different digest options for different categories?

$
0
0

@Nick_Putman wrote:

I am trying to work out the best settings to use for my forum, where I need different levels of notification emails for different categories.

For one category, let's say Category A, I need users to get all new posts via email, either each time a new post is added, or in a daily update - so I enabled mailing list mode. I now realise though that mailing list mode doesn't work per category, unless you mute all other categories. Muting all other categories wouldn't work for my setup, as I would want users to be able to get some notifications for other categories as well.

The ideal setup for me would be separate mailing list modes for different categories, so users could get all content of Category A in the frequency they want, i.e every post or daily, and then set a different frequency for other categories if they want to (including a 3 day and a weekly frequency).

In the absence of this feature, I am thinking that I should disable mailing list mode, set Category A to 'Watched' for every user, and then set a frequency for the activity summary for every user which they could adjust to their preference, so that they could also stay in touch with the conversations in other categories. Am I right in thinking that the activity summary doesn't respect the Watched, Tracked, Watching First Post and Muted settings for categories? It simply sends a summary of activity across the whole forum? Also, am I right in thinking that not all posts would be included in the activity summary, meaning that some content may be missed by users?

The disadvantage of using 'Watched' for Category A is that users can't choose to get a daily update instead of an email for every post, which is an option that I would like them to have. So, I am a little stumped.

I would be glad of some help in choosing the best settings for my scenario.

Posts: 1

Participants: 1

Read full topic

Scrolling does not work on some topics with CSS body height set to 100%

$
0
0

@moparisthebest wrote:

My users and I are having a strange issue on our discourse instance, scrolling with the mouse wheel, or with the browser scrollbar, or with 'j' will not load more replies to a topic, no matter how fast or slow it seems. The only way to see more posts is to use the scrollbar inside the topic window.

I've tried to debug this with firebug and see nothing wrong, I've tried disabling all my firefox addons and still get the same behavior, and I've also tried chromium with the same behavior. Here is a link where I can reproduce it 100% of the time:

When I scroll, I can only get down to reply 20, even though the discourse scroll bar and the URL bar only say 4, and there are 44 replies total.

Any ideas or things I can try? Thanks!

edit:
Also I think this is related too, but all later posts in a topic are unread, even after I read them, or even after replying to one, unless I grab the discourse scroll bar and manually scroll to the bottom...

Posts: 4

Participants: 3

Read full topic

Enabling require authentication to read content causes stall

$
0
0

@kuyashi wrote:

If setting:

Require authentication to read content on this site, disallow anonymous access.

is enabled while a site visitor is browsing and the the visitor navigates away from the current page (refreshes or clicks link) the the site will not re-direct back to login / home screen. See screenshots below:





  • Should there be a re-direct back to login page if admin enforces authentication requirement whilst non-authenticated visitors are on site ?

Posts: 3

Participants: 2

Read full topic

Can I convert the website performance report topic into a private message?

$
0
0

@tobiaseigen wrote:

I like the website performance report but I don't see why all moderators need to see it every day. Is there any risk to me converting it into a private message addressed just to me?

Posts: 6

Participants: 5

Read full topic

Beige Line Since last update

Non-standard port breaks uploads

$
0
0

@jomaxro wrote:

Following this guide I setup Discourse alongside multiple existing sites on my server. All the previous sites (as well as Discourse) are able to run, and seem to work fine, but images are broken in Discourse. The images are uploaded to $hostname/uploads, but the correct URL would be $hostname:8888/uploads. I can't find where in site settings of my yml file to fix this.

Posts: 16

Participants: 5

Read full topic


Still "less sign" is used in the topics list when it makes little sense

$
0
0

@meglio wrote:

Not sure if it is a translation problem, or still an issue in the code. As discussed in this topic, the "less sign" makes little to no difference for "<1m". However, I just noticed that there are other cases where the "less" sign is used and it makes even less sense:

In this screenshot, "<29 min" and "<39 min" looks like overhead: "29min" and "39min" should work just same well and keep formatting unified in the topics list.

Posts: 2

Participants: 2

Read full topic

Setup discourse on Mac OS

$
0
0

@sevenmaxis wrote:

I'm following standard guide to install discourse on my local mac.
After launching the setup tool ./discourse-setup I've got error message:

cd /pups && git pull && /pups/bin/pups --stdin
/usr/local/bin/docker: Error response from daemon: Mounts denied: er.com/docker-for-mac/osxfs/#namespaces for more info.
.
r/discourse/shared/standalone/log/var-log
are not shared from OS X and are not known to Docker.
You can configure shared paths from Docker -> Preferences... -> File Sharing.

Initially I've tried to install to my work directory inside /Users

Then I installed to /var/discourse folder, the same error.

And then I tried to add /var folder to Docker's Sharing Files and got message
The path /var is reserved by Docker

What am I missing here?

Posts: 3

Participants: 2

Read full topic

How to style the `/categories` page?

$
0
0

@zogstrip wrote:

Today, I added the desktop_category_page_style site setting which allows you to select the style of the categories page.

The default is "Categories and Latest Topics" which list the categories on the left and the latest topics on the right.

You might want to go back to our previous default, now called "Categories with Featured Topics" which list the categories and the top X featured topics for each category.

Or you might want to use (and customize) the old school "Categories Only" which lists only the categories.

Posts: 2

Participants: 2

Read full topic

How to log bad data in an import script

$
0
0

@pfaffman wrote:

I've made considerable improvements to mbox.rb, the mbox email importer. I'm importing 230K messages, many of which have had the email addresses broken in one way or another. The script used to just crap out if something went wrong; I've added code to let the user know what file is being processed and print error messages including the bad address and the message-id when email addresses are bad and the message ID and who message when something else goes wrong.

print_status does a lovely job of, well, printing the status, but it's less pretty when I put error messages. Also, when there are hundreds of lines of lines of such messages, having them in a terminal can be a bit unwieldy (especially if you switch sessions in tmux and lose the scroll-back buffer). Maybe what I should do is send stuff to stderr? Or should I just not worry?

Posts: 4

Participants: 2

Read full topic

Changing the font of the h2 'site text logo'

Viewing all 60642 articles
Browse latest View live


Latest Images