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

Server overload digital ocean


Help on putting an opened search box instead of a clickable icon?

$
0
0

@Pad_Pors wrote:

trying to put the search box in the header by default, i.e. this opened up search box:

can anyone help me?

Posts: 1

Participants: 1

Read full topic

Beta testing the iOS mobile app

$
0
0

@sam wrote:

I have been hacking away at a simple notifier app for iOS.

What about Android? Once I get this out I would like to also port the native parts to Android, it should not take too long there are only a few minor tweaks needed. (in particular a native RSA pub/private key library and some internal reorg). The app is built in react native which has been quite fun. It is mostly cross platform with the exception of some minor native components.

I created it mainly to help resolve a few personal pains I have had.

  • I track lots of Discourse sites, I forget to visit quite a few

  • My email box is out of control, push notification are far less obtrusive to me cause I don't need to delete them, they simply go away when the app badge hits 0 (which is by design for all iOS apps).

  • I am mobile ... all the time ... especially this year.

  • I like having all my sites together in one app, I like the iOS badges that show how many notifications I have unread across sites.

The source for the app is at: https://github.com/samsaffron/discoursemobile and I got a bunch of UI help from https://github.com/jjaffeux

The app keeps track of flags, unread counts and alerts across multiple sites. It also allows you to quickly browse any site using Safari View Controller (which is the exact same Safari you use anyway)

It takes advantage of the user API, this ensures that the app behaves, if it misbehaves it will be throttled by Discourse.

I have reached far enough into my dev process to warrant some beta testing. So here are some notes:

  • I did the majority of my dev on iPhone, on iPad there is tons of white space, but it does work.

  • Apple Background Fetch is an odd beast, in theory it should regularly fetch from our sites, in practice it is very finicky. I have a workaround I will get going next week, but in the meantime if you wake up in the morning and the badge is not updated, it is cause background fetch is ... weird... I left a "dev panel" at the bottom of the app so you can quickly tell what has been going on. see also: this 500 point bounty I have going.

  • You can not reorder sites yet, that is on the list and should be implemented soon

  • Sites we do not host do not get "push notifications" we have to whitelist every site for push notifications and give them a magic URL to push to. They get "fake" push notifications on background fetch, but no real ones.

  • App was designed for minimum networking. When looking at the site list every 15 seconds the app hits message_bus, when looking at a site it hits every minute. This route is super duper cheap and designed for huge amounts of hits. All updates for the app after it loads are handled via the bus.

App is at the moment undergoing approval for beta and should be ready soon.

If you would like to help beta test reply here and I will invite you.

Posts: 18

Participants: 10

Read full topic

Exclude topic from category auto-close?

$
0
0

@mr8 wrote:

Is there any way to exclude/whitelist certain topics from the category auto-close?
Perhaps we could whitelist certain topic tags from being auto-closed globally and/or per category?

Posts: 2

Participants: 2

Read full topic

Fix published date and author for topics created via wp-discourse-embed plugin

$
0
0

@techAPJ wrote:

I recently installed wp-discourse-embed plugin on Quarter to Three WordPress blog.

As soon as I installed the plugin there was an influx of new topics being created for existing (old) WP posts.

I ran this rake task to fix the published date and author for topics that are linked to old WP posts:

desc "Fetch WP data"
task "users:fetch_wp_data" => [:environment] do

  puts "Fetching WP data"
  i = 0
  TopicEmbed.find_each do |topic_embed|
    begin
      html = open(topic_embed.embed_url).read
      raw_doc = Nokogiri::HTML(html)
    rescue
      next
    end

    topic = topic_embed.topic
    next if topic.nil?

    author_username = raw_doc.at('meta[@name="author"]')
    if author_username.present?
      begin
        author = User.where(username_lower: author_username[:content].strip).first
        if author.present? && author.username_lower != topic.user.username_lower
          PostOwnerChanger.new(post_ids: [topic.first_post.id], topic_id: topic.id, new_owner: User.find_by(username_lower: author.username_lower), acting_user: User.find_by(username_lower: "system"), skip_revision: true).change_owner!
        end
      rescue
        # handle error
      end
    end

    wp_post_date = raw_doc.at('meta[@property="article:published_time"]')
    if wp_post_date.present?
      begin
        timestamp = DateTime.parse(wp_post_date[:content].strip).to_i
        PostTimestampChanger.new(topic_id: topic.id, timestamp: timestamp).change!
      rescue ArgumentError
       # handle invalid date
      end
    end

    putc "."
    i += 1
  end

  puts "", "#{i} posts fetched and corrected!", ""
end

Commands I ran:

cd /var/discourse
./launcher enter app
vim lib/tasks/users.rake
(append the above rake task to `lib/tasks/users.rake` file)
rake users:fetch_wp_data
(remove the appended rake task from `lib/tasks/users.rake` file)

Posts: 3

Participants: 2

Read full topic

Running Discourse on Docker for Mac

$
0
0

@PabloC wrote:

Hi!

I'm trying to install Discourse locally using the relatively new Docker for Mac.

This is the error I'm getting while trying to rebuild for the first time:

/launcher rebuild app
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
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.
See https://docs.dock.
888ba058ad2b2c2e797e1d298183472aa7c75f29deb2344a0ffec9e7d987927f
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Maybe I need to share some folder first? Is anyone trying to run it like this?

tks!

Posts: 2

Participants: 2

Read full topic

Pointers for building a plugin for browser fingerprinting

$
0
0

@carmalonso wrote:

Based on the discussion from my thread:

I decided to try my hand at building a plugin that would help prevent suspended users from returning by blocking their browser fingerprint (see panopticlick.eff.org). My plan for this plugin involves:

  • calculating a browser's fingerprint on plugin initialise (using the FingerprintJS2 JavaScript library)

  • save it to the database based on the user's id if it doesn't already exist (there should be a single object per each fingerprint tied to the user - we capture every unique fingerprint a user logs in with to prevent access to all device in the future)

  • on load, query by the calculated fingerprint to see if it is blocked; perform a similar action to an IP block if this is the case, or allow the user to access the site if they're not blocked.

I've made a bit of progress below:
https://github.com/carmichaelalonso/discourse-fingerprint-bans

Now the tough part for me is the fact I'm completely new to Ember and Rails, so this is taking a bit of getting used to. I've based this on other plugins (such as the discourse-staff-notes plugin) to help get a good structure and to learn how this stuff all works.

In plugin.rb, I believe I've set up a model interaction layer. The model is called by the saveFingerprint function in /assets/javascripts/controllers/fingerprint.js.es6, and I'm trying to call this function (exported as an action) from the initializer fingerprint.js.es6 file.

From what I've gathered, this is theoretically how I'd call the saveFingerprint function from the initializer:

However, this is undefined (expected) and I'm not sure how this is declared.

I'd welcome any input/contributions from someone a bit more experienced as to how I should go about this and how

Posts: 1

Participants: 1

Read full topic

Why is the method ˜rails_master? in Gemfile?


What are the recommended Tools/setup config for Q&A Community based on Discourse?

$
0
0

@Yassine_Yousfi wrote:

Hi,

I have now 2 discourse installations, both of them are meant to be "Q&A discussion community websites", but on different Topics, Both websites though are on the broad Niche of IT & Computing.

So i have this question, since Discourse fits most to Forums, How can i m websites become successful Q&A discussion communities based on Discourse!

I've used before different platforms/frameworks to built the communities, such as Question2Answer and custom built Asp.net ones, but i see discourse has great potential but i can't find the plugins, or the ultimate setup that should work for a Q&A.

P.S. I've already installed the "Best Answer" plugin, it's good.

Regards

Edit:
Guys @codinghorror & @sam i think you have quite some experience on IT Q&A :slight_smile: as i believe you are coming from Stackoverflow :), your ideas will be really appreciated.

Posts: 5

Participants: 3

Read full topic

Colored usernames

$
0
0

@Drakon_Dawn wrote:

So I've seen xenforo forum software has an option for people to set colored usernames for others and like a marketplace plugin for users to buy those cosmetic perks, does discourse have this? if not could it be implemented?

For example I want the color red on a discourse forum. I buy it through a paypal integration or just direct pay the owner for it, and the system or owner will set the color to red for me. so my username will look red everywhere on the forum :smiley:

Posts: 6

Participants: 4

Read full topic

Customized login auth plugin

$
0
0

@Asoul wrote:

Hi, I'm new to discourse,

I want to create a plugin for customized login that contains below feature:

  • No signup button on homepage, and can not create new account in discourse
  • After click signin button, user will be authenticate to external database
  • After authentication, get user information and login to discourse

Is there any document or sample code for that? or these feature has already done before?

Thanks

Posts: 6

Participants: 2

Read full topic

Mobile view "jump to page number" feature

$
0
0

@needhelp wrote:

Hi All, the mobile responsive for Discourse works very well, but can the "jump to page number" feature be enhanced with a slider that allows users to slide like it is on the desktop view?

The "jump to page number" feature is not particularly user friendly because you have to enter a page number in order to navigate away from the current page, it would be so much better with a slider that we can just touch and slide with 1 finger to navigate away from the current page.

