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

Android mobile app - lose my place when I switch apps

$
0
0

@tobiaseigen wrote:

I've been using the android mobile app for a few months now, and I like it. I'm having a problem with it though and have what I think is a feature request.

When I am reading discussions using the app I keep losing my place. When I need to switch to another app (which of course happens frequently on mobile) and then switch back I find myself back at the list of sites. Also, when I'm on the list of sites it seems to me I should be able to click through to a site and go back to what I was doing rather then land on the frontpage again. It's a bit infuriating.

I am inclined to stop using the app now and instead use chrome tabs, though I will miss that lovely list of sites with notifications.

Posts: 4

Participants: 4

Read full topic


I can't start discourse on CentOS

$
0
0

@502647092 wrote:

System Info:

LSB Version:    :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.3.1611 (Core)
Release:        7.3.1611
Codename:       Core

Docker Info

[root@sz discourse]# docker info
Containers: 1
 Running: 1
 Paused: 0
 Stopped: 0
Images: 7
Server Version: 1.12.6
Storage Driver: overlay
 Backing Filesystem: xfs
Logging Driver: journald
Cgroup Driver: systemd
Plugins:
 Volume: local
 Network: null bridge host overlay
Swarm: inactive
Runtimes: runc docker-runc
Default Runtime: docker-runc
Security Options: seccomp
Kernel Version: 3.10.0-514.10.2.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 2
CPUs: 2
Total Memory: 15.38 GiB
Name: sz
ID: SR7C:JIH6:OGE4:55KT:CJBY:CUCL:YVQL:HIOH:ZZLB:UVBA:JCNE:53X2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
 127.0.0.0/8
Registries: docker.io (secure)

ERR LOG

