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

Custom Topic Position

$
0
0

@Denis_Frosty_Andreyc wrote:

I want to add for each topic my own position. For example, I want the “Update” section to be the first, even if it has fewer views or themes. How can I do it?

Posts: 1

Participants: 1

Read full topic


Restrict topic summary ribbon only to admin

Orientation of images uploaded is wrong

$
0
0

@thirstforwine wrote:

Continuing the discussion from Mobile image upload turns sideways:

… because that has sadly been closed.

We are seeing a lot of similar issues - do we know if this is specific to a particular device? I can ask all my members who have experienced it but if it is known issue and I can update them it would be easier.

Unfortunately we upload a lot of photos (images of wine labels) so it will happen a lot on our site

here are some examples:

Posts: 8

Participants: 3

Read full topic

How to get SSO working with a Wordpress site? I’m a noob

$
0
0

@destinationsound wrote:

I’ll attempt to explain my needs and see if what I’m trying to do is possible.

I use DigitalOcean for both my Wordpress site and my new discourse forum. The Wordpress is it’s own droplet with nginx and php7 installed running a somewhat standard LEMP stack build. This is the main domain.

I started up a second droplet using the one-click-install for Discourse forum available on DigitalOcean.

My goal is to have the Single Sign On working where Wordpress is the main site. This way my customers (who are purchasing subscription boxes) can automatically login and access the Discourse forum with the same login creds they designated on Wordpress.

As of right now I have followed the guides located within these forums and haven’t been successful in making SSO work.

My main question to start is, if the two sites are on different droplets with different server config and different ip addresses, will the SSO feature work?

Posts: 9

Participants: 4

Read full topic

Tags and competing notification settings

$
0
0

@quimgil wrote:

I have searched but found no answer to this question: in a competition between tag notification settings, who wins?

Imagine this scenario where no less than @Aristotle is using Discourse and he says:

  • I love omelet and this is why I have this tag “Watched” in my preferences.
  • I think sugar is bad and this is why I have this tag “Muted”.

Now someone creates a new topic about “Cultures that bake omelets and then toss powdered sugar on top”, which consequently features the tags omelet and sugar.

Will @Aristotle receive a notification or not?

Posts: 1

Participants: 1

Read full topic

Blockquote button fails when selected text begins with a blank line

$
0
0

@mcwumbly wrote:

I’ve seen the blockquote button fail to work a number of times, seemingly without any reason, but I think I finally figured out how to reproduce it.

If your selection includes a blank line at the beginning, it does not work. It’s a little hard to illustrate, but hopefully this helps (at the end of the recording, I make it work by re-selecting the text and being careful not to select any blank lines above it):

Posts: 2

Participants: 2

Read full topic

Sponge drop menu

Can search engines crawl, if forum behind single sign on

$
0
0

@sbsmithjax wrote:

Greetings, we are loving our new Discourse Forum. Thank you to the community that is supporting this.

We have a novice questions. Our forum: https://forums.ppsapta.org is hooked to single sign on, via our client’s membership directory. We redirect to the login page for any one not logged in.

Does this inherently indicate that search engines will NOT be able to crawl our forum posts at all?

Our client wants to keep the information private, only available if you pay member dues to the non-profit.

Thanks!
Stephen

Posts: 2

Participants: 2

Read full topic


Default app.yml file anywhere?

$
0
0

@purldator wrote:

I am trying to find a default app.yml file to put into my containers folder so I can edit it as per here.

For now, when I try to run set up, I get this message.

Port 80 appears to already be in use.

If you are trying to run Discourse simultaneously with another web
server like Apache or nginx, you will need to bind to a different port

See https://meta.discourse.org/t/17247

If you are reconfiguring an already-configured Discourse, use

./launcher stop app

to stop Discourse before you reconfigure it and try again.

I have a ghost blog already taking up port 80 and 443. Just need a default yml file so I can run the installer then work with nginx.

Posts: 2

Participants: 2

Read full topic

Logo Resize & Open Links in Header in New Tab?

$
0
0

@voscea wrote:

Hi there!
So, I’m new to Discourse and there’s a few issues I’m having that are rather frustrating when setting up our soon to be SDS Community Forum.

