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

Complete removal

0
0

@Pirat wrote:

Is there a function that removes all that has been removed
such comments, topics, pictures?

Posts: 4

Participants: 2

Read full topic


Deleting a newly created post - inconsistent behaviour?

0
0

@elberet wrote:

The revival of the discussion regarding Permanently deleting Posts/Topics got me thinking:

  • If I create a post and edit it during the ninja edit window, no new revision is created. By replacing the post's entire content with a lorem ipsum, the previous content is permanently destroyed.

  • If I delete a post during the ninja edit window, the post destroyer does create a new revision and the content I wanted to delete is now stored for all eternity (since Discourse doesn't yet have a feature to expunge content). Even worse, it remains visible for at least 24 hours to all users with sufficiant TL to view the edit history.

I believe that while a post is eligible for ninja edits, it should also be ninja-deletable, i.e. immediately and permanently. If you want to keep the post record, fine, but the content should not be retained anywhere.

Posts: 1

Participants: 1

Read full topic

Discourse migration images issue

0
0

@awrelll wrote:

Hello,
I just moved my discourse instance on a subdomain and now all my images are not displayed because of the bad links.
Is there any way to "batch" update image links so they can be correctly displayed ?
My ex domain.com diplayed the discourse and now it's forum.mydomain.com
Thanks in advance smile

Posts: 2

Participants: 2

Read full topic

How to disable compose preview pane by default?

0
0

@nickgrossman wrote:

Hi --

For our install, I'd like to disable to preview pane in the topic composer window.

Is there an easy way to do that via a config somewhere?

If not, I'll just try to figure out how to hack that into the template -- I'm new to this app, so if anyone has any pointers on where best to start with that, I'd appreciate it.

Thanks!
Nick

Posts: 2

Participants: 2

Read full topic

What tagging plugin does meta.discourse.org use?

Bug with Russian language

0
0

@Pirat wrote:

should be new (2) new and (3) - русский язык Новые (3)

I propose to make another automatic change of language, depending on the user's region

Posts: 4

Participants: 2

Read full topic

"not found" message

0
0

@Maestra_Powers wrote:

Trying to install Discourse on live server now with nginx+apache and everything. It bootsraped not from first attempt, but it did. And now both sites shows "not found" on blank page for some reason. If I understand correctly, it's Discourse answer, not nginx. I tried to disable all plugins and rebuild app - no errors while rebuilding, but same result on pages. I don't understand what went wrong here, this setup worked on test server. The only thing I changed is exposed port as described here, so I could use nginx+apache2 on host.

Here's both domains:
http://forum.redforge.ru/
http://forum.discourse.su/

app.yml:

##
## After making changes to this file, you MUST rebuild for any changes
## to take effect in your live Discourse instance:
##
## /var/discourse/launcher rebuild app
##
## Make sure to obey YAML syntax! You can use this site to help check:
## http://www.yamllint.com/

## this is the all-in-one, standalone Discourse Docker container template

# You may add rate limiting by uncommenting the web.ratelimited template.
# Out of the box it allows 12 reqs a second per ip, and 100 per minute per ip
# This is configurable by amending the params in this file

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/sshd.template.yml"
  - "templates/web.ratelimited.template.yml"

## which TCP/IP ports should this container expose?
expose:
  - "4001:80" # fwd host port 80   to container port 80 (http)
  - "2222:22" # fwd host port 2222 to container port 22 (ssh)

params:
  db_default_text_search_config: "pg_catalog.english"
  ## Set db_shared_buffers to 1/3 of the memory you wish to allocate to postgres
  ## on 1GB install set to 128MB on a 4GB instance you may raise to 1GB
  db_shared_buffers: "256MB"
  #
  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

env:
  LANG: en_US.UTF-8
  # DISCOURSE_DEFAULT_LOCALE: en

  ## TODO: How many concurrent web requests are supported?
  ## With 2GB we recommend 3-4 workers, with 1GB only 2
  UNICORN_WORKERS: 2

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1@example.com,user2@example.com'
  DISCOURSE_DEVELOPER_EMAILS: 'myemail@mail.ru'

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: 'forum.discourse.su'

  ## TODO: The mailserver this Discourse instance will use
  DISCOURSE_SMTP_OPENSSL_VERIFY_MODE: none
  DISCOURSE_SMTP_ADDRESS: 185.5.250.251         # (mandatory)
  #DISCOURSE_SMTP_PORT: 587                        # (optional)
  #DISCOURSE_SMTP_USER_NAME: user@example.com      # (optional)
  #DISCOURSE_SMTP_PASSWORD: pa$$word               # (optional)

  ## The CDN address for this Discourse instance (configured to pull)
  #DISCOURSE_CDN_URL: //discourse-cdn.example.com

  # STEAM_WEB_API_KEY: '9EBDA6F7D4B5A8104D75B484A68F0D66'
## These containers are stateless, all data is stored in /shared
volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log

## The docker manager plugin allows you to one-click upgrade Discourse
## http://discourse.example.com/admin/docker
hooks:
  after_postgres:
     - exec: sudo -u postgres createdb rsq_discourse || exit 0
     - exec:
          stdin: |
            grant all privileges on database rsq_discourse to discourse;
          cmd: sudo -u postgres psql rsq_discourse
          raise_on_fail: false

     - exec: /bin/bash -c 'sudo -u postgres psql rsq_discourse <<< "alter schema public owner to discourse;"'
     - exec: /bin/bash -c 'sudo -u postgres psql rsq_discourse <<< "create extension if not exists hstore;"'
     - exec: /bin/bash -c 'sudo -u postgres psql rsq_discourse <<< "create extension if not exists pg_trgm;"'

  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
#          - git clone https://github.com/defaye/discourse-steam-login.git
#          - git clone https://github.com/discourse/discourse-spoiler-alert
#          - git clone https://github.com/ligthyear/discourse-plugin-sidebar.git sidebar
#          - git clone https://github.com/ligthyear/discourse-plugin-simple-sidebar-theme.git simple-sidebar-theme
#          - git clone https://github.com/discourse/discourse-details
#          - git clone https://github.com/discourse/vbulletin-bbcode
#          - git clone https://github.com/ligthyear/discourse-curated-home.git curated-home

  before_bundle_exec:
    - file:
        path: /var/www/discourse/config/multisite.yml
        contents: |
         secondsite:
           adapter: postgresql
           database: rsq_discourse
           pool: 25
           timeout: 5000
           db_id: 2
           host_names:
             - forum.redforge.ru

  after_bundle_exec:
    - exec: cd /var/www/discourse && sudo -E -u discourse bundle exec rake multisite:migrate

## Remember, this is YAML syntax - you can only have one block with a name
run:
  - exec: echo "Beginning of custom commands"

  ## If you want to configure password login for root, uncomment and change:
  #- exec: apt-get -y install whois # for mkpasswd
  ## Use only one of the following lines:
  #- exec: /usr/sbin/usermod -p 'PASSWORD_HASH' root
  #- exec: /usr/sbin/usermod -p "$(mkpasswd -m sha-256 'RAW_PASSWORD')" root

  ## If you want to authorized additional users, uncomment and change:
  #- exec: ssh-import-id username
  #- exec: ssh-import-id anotherusername

  - exec: echo "End of custom commands"
  - exec: awk -F\# '{print $1;}' ~/.ssh/authorized_keys | awk 'BEGIN { print "Authorized SSH keys for this container:"; } NF>=2 {print $NF;}'

Nginx config:

server {

    listen          185.58.207.167:80;
    server_name     forum.discourse.su forum.redforge.ru;

    access_log  /home/discourse/logs/nginx.access.log;
    error_log  /home/discourse/logs/nginx.error.log;

    location /
    {
        proxy_pass      http://0.0.0.0:4001;
    }

}

Posts: 6

Participants: 2

Read full topic

Switching from erb to slim

0
0

@robbyoconnor wrote:

I was just curious why erb is used and not slim or haml as they are DRYer than ERB -- and additionally there is a tool that can convert from erb2slim rather easily.

Posts: 15

Participants: 6

Read full topic


Only one heading in Markdown quote?

Problem with POP3 PollMailbox Job

0
0

@schlos wrote:

Hi there,

I'm having problems on v1.3.0.beta2 +50 with Sidekiq Jobs::PollMailbox (aka "pop3 polling service") - it is failing.

Pop3 in use is Gmail pop.gmail.com, port 995, using ssl, pop3 polling period is 10 mins (to prevent Google from blocking).

In the logs I can see Job exception: execution expired error with details as follows

Info tab:

Job exception: execution expired

Backtrace tab:

/usr/local/lib/ruby/2.0.0/net/pop.rb:544:in `initialize'
/usr/local/lib/ruby/2.0.0/net/pop.rb:544:in `open'
/usr/local/lib/ruby/2.0.0/net/pop.rb:544:in `block in do_start'
/usr/local/lib/ruby/2.0.0/net/pop.rb:543:in `do_start'
/usr/local/lib/ruby/2.0.0/net/pop.rb:530:in `start'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:85:in `poll_pop3'
/var/www/discourse/app/jobs/scheduled/poll_mailbox.rb:18:in `execute'
/var/www/discourse/app/jobs/base.rb:153:in `block (2 levels) in perform'

Env tab:

current_db: default
current_hostname: diskurs.open.hr
job: Jobs::PollMailbox
problem_db: default

opts:

Also tried if DigitalOcean is blocking my ports, but seems good:

Discourse:~$ telnet
telnet> open pop.gmail.com 995
Trying 74.125.136.108...
Connected to gmail-pop.l.google.com.
Escape character is '^]'.
Connection closed by foreign host.

Discourse:~$ openssl s_client -connect pop.gmail.com:995 -quiet
depth=2 C = US, O = GeoTrust Inc., CN = GeoTrust Global CA
verify error:num=20:unable to get local issuer certificate
verify return:0
+OK Gpop ready for requests from 188.226.244.180 a47mb54456318wen
user [redacted]
+OK send PASS
pass [redacted]
+OK Welcome.

Any ideas what might be wrong?

Posts: 1

Participants: 1

Read full topic

vBulletin importer fails

0
0

@dpi wrote:

vBulletin importer needs to check if the firstpostid index exists before creating it. Otherwise the script will fail with this message, if it exists:

Duplicate key name 'firstpostid_index'

I commented out this line and everything progressed without issue:

    mysql_query("CREATE INDEX firstpostid_index ON thread (firstpostid)")

I believe an index was created on a previous migration and was causing me grief.

Posts: 2

Participants: 2

Read full topic

How to set Minimum Topic Body Length?

0
0

@Mohammad wrote:

Many of new users on forum often post one-liner questions on our Forum which often does not explain well the Topic itself. We therefore want to force users to write a topic with a body length of no less than 500 Characters, in order to encourage useful content and avoid spam.

The Admin settings page has options for min post length but it has no option for setting min Topic length.

There are options for topic title but no option for Topic body? Didn't you guys missed adding this important option?

Posts: 7

Participants: 3

Read full topic

Sử dụng tiếng việt và search tiếng việt trong discourse

Add an image or a file, modification

Ninja edits and images being resized

0
0

@RaceProUK wrote:

Originally reported over at TDWTF:

Don't know how easy this one is to fix, and to be fair, I am rather misusing ninja edits by way of automation, but I figured it's still worth reporting.

Steps to reproduce:

  1. Start writing a post and add an image to it
  2. Change the width/height attributes of the image (I make them smaller, and usually remove one of the attributes too)
  3. Submit the post
  4. Wait for the bot that automates some actions for you to ninja edit the post (for me, it's usually within a few seconds)

Result: The image expands to the size the upload set it to.

Weirdly, if you ninja-edit manually, the issue doesn't occur; it's only when it's done 'behind the scenes' the issue rears its head.


Not sure how well-known the term ninja edit is here; happy to explain if required wink

Posts: 6

Participants: 5

Read full topic


Hand-crafted mention link creates invisible div

0
0

@RaceProUK wrote:

Originally found by @PleegWat at TDWTF:

I've put one of those hand-crafted mentions above so I can see if it happens here too…

I'd upload an image, but I'm not TL1 yet, so I can't blush It's on the TDWTF thread though wink

Posts: 3

Participants: 2

Read full topic

Post minimum char counts obscured by tag plugin

Bad object in GitHub repo

0
0

@floriandotorg wrote:

Hi,

we've encountered the following problem:

git clone https://github.com/discourse/discourse.git
cd discourse/
git show 92dc829df56cf5166bdeb0b2463a0b1bcbac8238
fatal: bad object 92dc829df56cf5166bdeb0b2463a0b1bcbac8238

As far as we know, this only occurs on git >= 2.0.0, git 1.9.3 works fine.
Neither fsck, repack or gc helps.

The bad object causes many problems, especially when you're working with submodules.

It would be really helpful, if someone could fix it.

Posts: 2

Participants: 2

Read full topic

Allowing users to delete replies to their topics?

0
0

@KevinWorkman wrote:

I'd like to allow users to delete replies to topics they start in a specific category.

I'm looking for this feature because I'm treating a category as a way for users to post drafts (of tutorials) that other users can reply to. The author of the topic might then update the draft, and I don't want every thread to fill up with "here's a typo" "okay, typo fixed" posts. So the idea is that I'd like the author to be able to delete replies as they are dealt with and are no longer issues.

However, I don't want to just give every user the right to delete any reply from any topic. Just ones they start. I also don't want to use the flag feature, as the replies aren't bad or spam- in fact, they're probably very helpful, just not after they're dealt with!

Is there a way to do this through the configuration of a topic?

Alternatively: is this a horrible idea? Is there a better approach I might take?

Posts: 1

Participants: 1

Read full topic

How to perform a remote login without changing the domain

0
0

@Luciano_Fantuzzi wrote:

I'm using SSO to authenticate users and it's working properly. The problem is that I want the users to be already logged in the forum after logging in my site, but keeping them in my site. Ie:

1) mydomain.com -> login
2) make forum login via backend (not changing the url)
3) user browses the site and if he decides to go to forum.mydomain.com he doesn't need to login since he is already logged in.

Is this possible? Thanks.

Posts: 1

Participants: 1

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images