Thanks

Posts: 4

Participants: 3

Read full topic

Google Auth gives Error 400

$
0
0

@rhotimee wrote:

I installed Discourse few days ago. Google Auth works when i hit example.com to sign up / login but fails when it is www.example.com.
400. That’s an error.

Error: redirect_uri_mismatch

pls help.

Posts: 2

Participants: 2

Read full topic

Arabic translation issues

$
0
0

@djeber wrote:

i notices today that there are some mistakes in the arabic translation but the issue is that those translations are reviewed so i can't changes them the issue is effecting 5 phrases with the word "log in" it translated to "لج" which should be "تسجيل الدخول"
is there any way to fix !!

Posts: 1

Participants: 1

Read full topic

Fixed header and address bar minimize on mobile version: how do you obtain that?

$
0
0

@robypez wrote:

Hello everybody and sorry for my question, even if is marginally related to Discourse. We have developed the mobile version of our website www.dday.it and of course we have forum.dday.it integrated into the mobile version. I notice that when I use Discourse on iPhone or Android the address bar of the browser change size or disappear when I scroll the content, but on my website I cannot obtain the same effect.
I assume that the problem is my fixed header, but also in Discourse we have the fixed header. So why with Discourse the address bar change size and with my website no?

I have to obtain the same behaviour and I'm getting crazy? What's the secret?

Posts: 1

Participants: 1

Read full topic


Email won't send through sendgrid

$
0
0

@irondev wrote:

Hello, I have discourse set up on my centOS 7 server and it's running and I can get to it in a subfolder.

My SMTP is going through sendgrid and two days ago it worked but had about a 10minute delay. Now however, when I try to send a test email I just get errors. I was using un/pw for my sendgrid account and trying to test an email send gave an error and I just switched to the api key where I have the string name of my apikey as the username and the apikey as the hpassword and it still isn't working.

Where can I check the smtp logs through discourse....
I get a not authorized when I try to check domain.com/forums/logs even when I'm logged in as the admin.

Posts: 1

Participants: 1

Read full topic

Where do I find the topic "displayer" in the discourse code?

$
0
0

@JimmyX wrote:

Is it here? The topics controller?

I wonder if it will be possible for me to, for example, filter the display of a topic so that only the replies to a given post are displayed?

Posts: 1

Participants: 1

Read full topic

Allow_restore -> set from command-line?

$
0
0

@slackmoehrle wrote:

I'm restoring to a new server, can I set allow_restore in a config file? I can't use the wen interface right yet because I can't receive my activation e-mail.

Posts: 3

Participants: 2

Read full topic

Cannot change background color of topic body

$
0
0

@kgish wrote:

I have written a plugin and would like to be able to change the background color of the first topic body.

I am able to do this for certain element "within" the topic body, but for some weird reason NOT for the topic body itself.

var light_blue = '#87ceeb',
// Topic pages start with "/t/*"
if (/\/t\//.test(url)) {
    var first_post_body = $('.topic-body:first');
    if (first_post_body.length) {
        // This does NOT work, only the border changes byt NOT the background.
        first_post_body.css({
            border: '8px solid '+light_blue,
            backgroundColor: light_blue,
        });
        // This works
        first_post_body.find('.topic-meta-data').css({
            backgroundColor: light_blue,
            color: '#222'
        });
        // This works, too
        first_post_body.find('.cooked').css({
            backgroundColor: light_blue,
            color: '#222'
        });
    }
}

Posts: 1

Participants: 1

Read full topic

Incoming mail is rejected if in-reply-to a post in a non-accessible thread even if sent to a group inbox

$
0
0

@fefrei wrote:

As recommended by @mpalmer, here's a bug report for a phenomenon that caused some confusion for me:

How to reproduce:

  • Produce a messaging topic T that is inaccessible to user A, but deliver a mail from that topic to this user without Discourse knowing, e.g. by replying to the topic via mail and CCing a mailing list containing user A. (See here for a description of a real-world occurrence of this.)
  • As user A, reply to this message, addressing it to the group inbox address of group G. Use a mail client that adds an In-Reply-To header to do this.

Expected behavior:

Discourse creates a new message between group G and user A. (It may try to post a reply in topic T instead because it sees the In-Reply-To header, but falls back to the new message because user A lacks permissions for a reply.)

Actual behavior:

Discourse sees the In-Reply-To header and tries to post a reply from user A in topic T. Because A lacks permissions to do so, Discourse sends him an email explaining that the topic was probably closed or deleted, and does not deliver that message.

Posts: 1

Participants: 1

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images