Here’s what I’m trying to do:

  • make the logo in the header bigger and flush with the top of the page with a small buffer at the bottom of the header

example on main site http://www.servicedogsociety.com:

  • make the links in the navigation header open in new tabs (related to our parent site, not the forum; so this is pretty important to us)

The problems I’m having:

  • can’t figure out how to make the logo bigger in the header
  • I’m not sure why this code isn’t working to make our navigation header tabs open in new browser tabs:
    (I have my user settings set to open links in a new tab)

example of coding I used for our nav links in html:
helper.h('li.hidden-for-mobile', [
helper.h('a.nav-link', {
href:'https://www.servicedogsociety.com/about/',
text:'About',
target:'_blank'

I feel like an absolute moron here, lol. I’ve done HTML, CSS, and Javascript in the past, but never with the Discourse platform.

Any help is greatly appreciated!
Thanks,
-Sydney

Posts: 1

Participants: 1

Read full topic

Is there a way to customize the word size of the posts?

$
0
0

@xiasummer wrote:

In my opinion, I think the word size in the post is a bit small. Can we customize it?

I know it’s a very tiny problem. While I searched the forum, but didn’t find sth with the key word “word size”.

Posts: 3

Participants: 2

Read full topic

WP Discourse SSO not working / looping back to wordpress

$
0
0

@Frankpanduh wrote:

I’m struggling to get the SSO setup with Wordpress.

after setting up on both the discourse and Wordpress according to setup tutorials.

my attempt to login to the discourse post setup:

discourse login < Wordpress login page < sign in < redirected back Wordpress

but never redirects back to discourse or logs in to discourse at all.

I been trying to figure out this loop any insight as to whats going on?

Wordpress Setup:
NGINX | PHP-FPM | PHP-CURL | MARIADB (https)
(possible causes that i can’t entirely figure out: using THEME-MY-LOGIN / DIVI Builder )

Discourse Setup:
Digital Ocean One-Click. (HTTPS)

Posts: 15

Participants: 3

Read full topic

Dot in corner of timeline-container in Chrome / Windows

$
0
0

@Kumirei wrote:

I wouldn’t be surprised if not many have noticed, but there is a mysterious dot in the top left corner of the timeline-container. I found it while working on a userstyle so at first I thought it was just something I added, but I later noticed that it’s native to the platform.

It’s just one pixel, so it might be hard to spot, but this is what I’m talking about:
chrome_2017-11-19_16-23-13

I am certain it is related to the timeline somehow, since it’s right at the corner of the element, and it moves along with it if I add a translation.
see image

Furthermore, and I have no idea why this would happen, but it changes color along with the background of input elements. The only way I’ve found to remove it is to set the opacity of inputs to 0, but that’s not going to work.
Setting

input {
    background-color: red !important;}

gives this, as you see the dot has changed color.

I’d be very happy if someone knows what is going on here, because except for the input thing I’ve found nothing else which affects it.

Posts: 8

Participants: 4

Read full topic

Api get topics in a category sorted by id

[PAID] Extending Custom Wizard Plugin

$
0
0

@Vip3rousmango wrote:

Custom Wizard Plugin is a great plugin, and I’m looking to extend its features by adding a custom field with a few options and configurable settings.

Ideally, I would like to:

  • Add a new “verification token” field to the plugin’s list of selectable fields, having all the features the plugin provides for fields.
    • This field generates a random 12-character key that is unique to the user going through the wizard.
    • This unique key is displayed to the user during the step it’s applied too, this is the one and only time the user gets to see this key.
    • This unique key should be saved to the user’s profile, but only viewable by Admin group.
    • If the user re-does the wizard and it has this field, it should generate a new unique key, overriding the old one.

Field’s Purpose:

This field is to help with a simple “verification” process. The user is going to fill out the Wizard in 4 Steps:
Step 1: Read instructions and Upload two photos: Front/Back of a Photo ID
Step 2: Write down the unique key to this verification process.
Step 3-a: Upload selfie image with ID, their Face and the unique key is written on a piece of paper.
Step 3-b: Auto place the user into the “pending” group.
Step 4: Wizard Complete - Save all 3 images and the unique key to the user’s profile but hide all fields. Only Admin can see so they can verify user (manually moving them from age-pending group to Age Verified group).

Plugin Config Options:

  • Allow admin to remove a key and images from an account if the user fails the process so they have to go through the wizard again at another time.

My budget for the task is around $175usd but can be negotiated depending on complexity and timeline. Ideally, I’m looking to complete as soon as possible, but I can allow for more time for a quality deliverable, rather then a rushed one.

Please feel free to message me if you have further questions. I’m a full-time front-end WordPress developer making the dive into Discourse and I’m still learning EmberJS so I’m looking for a more experienced developer to help create this for me as it’s above my skill-set!

I have the Wizard already set up in my instance, but it’s missing the unique field to help tie in the whole process. I created a thread about in Plugins, too.

Posts: 1

Participants: 1

Read full topic


Image hash code in description of forum topic shared on Facebook/Twitter

$
0
0

@ChrisBeach wrote:

image

Image hash codes are appearing in og:description and twitter:description tags.

<meta property="og:description" content="[58C86A72-CC43-4B36-A8C7-2F360BBA228E]  One Tree Hill, Honor Oak   🎉 Welcome to Lewisham  ..." />
<meta name="twitter:description" content="[58C86A72-CC43-4B36-A8C7-2F360BBA228E]  One Tree Hill, Honor Oak   🎉 Welcome to Lewisham ..." />

It’s rare, if ever, that the image caption contains any useful content - most of the time they are lengthy hash codes. If these captions were stripped from the og: tags it would help my social media shares look clearer (I rely on shares to bring people to my forum - they’re an important part of my branding).

Posts: 2

Participants: 2

Read full topic

Gender based colours on avatars

$
0
0

@Pawel_Kosiorek wrote:

Hi!

I’m searching for the way to tag user avatar base on gender.
For example male avatars will have blue background and female pink one. Does anyone tried to do that?
Thanks!

Posts: 4

Participants: 4

Read full topic

Automatic link creation for non-tld

$
0
0

@Patrick_David wrote:

I am not sure if this has cropped up before. A cursory search in /c/bug didn’t turn anything up that looked related.

I love getting links automatically for URLs: google.com, or pixls.us, or gimp.org.

Is there a list for allowed TLD’s to auto-linkify? That is, if I use a file with an extension like markdown, it gets turned into a link also: README.md (<- that is just typing a filename + extension, not an actual link I’ve created. :frowning:

Posts: 3

Participants: 2

Read full topic

Issues setting up subfolder support in Discourse

$
0
0

@iPullRank wrote:

Hey all,

Thanks for all this thread as it has been educational and valuable in a lot of ways and I wonder if other people might be running into an issue that I haven’t been able to find an explicit answer to.

First, Discourse seems like a very elegant solution to my message board system needs so thanks for building it and making it open source. I recently purchased a 20 year old website with a forum that is custom built in ASP classic and I’m excited to move off of it onto something modern. So thank y’all for all the efforts you put into building a great product.

Second, I do want to be forthcoming and say, I’ve been involved in the SEO space for the last 11 years (developer for longer than that) so the whole “ARCANE SEO MAGICKS” and disbelief in how subdomains vs. subdirectories are handled by search engines makes me snicker. Based on my own experience, 100% of the time that we’ve had a client (of any size) move content from a subdirectory to a subfolder we see increases in Organic Search traffic for the content they’ve moved as well as the content on the root domain. This is largely because the 301 redirects from the moved content carry link equity with them which makes the root domain more authoritative and because the root domain tends to already have more links pointing to than most given subdomains. I agree that just because it’s on a on subdomain vs. subdirectory probably doesn’t make as much difference in and of itself, but the link equity is a key factor in the differences in performance and even Matt Cutts would agree with that. This is also the case if you move everything from the root domain to a subdomain with the right redirects. Conversely, the aforementioned site is on Shopify and we wanted to put WP as the root and reverse proxy shopify in the /store directory pursuant to this. Unfortunately, I found out the hard way that Shopify throttles IPs and because the reverse proxy requests everything through one IP, it kills the site if you get any meaningful amount of traffic. So we had to move the store to a subdomain and traffic has effectively tanked across the board. If @codinghorror or @neil have any interest, I’m happy to share the details and analytics on that and when we move back to the main domain once we make our switch to WooCommerce so ya’ll can see for yourself what the impact is.

Third, the real reason I’m posting is that I’m having some difficulty with the instructions above and all of the image and JS resources are 404ing:

Here’s the relevant portion of my NGINX configuration file:

location /forum/ {
    proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
    proxy_set_header Host $http_host;
    proxy_http_version 1.1;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    rewrite ^/(.*)$ /forum/$1 break;
    rewrite ^/forum/?(.*)$ /$1;
}

I made the changes to the config file myself because the site has a series of pretty involved rules in place for the various different things running to comprise it.

Here’s my app.yml (it pretty much matches what is on this page):

## this is the all-in-one, standalone Discourse Docker container template
##
## After making changes to this file, you MUST rebuild
## /var/discourse/launcher rebuild app
##
## BE *VERY* CAREFUL WHEN EDITING!
## YAML FILES ARE SUPER SUPER SENSITIVE TO MISTAKES IN WHITESPACE OR ALIGNMENT!
## visit http://www.yamllint.com/ to validate this file as needed

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
  - "templates/web.socketed.template.yml"
## Uncomment these two lines if you wish to add Lets Encrypt (https)
  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.template.yml"

## which TCP/IP ports should this container expose?
## If you want Discourse to share a port with another webserver like Apache or nginx,
## see https://meta.discourse.org/t/17247 for details
expose:

params:
  db_default_text_search_config: "pg_catalog.english"

  ## Set db_shared_buffers to a max of 25% of the total memory.
  ## will be set automatically by bootstrap based on detected RAM, or you can override
  db_shared_buffers: "2048MB"

  ## can improve sorting performance, but adds memory usage per-connection
  #db_work_mem: "40MB"

  ## Which Git revision should this container use? (default: tests-passed)
  #version: tests-passed

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

  ## How many concurrent web requests are supported? Depends on memory and CPU cores.
  ## will be set automatically by bootstrap based on detected CPUs, or you can override
  UNICORN_WORKERS: 4

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: undergroundhiphop.com
  DISCOURSE_RELATIVE_URL_ROOT: /forum

  ## Uncomment if you want the container to be started with the same
  ## hostname (-h option) as specified above (default "$hostname-$config")
  DOCKER_USE_HOSTNAME: true

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example 'user1 at example.com,user2 at example.com' <--- changed because it said I couldn't mentioned more than 2 users in a post
  DISCOURSE_DEVELOPER_EMAILS: 'mike at ughh.com'  # changed because it said I couldn't mentioned more than 2 users in a post

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_ADDRESS: smtp.elasticemail.com
  DISCOURSE_SMTP_PORT: 2525
  DISCOURSE_SMTP_USER_NAME: blah
  DISCOURSE_SMTP_PASSWORD: "aaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaaaaa"
  #DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

  ## If you added the Lets Encrypt template, uncomment below to get a free SSL certificate
  LETSENCRYPT_ACCOUNT_EMAIL: mike at ughh.com # changed because it said I couldn't mentioned more than 2 users in a post

  ## The CDN address for this Discourse instance (configured to pull)
  ## see https://meta.discourse.org/t/14857 for details
  #DISCOURSE_CDN_URL: //discourse-cdn.example.com

## The Docker container is 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

## Plugins go here
## see https://meta.discourse.org/t/19157 for details
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git

## Any custom commands to run after building
run:
  - exec:
        echo "Beginning of custom commands"
  - exec:
        cd: $home
        cmd:
          - mkdir -p public/forum
          - cd public/forum && ln -s ../uploads && ln -s ../backups

  - exec: rails r "SiteSetting.long_polling_base_url='/forum/'"

  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  ## After getting the first signup email, re-comment the line. It only needs to run once.
  • exec: echo “End of custom commands”

When it runs I see references to /etc/nginx/conf.d/discourse.conf, but this file does not exist.

I, [2017-11-19T18:02:59.816376 #14]  INFO -- : Replacing (?-mix:server.+{) with limit_req_zone $binary_remote_addr zone=flood:10m rate=$reqs_per_secondr/s;
limit_req_zone $binary_remote_addr zone=bot:10m rate=$reqs_per_minuter/m;
limit_req_status 429;
limit_conn_zone $binary_remote_addr zone=connperip:10m;
limit_conn_status 429;
server {
 in /etc/nginx/conf.d/discourse.conf
I, [2017-11-19T18:02:59.816629 #14]  INFO -- : Replacing (?-mix:location at discourse {) with location at discourse { #     changed because it said I couldn't mentioned more than 2 users in a post
limit_conn connperip $conn_per_ip;
limit_req zone=flood burst=$burst_per_second nodelay;
limit_req zone=bot burst=$burst_per_minute nodelay; in /etc/nginx/conf.d/discourse.conf
I, [2017-11-19T18:02:59.819948 #14]  INFO -- : File > /etc/runit/1.d/remove-old-socket  chmod: +x
I, [2017-11-19T18:02:59.822705 #14]  INFO -- : File > /etc/runit/3.d/remove-old-socket  chmod: +x
I, [2017-11-19T18:02:59.822873 #14]  INFO -- : Replacing (?-mix:listen 80;) with listen unix:/shared/nginx.http.sock;
set_real_ip_from unix:;
 in /etc/nginx/conf.d/discourse.conf
I, [2017-11-19T18:02:59.823093 #14]  INFO -- : Replacing (?-mix:listen 443 ssl http2;) with listen     unix:/shared/nginx.https.sock ssl http2;
set_real_ip_from unix:; in /etc/nginx/conf.d/discourse.conf

Also, the custom commands are not executing correctly and I’m not seeing in any indication that they are executing (yes I’m running as root). For instance, cd $home is placing the script at /var/www/discourse which does not exist and then the mkdir also never executes. But, the root for the server is /var/www/html anyway.

I, [2017-11-19T18:02:59.823755 #14]  INFO -- : > echo "Beginning of custom commands"
I, [2017-11-19T18:02:59.824996 #14]  INFO -- : Beginning of custom commands

I, [2017-11-19T18:02:59.825228 #14]  INFO -- : > cd /var/www/discourse && mkdir -p public/forum
I, [2017-11-19T18:02:59.827254 #14]  INFO -- :
I, [2017-11-19T18:02:59.827322 #14]  INFO -- : > cd /var/www/discourse && cd public/forum && ln -s ../uploads && ln -s ../backups
I, [2017-11-19T18:02:59.830304 #14]  INFO -- :
I, [2017-11-19T18:02:59.830465 #14]  INFO -- : > rails r "SiteSetting.long_polling_base_url='/forum/'"
I, [2017-11-19T18:03:06.721146 #14]  INFO -- :
I, [2017-11-19T18:03:06.721357 #14]  INFO -- : > echo "End of custom commands"
I, [2017-11-19T18:03:06.723219 #14]  INFO -- : End of custom commands

So, I’d appreciate it if someone could let me know what I’m doing wrong. Naturally, I had no problems installing this on a subdomain and perhaps I may just need to set it up on a subdomain and reverse proxy it that way, but since I’m new to the software, I don’t if it will allow me to set rel-canonical tags back to the URL that I want.

Thanks!

-Mike

Posts: 11

Participants: 3

Read full topic

How to enable Discourse comments via JavaScript in Wordpress?

$
0
0

@Quintin_Par wrote:

I am trying to use


on my wordpress blog because WP-Discourse plugin does not currently support connecting old blog posts to existing (migrated) discourse topics.

My current plan to connect an existing blog post to discourse topic via

  DiscourseEmbed = { discourseUrl: 'http://discourse.example.com/',
                     topicId: 12345 };

However, I don’t know a way to insert HTML code at blog post level that can override existing comment code. That code seems to be outside the scope of a blog post HTML code

@tophee
mentioned a way

Was wondering if there is a solution to add the Javascript code per each blog to set the comments?

Note:

  • I am planning to set this code for each blog post manually changing the DiscourseEmbed. topicId for each post.
  • For all the new posts (i.e. posts without any comments so far) I’ll be using WP Discourse.

Posts: 3

Participants: 2

Read full topic

Viewing all 60599 articles
Browse latest View live




Latest Images