I, [2017-05-12T01:35:20.621105 #14]  INFO -- : > gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
I, [2017-05-12T01:35:24.277753 #14]  INFO -- : https://gems.ruby-china.org/ added to sources
https://rubygems.org/ removed from sources

I, [2017-05-12T01:35:24.278166 #14]  INFO -- : > cd /var/www/discourse && gem update bundler
I, [2017-05-12T01:35:27.143341 #14]  INFO -- : Updating installed gems
Nothing to update

I, [2017-05-12T01:35:27.143465 #14]  INFO -- : > cd /var/www/discourse && chown -R discourse /var/www/discourse
chown: cannot access '/var/www/discourse/.mention-bot': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/components/customize-link.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/components/disable-custom-stylesheets.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/controllers/admin-customize-css-html-show.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/controllers/modals/change-site-customization-details.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/controllers/modals/delete-site-customization-details.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/models/site-customization.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/routes/admin-customize-css-html-show.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/routes/admin-customize-css-html.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/templates/components/customize-link.hbs': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/templates/customize-css-html-index.hbs': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/templates/customize-css-html-show.hbs': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/templates/customize-css-html.hbs': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/admin/templates/modal/site-customization-change.hbs': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/components/auto-close-form.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/components/check-mark.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/components/json-file-uploader.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/components/topic-closing.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/controllers/edit-topic-auto-close.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/controllers/upload-customization.js.es6': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/templates/components/auto-close-form.hbs': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/templates/components/check-mark.hbs': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/templates/components/json-file-uploader.hbs': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/templates/modal/edit-topic-auto-close.hbs': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/javascripts/discourse/templates/modal/upload-customization.hbs': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/stylesheets/common/components/badges.css.scss': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/stylesheets/common/components/banner.css.scss': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/stylesheets/common/components/buttons.css.scss': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/stylesheets/common/components/date-picker.css.scss': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/stylesheets/common/components/keyboard_shortcuts.css.scss': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/stylesheets/common/components/navs.css.scss': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/stylesheets/embed.css.scss': No such file or directory
chown: cannot access '/var/www/discourse/app/assets/stylesheets/vendor/sweetalert.css': No such file or directory
chown: cannot access '/var/www/discourse/app/controllers/admin/site_customizations_controller.rb': No such file or directory
chown: cannot access '/var/www/discourse/app/controllers/site_customizations_controller.rb': No such file or directory
chown: cannot access '/var/www/discourse/app/jobs/onceoff/grand_first_reply_by_email.rb': No such file or directory
chown: cannot access '/var/www/discourse/app/jobs/regular/create_thumbnails.rb': No such file or directory
chown: cannot access '/var/www/discourse/app/jobs/scheduled/enqueue_mailing_list_emails.rb': No such file or directory
chown: cannot access '/var/www/discourse/app/models/site_customization.rb': No such file or directory
chown: cannot access '/var/www/discourse/app/models/warning.rb': No such file or directory
chown: cannot access '/var/www/discourse/app/serializers/site_customization_serializer.rb': No such file or directory
chown: cannot access '/var/www/discourse/app/views/user_notifications/mailing_list.html.erb': No such file or directory
chown: cannot access '/var/www/discourse/app/views/user_notifications/mailing_list.text.erb': No such file or directory
chown: cannot access '/var/www/discourse/app/views/users/account_created.html.erb': No such file or directory
chown: cannot access '/var/www/discourse/config/initializers/100-sprockets.rb': No such file or directory
chown: cannot access '/var/www/discourse/lib/email/html_cleaner.rb': No such file or directory
chown: cannot access '/var/www/discourse/lib/freedom_patches/resolve.rb': No such file or directory
chown: cannot access '/var/www/discourse/lib/sass/discourse_safe_sass_importer.rb': No such file or directory
chown: cannot access '/var/www/discourse/lib/sass/discourse_sass_compiler.rb': No such file or directory
chown: cannot access '/var/www/discourse/lib/sass/discourse_sass_importer.rb': No such file or directory
chown: cannot access '/var/www/discourse/lib/sass/discourse_stylesheets.rb': No such file or directory
chown: cannot access '/var/www/discourse/public/javascripts/jquery.magnific-popup-min.js': No such file or directory
chown: cannot access '/var/www/discourse/spec/components/discourse_sass_compiler_spec.rb': No such file or directory
chown: cannot access '/var/www/discourse/spec/components/discourse_stylesheets_spec.rb': No such file or directory
chown: cannot access '/var/www/discourse/spec/components/step_updater_spec.rb': No such file or directory
chown: cannot access '/var/www/discourse/spec/components/wizard_builder_spec.rb': No such file or directory
chown: cannot access '/var/www/discourse/spec/components/wizard_spec.rb': No such file or directory
chown: cannot access '/var/www/discourse/spec/components/wizard_step_spec.rb': No such file or directory
chown: cannot access '/var/www/discourse/spec/controllers/admin/site_customizations_controller_spec.rb': No such file or directory
chown: cannot access '/var/www/discourse/spec/controllers/site_customizations_controller_spec.rb': No such file or directory
chown: cannot access '/var/www/discourse/spec/jobs/close_topic_spec.rb': No such file or directory
chown: cannot access '/var/www/discourse/spec/jobs/enqueue_mailing_list_emails_spec.rb': No such file or directory
chown: cannot access '/var/www/discourse/spec/models/site_customization_spec.rb': No such file or directory
I, [2017-05-12T01:35:29.491952 #14]  INFO -- :
I, [2017-05-12T01:35:29.492936 #14]  INFO -- : Terminating async processes
I, [2017-05-12T01:35:29.493008 #14]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.5/bin/postmaster -D /etc/postgresql/9.5/main pid: 43
I, [2017-05-12T01:35:29.493062 #14]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 156
2017-05-12 01:35:29 UTC [43-2] LOG:  received fast shutdown request
2017-05-12 01:35:29 UTC [43-3] LOG:  aborting any active transactions
2017-05-12 01:35:29 UTC [50-2] LOG:  autovacuum launcher shutting down
156:signal-handler (1494552929) Received SIGTERM scheduling shutdown...
2017-05-12 01:35:29 UTC [47-1] LOG:  shutting down
156:M 12 May 01:35:29.550 # User requested shutdown...
156:M 12 May 01:35:29.550 * Saving the final RDB snapshot before exiting.
156:M 12 May 01:35:30.680 * DB saved on disk
156:M 12 May 01:35:30.680 # Redis is now ready to exit, bye bye...
2017-05-12 01:35:30 UTC [47-2] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && chown -R discourse /var/www/discourse failed with return #<Process::Status: pid 292 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"web", "cmd"=>["gem update bundler", "chown -R discourse $home"]}
8e2d407b64c3f61aaf9597d79dd3e97453f512a30f2d8779245bfa6432f8f837
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one

Posts: 9

Participants: 2

Read full topic

Discourse and Google Maps

$
0
0

@meglio wrote:

Sharing my success-story with adapting Google Maps to a category listing adverts from our users. Hope it will inspire others to use maps for their communities. The map looks like this:

In our Ukrainian Goat Keeper community, we have a Goat Market category. People put their advertising for free there when then want to sell a goat, a pure-breed goat, a newborn goat kid and so on.

I wanted to make it more visual and let people easily find who sells what close to them. This way they could save on transportation costs, which sometimes may be 50% of the goat price.

I ended up developing a google-map page which reflects the category with advertising listings.

What it does

  • Automatically puts all adverts on the map (uses Google Maps API)
  • Parses images and text out of the first topic post (uses Discourse API)
  • Cleanups text from HTML, removes small images (= smiles and other unrelated)
  • Joins all advertising listings from a single user into a single popup
  • Displays a marker on the map with a counter (up to 9), meaning how many adverts are off
  • Ignores closed and/or archived topics
  • Ignores topics with a very short (or empty) text
  • For every ads, shows a single image only (actually, its thumb), and makes a link saying "N photos", which will open a gallery viewer
  • Trips the advert text and add the "read more..." link, which opens the topic.

How it works

There is a PHP script that goes through all topics in that category, parses them and builds a list of markers to put on the map, and caches them into database:

  • runs once every 5 minutes to fetch fresh data from Discourse (simply a cron task)
  • uses masterminds/html5 for parsing cooked HTML of topic posts; it removes all formatting and images and then retrieves pure text;
  • the SQL query retrieving information from Discourse is built with Data Explorer in Discourse Admin Panel, and is called via Discourse API
  • uses React to manipulate the map, but it can be achieved same well with pure JS

Disclaimer

We already have a curated database of goat keepers where we store, among other things, their forum username, physical address and latitude/longitude coordinates.

The script matches advertising topic authors to the records in that database by username — that is how we know where to put an advert on the map.

However, this can be easily improved by using the "location" data from user profile in Discourse. If it is filled, Google Maps API can be used to retrieve coordinates for the map.

Possible improvements

  • Add search input; not a trivial task considering a full-screen layout and the need to work well on mobile device screens
  • Parse more images and text from further posts in a topic; it now only parses the first topic; the difficulty here is to filter out non-important advert information and only keep what is to the point
  • Use different markers for sell vs buy adverts; currently not implemented because only up to 5% are "buy" type advertising

Our users fell in love with the maps at first sight! The feedback is extremely positive, so I think the maps will contribute to the community value big time.

Let me know if you like the idea, how would you use it for your community and what other improvements you can think of.

You can hire me to help you with building a similar map page for your community.

Posts: 3

Participants: 2

Read full topic

CSS code that adjusts only one image size among category logo images

502 error in subfolder installation, multiple servers sharing a domain

$
0
0

@Oleg_Shishkov wrote:

Hi friends,
sorry for space in www .example.com address, but I really need your help, but forum forbids to publish my post with correct links.
I have 2 DO droplets. First droplet serves principal site www. example.com and second droplet serves discourse forum.example.com. I want proxy all traffic from www. example.com/forum/ to subdomain forum.example.com. I read a lot of forum posts and articles and eventually used following comment https://meta.discourse.org/t/discourse-in-a-subfolder-multiple-servers-sharing-a-domain/30514/10 to implement my requirements. I also have virtual hosts www .example2.com and www .example3.com they are used as domains for different language versions and they work fine. I also use free Cloudflare plan to process traffic for both sites with full strict ssl option enabled.

Result
1. www .example.com works fine
2. forum.example.com works fine
3. www .example.com/forum/ shows 502 http error

I have 2 separate ssl certificates installed on both sites. Certificates support www and non-www site versions.

Here are principal example.com nginx configurations

/etc/nginx/sites-available/default

root /var/www/example.com/public;
index index.php index.html index.htm;

server {
   server_name  example.com;
   rewrite ^(.*) https://www.example.com$1 permanent;
}

server {
   server_name example2.com;
   rewrite ^(.*) https://www.example2.com$1 permanent;
}



server {
   server_name example3.com;
   rewrite ^(.*) https://www.example3.com$1 permanent;
}

server {
  listen 443 ssl;

  server_name www .example.com www.example2.com www.example3.com;

  if ($request_method = "GET" ) {
     rewrite ^([^.]*[^/])$ $1/ permanent;
  }

  include /etc/nginx/conf.d/location;
  include /etc/nginx/conf.d/ssl;
  include /etc/nginx/conf.d/gzip;
}

/etc/nginx/conf.d/location

location / {
   try_files $uri $uri/ /index.php?$query_string;
   }

  location /forum {
  rewrite  ^/forum/(.*)  /$1 break;
  proxy_pass https://forum.example.com:443;

  proxy_redirect off;
  proxy_buffering off;
  proxy_set_header Host $http_host;
  proxy_set_header X-Forwarded-Host $http_host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }

  location ~ \.php$ {
  try_files $uri =404;
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  fastcgi_index index.php;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  include fastcgi_params;
  }

  location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc|svg|woff|woff2|ttf)\$ {
  expires 1M;
  access_log off;
  add_header Cache-Control "public";
  }

/etc/nginx/conf.d/ssl

ssl_certificate /home/oleg/ssl/www .example.com.chained.crt;
ssl_certificate_key /home/oleg/ssl/www .example.com.key;

# disable ssl
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

# optimizing the cipher suites
ssl_prefer_server_ciphers on;
ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5;

# connection credentials caching
ssl_session_cache shared:SSL:20m;
ssl_session_timeout 180m;

# strict transport security
add_header Strict-Transport-Security "max-age=31536000";

/etc/nginx/conf.d/gzip

gzip_vary on;
gzip_disable "msie6";
gzip_comp_level 6;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types
   text/plain
   text/css
   text/js
   text/xml
   text/javascript
   application/javascript
   application/x-javascript
   application/json
   application/xml
   application/xml+rss;

forum.example.com nginx configuration

upstream discourse {
    server 127.0.0.1:8080;
}

server {
    listen 80 default_server;
    server_name forum.example.com;
    return 301 https://forum.example.com$request_uri;
}

server {
    listen 443 default_server ssl;

    root /var/www/discourse/public;
    index index.html index.htm;

    server_name forum.example.com;

    ssl_certificate /home/oleg/ssl/forum.example.com.chained.crt;
    ssl_certificate_key /home/oleg/ssl/forum.example.com.key;

    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_prefer_server_ciphers on;
    ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5;

    location ~ /.well-known {
       allow all;
    }

    location / {
        proxy_pass http://discourse;
        proxy_redirect off;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }
}

/var/discourse/containers/app.yml

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

expose:
  - "127.0.0.1:8080:80"
  - "5432:5432"

params:
  db_default_text_search_config: "pg_catalog.english"
  db_shared_buffers: "256MB"

env:
  LANG: en_US.UTF-8
  UNICORN_WORKERS: 4
  DISCOURSE_HOSTNAME: forum.example.com
  DOCKER_USE_HOSTNAME: true
  DISCOURSE_DEVELOPER_EMAILS: 'myadminemail'

## smtp settings and credentials removed from this dump, but they work fine

volumes:
  - volume:
      host: /var/discourse/shared/standalone
      guest: /shared
  - volume:
      host: /var/discourse/shared/standalone/log/var-log
      guest: /var/log

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discoursehosting/discourse-sitemap.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git

run:
  - exec: echo "Beginning of custom commands"

www .example.com nginx version is nginx/1.13.0
www .example.com openssl version is 1.0.2k-1+deb.sury.org~trusty+5

forum.example.com nginx version is nginx version: nginx/1.13.0
forum.example.com openssl version is 1.0.2g-1ubuntu4.1

www .example.com nginx error log

2017/05/12 05:15:01 [error] 5478#5478: *24473 connect() to [2400:cb00:2048:1::681b:a191]:443 failed (101: Network is unreachable) while connecting to upstream, client: 162.158.102.195, server: www .example.com, request: "GET /forum/ HTTP/1.1", upstream: "https://[2400:cb00:2048:1::681b:a191]:443/", host: "www .example.com", referrer: "https://www .example.com/forum/"
2017/05/12 05:15:01 [warn] 5478#5478: *24473 upstream server temporarily disabled while connecting to upstream, client: 162.158.102.195, server: www .example.com, request: "GET /forum/ HTTP/1.1", upstream: "https://[2400:cb00:2048:1::681b:a191]:443/", host: "www .example.com", referrer: "https://www .example.com/forum/"
2017/05/12 05:15:01 [error] 5478#5478: *24473 SSL_do_handshake() failed (SSL: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error) while SSL handshaking to upstream, client: 162.158.102.195, server: www .example.com, request: "GET /forum/ HTTP/1.1", upstream: "https://104.27.161.145:443/", host: "www .example.com", referrer: "https://www .example.com/forum/"
2017/05/12 05:15:01 [warn] 5478#5478: *24473 upstream server temporarily disabled while SSL handshaking to upstream, client: 162.158.102.195, server: www .example.com, request: "GET /forum/ HTTP/1.1", upstream: "https://104.27.161.145:443/", host: "www .example.com", referrer: "https://www .example.com/forum/"
2017/05/12 05:15:01 [error] 5478#5478: *24473 SSL_do_handshake() failed (SSL: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error) while SSL handshaking to upstream, client: 162.158.102.195, server: www .example.com, request: "GET /forum/ HTTP/1.1", upstream: "https://104.27.160.145:443/", host: "www .example.com", referrer: "https://www .example.com/forum/"
2017/05/12 05:15:01 [warn] 5478#5478: *24473 upstream server temporarily disabled while SSL handshaking to upstream, client: 162.158.102.195, server: www .example.com, request: "GET /forum/ HTTP/1.1", upstream: "https://104.27.160.145:443/", host: "www .example.com", referrer: "https://www .example.com/forum/"
2017/05/12 05:15:01 [error] 5478#5478: *24473 connect() to [2400:cb00:2048:1::681b:a091]:443 failed (101: Network is unreachable) while connecting to upstream, client: 162.158.102.195, server: www .example.com, request: "GET /forum/ HTTP/1.1", upstream: "https://[2400:cb00:2048:1::681b:a091]:443/", host: "www .example.com", referrer: "https://www .example.com/forum/"
2017/05/12 05:15:01 [warn] 5478#5478: *24473 upstream server temporarily disabled while connecting to upstream, client: 162.158.102.195, server: www .example.com, request: "GET /forum/ HTTP/1.1", upstream: "https://[2400:cb00:2048:1::681b:a091]:443/", host: "www .example.com", referrer: "https://www .example.com/forum/"

I appeciate any thoughts how to fix 502 error on www .example.com/forum/

Posts: 1

Participants: 1

Read full topic

Onebox doesn' work for prestashop

$
0
0

@Hotfirenet wrote:

Hello everybody,
I have a problem with my shop and my community, the Onebox doesn' work! :frowning:
in my product page i have the og balise, see:

<meta property="og:locale" content="fr_FR" />
<meta property="fb:app_id" content="1414683252169016" />
<meta property="og:type" content="product" />
<meta property="og:title" content="ZIPATO - Ampoule LED RGBW Z-Wave+ v2" />
<meta property="og:description" content="  En utilisant l&#039;ampoule LED RGBW Zipato, vous pouvez commander la couleur et l&#039;intensit&eacute; de l&#039;&eacute;clairage de la maison en utilisant simplement votre smartphone.  " />
<meta property="og:url" content="https://www.domadoo.fr/fr/peripheriques/4111-zipato-ampoule-led-rgbw-z-wave-v2-3858890733464.html" />
<meta property="og:site_name" content="DOMADOO" />
<meta property="og:image" content="https://www.domadoo.fr/9331-large_default/zipato-ampoule-led-rgbw-z-wave-v2.jpg" />
<meta property="og:image:width" content="364" />
<meta property="og:image:height" content="416" />
<meta property="product:brand" content="Zipato" />
<meta property="product:mfr_part_no" content="ZIP-RGBW2-EU" />
<meta property="product:mfr_part_no" content="" />
<meta property="product:category" content="P&eacute;riph&eacute;riques" />
<meta property="product:ean" content="3858890733464" />
<meta property="product:upc" content="385889073346" />
<meta property="product:sale_price:amount" content="39" />
<meta property="product:sale_price:currency" content="EUR" />
<meta property="product:weight:value" content="0.160000" />
<meta property="product:weight:units" content="kg" />
<meta property="product:condition" content="new" />
<meta property="product:availability" content="oos" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:description" content="  En utilisant l&#039;ampoule LED RGBW Zipato, vous pouvez commander la couleur et l&#039;intensit&eacute; de l&#039;&eacute;clairage de la maison en utilisant simplement votre smartphone.  ." />
<meta name="twitter:title" content="ZIPATO - Ampoule LED RGBW Z-Wave+ v2" />
<meta name="twitter:site" content="DOMADOO" />
<meta name="twitter:image" content="https://www.domadoo.fr/9331-large_default/zipato-ampoule-led-rgbw-z-wave-v2.jpg" />
<meta name="twitter:creator" content="@domadoo" />

I've read another discution https://meta.discourse.org/t/onebox-doesnt-work-for-wordpress/56618/2

Have you got an idea ?

Thanks

Posts: 6

Participants: 2

Read full topic

Tracking Digest Emails and Clickthrough

$
0
0

@markwilkin wrote:

Does anyone here have some suggestions on how I could go about tracking stats for "digest emails opened" and "digest emails links clicked"?

We're using Postmark and that's telling me:
"Out of 1,838 emails with open tracking, 39.6% were opened.
Out of 34,633 tracked links, 0.9% were clicked."

But that'll be all the emails that Discourse sends out, any suggestions to focus in on the digests?

Also while I'm here, are those numbers good compared to others? I don't have much to compare against atm.

Thanks

Posts: 1

Participants: 1

Read full topic

Add users to Private Groups based on selections on registration page

$
0
0

@ydot_k wrote:

Hi,

I'm working with a client who wants wants users to be added to groups based on a selection on the registration page.

Currently on the form, there are three options.

Super Yes, Yes and No

If the user selects Super Yes, they get added to group one.
If the user selects Yes, they get added to group two.
If the user selects No, they get added to group three.

All this needs to happen automatically.

Does anyone know how to do this?

Thanks in advance!

Posts: 5

Participants: 3

Read full topic


How to have "…" open automatically?

$
0
0

@Sujan wrote:

As a moderator I click on the "…" (tooltip "show more") button below posts (left to Reply) all the time:
Delete a post, edit a post, flag a post - each one takes two clicks.

Is there a way to have this open automatically without the additional click?

Posts: 4

Participants: 3

Read full topic

Find a user by ID or username?

$
0
0

@Radulf wrote:

And another "simple" question from me and basically a follow up to https://meta.discourse.org/t/showing-simple-text-with-decoratewidget/62521/5

I want to decorate the post with a custom field from the posting user. To do this, I want to get the user object. I already realized, that I can get the username or user_id from the helper, i.e.,

var username = helper.attrs.username
var user_id = helper.attrs.user_id

How can I reach the user object from there? I found something about a User.find() method somewhere, but I'm not able to access it even though I import User from discourse/models/user. I also try to user Discourse.User.findByUsername(), but that returns a Promise and I have no idea how to handle that.

Do I need some additional imports or am I doing things wrong? Thanks a lot!

Posts: 2

Participants: 2

Read full topic

User invites are not reaching destinations

$
0
0

@petter wrote:

When I try to send (or resend) invites to new users, I'm Discourse tells me the invitation is sent, but it does not reach the recipient. The sidekiq dashboard says the following, but I dont' know what it means or how to go about fixing it....suggestions?

in 1 minute 17 default Jobs::UserEmail
{"type"=>"digest", "user_id"=>2, "current_site_id"=>"default"}
Jobs::HandledExceptionWrapper: Wrapped Net::SMTPAuthenticationError: 435 4.7.8 Error: authentication failed:

Posts: 3

Participants: 3

Read full topic

Creating a category for a group

$
0
0

@Gaz_Hs wrote:

I was hoping to be able to create a private group of users who have their own category (hidden from other users).

According to some posts on this forum, this is theoretically possible, however it doesn't actually work. Category permissions can only be based on trust level.

Is there some extra plugin or something that would allow for private categories with permissions based on group instead of trust level?

Posts: 5

Participants: 3

Read full topic

Trying to reset password without any luck

$
0
0

@Michal_Jurnik wrote:

Hi all!

I have a problem with sending new password to my e-mail.

I send an invitation (as admin), log in from invitation e-mail link and try to reset password. Everything works fine, UI tells me that the e-mail with a new password was send but I don't receive anything.

I looked into activity log and there's literally nothing. Any idea what's going on?

Thanks for help!

Posts: 6

Participants: 2

Read full topic

"You sent a message to this user": fadeout of post unclear

$
0
0

@Sujan wrote:

When I send a message/warning to a user via flag icon -> "Send @user a message | I want to talk to this person directly and privately about their post." -> Message / Warning the post gets lighter, almost faded out. This made me assume the post also got removed or deleted, but on reload I only see the "You sent a message to this user" under the post.

Why this fadeout?

Posts: 3

Participants: 2

Read full topic

Digest mail customization

$
0
0

@broz wrote:

It would be nice to have these features implemented:
1. Change the color of the background behind the logo
2. Change the color of button and links
3. Change background color (blue) of the header of the mail

Posts: 4

Participants: 2

Read full topic


Quote reply not working in IE 11

Simplified HTML emails

$
0
0

@LeoMcA wrote:

A common complaint I've heard about Discourse within Mozilla is the HTML emails.

I had always somewhat dismissed this complaint as coming from an irrational fear of HTML in emails (if it doesn't belong in emails, does it really belong in phone operating systems?) and, after all, Discourse sends multi-part emails so you can just opt to read the plaintext part. Right?

That's been the proposed solution in topics here, of varying levels of amusement.

I now realise I was a bit quick to dismiss this complaint. The issue isn't so much an inherent dislike of HTML in emails, but rather its overuse. Users want the simplicity of plaintext, but to keep inline links and bullet points.

Hence this proposal for simplified HTML emails, behind a global pref, because I completely recognise this is a pretty specific problem to Mozilla and other communities wanting to use Discourse as a mailing list replacement.

By far the biggest simplification which can be made is by not using tables. They may make layout easier, but make responding inline really rather awkward:

Removing the header would also simplify things, since the most necessary information will already be displayed by any decent email client:

And the footer shouldn't put so much emphasis on visiting the topic to respond:

When serving as a mailing list replacement, the primary method of responding should be by replying to the email. I'm envisioning a footer a lot more like how Google Groups does it:

Indeed, Google Groups doesn't even tell you you can respond by replying because, well, it's email! What else would you do?

I would see an ideal simplified footer being something like:


You received this message because you are watching the Mozilla Discourse "Participation Systems" category.
To unsubscribe from these emails, click here.
Reply to this email to respond, or visit the topic.
To post to this category, send email to parsys@mozilla.discourse.


TL;DR

  • No tables
  • No header
  • Google Groups-esque footer

This is something we're willing to put development resources into, but want to get feedback from other mailing list communities on, and co-ordinate with you upstream.

Posts: 11

Participants: 4

Read full topic

A measure of success

$
0
0

@tophee wrote:

If the success of the iPad is measured in how often we try to pinch-and-zoom a picture in a magazine, then a measure of success for discourse might be how often we catch ourselves wondering where the Quote-button is after selecting some text somewhere on the internet. Or in an email.

As for me, it happens quite often. Too often. Arrrgh! Why does it take soooo long for good features to diffuse into other applications?

Posts: 1

Participants: 1

Read full topic

Shibboleth / SAML / SSO -- Working Implementation for Higher Ed

$
0
0

@nmagee wrote:

Our campus, like many others around the US, is part of the InCommon federation, and shares a federated SAML authentication pool. So, while IT services had straightforward documentation for how to plug Shibboleth into Apache2 to protect a "regular" website, it was very unclear how to connect that with Discourse.

After banging our heads against it for awhile, the clear (and now obvious) solution was to create a separate SSO endpoint that is Shibboleth-protected, and point Discourse to that using the built-in SSO provider.

Instructions for SSO are here.

A few details:

  • The SSO endpoint we created is a single page of PHP, in a directory that requires Shibboleth authentication. Since our Discourse app is to be available to the entire university, any scoping is done at our IdP provider and not on our end.
  • It parses the payload and signature in the query string to verify, unpack, and get the nonce.
  • Then gets a few bits about the user via $_SERVER['value'] values (uid, eppn, sn, givenname) to create the new payload.
  • It then reassembles a new payload, does encoding and a hew hash, and sends the user back to the right endpoint on our Discourse site.
  • The only hangup was that I was generating the HMAC-SHA256 signature on the urlencoded payload and not the base64 payload. Once I saw that mistake and signed the latter, it worked perfectly.

You could do this in PHP, Python, Ruby, anything that can run simply in a web environment that Shibboleth plays nicely with.

The Discourse team did a good job on this feature -- I like that you can pass basic bits of user data to the SSO and a new account is stubbed out without any fuss.

Posts: 1

Participants: 1

Read full topic

Adding to the comment css tags

Viewing all 60613 articles
Browse latest View live




Latest Images