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

Click on avatar on user lists to pop up user card

0
0

@tobiaseigen wrote:

I feel like I'm always harping on about this everywhere, but I really think it's best to have the icon always pop up the user card instead of clicking through to the user profile. Clicking the user's name takes you through to the user profile.

Today I was on a skype call to Sierra Leone walking one of our moderators through discourse, watching his screen, and was just blown away by how painfully slow it is to load up various crucial things, including the menu, search, notifications which take 20-60 seconds (!!) to load up.

We were looking at the list of users who had been awarded a badge, one of which shows a list of 54 staff members, and I expected that clicking on a user's avatar would open up the user card to let us get to know a user... but instead it took us away from the badge list to the user profile. This was annoying because it required a click back and another long page load to get back to the badge user list.

Posts: 1

Participants: 1

Read full topic


Custom user fields and their values not related by ID in database

0
0

@OnceWas wrote:

I have been trying to access custom user field values directly from the database, and I noticed that the record IDs for the custom user fields (user_custom_fields.id) table do not relate to to the user field definitions (user_fields.id) table. It looks like the relationship between the tables is via the trailing digit(s) in user_custom_fields.name.

For example:

select id, name, field_type from user_fields;

 id |         name          | field_type
----+-----------------------+------------
  1 | Real Estate Agent     | confirm
  3 | Website               | text
  4 | Broker Account        | confirm
  6 | Address               | text
  7 | City                  | text
  2 | Real Estate Brokerage | text
  5 | Email                 | text
  8 | Province/State        | text
(8 rows)

select id, user_id, name, value from user_custom_fields;

 id | user_id |     name     |           value
----+---------+--------------+---------------------------
  1 |       6 | user_field_1 | true
  2 |       6 | user_field_3 | www.richardshomes.com
  3 |       6 | user_field_4 |
  4 |       6 | user_field_6 | 123 Main Street
  5 |       6 | user_field_7 | Mainsville
  6 |       6 | user_field_2 | XYZ Real Estate
  7 |       6 | user_field_5 | richard@richardshomes.com
  8 |       6 | user_field_8 | BC
(8 rows)

If you run the following query, you can see the disconnect between the ID fields. You would expect the query to return value for city, but you get the value for email, because the city field's ID is 7 in the field definitions table, but is stored as ID 5 in the custom user field values table.

select ucf.value from user_custom_fields ucf
left join user_fields uf on uf.id = ucf.id
where ucf.user_id = 6 and uf.name = 'City';

           value
---------------------------
 richard@richardshomes.com
(1 row)

It appears that the link between the custom user field values and the field definitions is made via the field name. In this example, city's field name is user_field_7.

Ideally, the fix would be to have the IDs between user_custom_fields and user_fields be related. I'm guessing that fixing this would require adding a new 'field_id' column to user_custom_fields in order to not break any existing relationships.

This odd non-relationship doesn't break anything, but it complicates any work with queries that target custom user field data.

Posts: 3

Participants: 2

Read full topic

Can't install Discourse with only 10 GB disk, run out of space

0
0

@hedgehog wrote:

I'm trying to set up Discourse via Docker installation on a ovh.com VPS (VPS Classic 1, 10 GB HDD, 1 GB RAM).
Sadly during bootstrapping Discourse at some point I always get no space left on device.

Before bootstrapping I had 8GB free space. This is really a lot. Is there a way to get the bootstrap finished without upgrading to a more expensive plan?

This is the last log:

I, [2015-05-22T18:42:35.120929 #43]  INFO -- : Terminating async processes
I, [2015-05-22T18:42:35.121383 #43]  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.3/bin/postmaster -D /etc/postgresql/9.3/main pid: 113
2015-05-22 18:42:35 UTC [113-2] LOG:  received fast shutdown request
2015-05-22 18:42:35 UTC [113-3] LOG:  aborting any active transactions
2015-05-22 18:42:35 UTC [120-2] LOG:  autovacuum launcher shutting down
I, [2015-05-22T18:42:35.124212 #43]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 236
236:signal-handler (1432320155) Received SIGTERM scheduling shutdown...
2015-05-22 18:42:35 UTC [117-1] LOG:  shutting down
236:M 22 May 18:42:35.333 # User requested shutdown...
236:M 22 May 18:42:35.347 * Saving the final RDB snapshot before exiting.
236:M 22 May 18:42:35.455 * DB saved on disk
236:M 22 May 18:42:35.456 # Redis is now ready to exit, bye bye...
2015-05-22 18:42:35 UTC [117-2] LOG:  database system is shut down
FATA[0056] Error response from daemon: ApplyLayer exit status 1 stdout:  stderr: write /var/www/discourse/tmp/cache/assets/production/sprockets/a3e726f9c4f9dc6b12348792c7793c2b: no space left on device

Posts: 22

Participants: 4

Read full topic

Usercards don't show shortnames when switched directly

0
0

@aliceif wrote:

Repro steps:
1. Click on someone's avatar
2. Click on a different avatar

You'll see a usercard without a shortname:

Same thing also applies to mention links et al.

This does not happen when dismissing the first usercard before opening the second one.

Posts: 2

Participants: 2

Read full topic

Ltr stylesheets are missing

0
0

@Simon_Cossar wrote:

When I view the source on a Discourse forum that is not being served by a CDN, the stylesheet link tag points to a /stylesheets/ directory. Where is that directory?

Posts: 13

Participants: 3

Read full topic

Pimp my Discourse

0
0

@AlexAB wrote:

Howdy ya'll,

I want to pimp my discourse.

  1. Who has some awesome examples of people who have "pimped" their discourse forum?
  2. Anyone suggest any great widgets to be able to embed in external sites?
  3. Anyone suggest any widget to be able to be embedded into discourse on the side?
  4. Any cool customization things I am missing and should look into? (forums.sketchup.com)

Anything else? Any Community Managers here?

If you can share code - that is helpful to my noob self here smile

Posts: 3

Participants: 3

Read full topic

Vagrant localhost installation stop working from yesterday on «handle_missing_cache» function in app/controllers/stylesheets_controller.rb

0
0

@dmitry_fedyuk wrote:

Problem commit is: https://github.com/discourse/discourse/commit/96dbeb8608d3eefa3f177d416854c261d16a5aaf#diff-25ee88a7977c2ab99f60ea77ffe1bcca

All pages simply hang up and stop loaded.
I quick fixed it commenting the line 27 out in app/controllers/stylesheets_controller.rb:

# handle_missing_cache(location, target, digest)

Console log ends with:

D, [2015-05-22T20:48:59.868520 #1387] DEBUG -- : Category Load (2.2ms) SELECT
"categories".* FROM "categories" WHERE (background_url IS NOT NULL)
D, [2015-05-22T20:49:01.260618 #1387] DEBUG -- : StylesheetCache Exists (3.1ms
) SELECT 1 AS one FROM "stylesheet_cache" WHERE "stylesheet_cache"."target" =
'desktop' AND "stylesheet_cache"."digest" = 'c9c14e5297d1084b58510d7cbf956109a4
63942e' LIMIT 1
D, [2015-05-22T20:49:01.269997 #1387] DEBUG -- : (1.7ms) BEGIN
D, [2015-05-22T20:49:01.314477 #1387] DEBUG -- : SQL (13.7ms) INSERT INTO "st
ylesheet_cache" ("content", "created_at", "digest", "target", "updated_at") VALU
ES ($1, $2, $3, $4, $5) RETURNING "id" [["content", "@charset \"UTF-8\";\n/*! n
ormalize.css v3.0.1 | MIT License | git.io/normalize */\n/**\n * 1. Set default
font family to sans-serif.\n * 2. Prevent iOS text size adjust after orientation
change, without disabling\n * user zoom.\n /\n/ line 9, /vagrant/app/asset
s/stylesheets/vendor/normalize.scss /\nhtml {\n font-family: sans-serif;\n /
1 /\n -ms-text-size-adjust: 100%;\n / 2 */\n -webkit-text-size-adjust: 100
%;\n /* 2 /\n}\n\n/**\n * Remove default margin.\n */\n/ line 19, /vagrant/ap
p/assets/stylesheets/vendor/normalize.scss /\nbody {\n margin: 0;\n}\n\n/ HTM
L5 display definitions\n =====================================================
===================== */\n/**\n * Correct block display not defined for any HT
ML5 element in IE 8/9.\n * Correct block display not defined for details or
summary in IE 10/11 and Firefox.\n * Correct block display not defined for
main
in IE 11.\n /\n/ line 43, /vagrant/app/assets/stylesheets/vendor/normali
ze.scss */\narticle,\naside,\ndetails,\nfigcaption,\nfigure,\nfooter,\nheader,\n
hgroup,\nmain,\nnav,\nsection,\nsummary {\n display: block;\n}\n\n/**\n * 1. Co
rrect inline-block display not defined in IE 8/9.\n * 2. Normalize vertical al
ignment of progress in Chrome, Firefox, and Opera.\n /\n/ line 55, /vagrant/
app/assets/stylesheets/vendor/normalize.scss */\naudio,\ncanvas,\nprogress,\nvid
eo {\n display: inline-block;\n /* 1 /\n vertical-align: baseline;\n / 2 *
/\n}\n\n/**\n * Prevent modern browsers from displaying audio without controls
.\n * Remove excess height in iOS 5 devices.\n /\n/ line 65, /vagrant/app/asse
ts/stylesheets/vendor/normalize.scss */\naudio:not([controls]) {\n display: non
e;\n height: 0;\n}\n\n/**\n * Address [hidden] styling not present in IE 8/9/
10.\n * Hide the template element in IE 8/9/11, Safari, and Firefox < 22.\n */
\n/* line 76, /vagrant/app/assets/stylesheets/vendor/normalize.scss */\n[hidden]
,\ntemplate {\n display: none;\n}\n\n/* Links\n =============================
============================================= */\n/**\n * Remove the gray backgr
ound color from active links in IE 10.\n /\n/ line 87, /vagrant/app/assets/sty
lesheets/vendor/normalize.scss */\na {\n background: transparent;\n}\n\n/**\n *
Improve readability when focused and also mouse hovered in all browsers.\n */\n
/* line 96, /vagrant/app/assets/stylesheets/vendor/normalize.scss */\na:active,\
na:hover {\n outline: 0;\n}\n\n/* Text-level semantics\n ====================
====================================================== */\n/**\n * Address styli
ng not present in IE 8/9/10/11, Safari, and Chrome.\n /\n/ line 107, /vagrant/
app/assets/stylesheets/vendor/normalize.scss */\nabbr[title] {\n border-bottom:
1px dotted;\n}\n\n/**\n * Address style set to `bolder` in Firefox 4+, Safari,
and Chrome.\n /\n/ line 116, /vagrant/app/assets/stylesheets/vendor/normalize.
scss */\nb,\nstrong {\n font-weight: bold;\n}\n\n/**\n * Address styling not pr
esent in Safari and Chrome.\n /\n/ line 124, /vagrant/app/assets/stylesheets/v
endor/normalize.scss */\ndfn {\n font-style: italic;\n}\n\n/**\n * Address vari
able `h1` font-size and margin within `section` and `article`\n * contexts in Fi
refox 4+, Safari, and Chrome.\n /\n/ line 133, /vagrant/app/assets/stylesheets
/vendor/normalize.scss /\nh1 {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/
\n * Address styling not present in IE 8/9.\n */\n/ line 142, /vagrant/app/ass
ets/stylesheets/vendor/normalize.scss */\nmark {\n background: #ff0;\n color:
000;\n}\n\n/**\n * Address inconsistent and variable font size in all browsers.
\n /\n/ line 151, /vagrant/app/assets/stylesheets/vendor/normalize.scss */\nsm
all {\n font-size: 80%;\n}\n\n/**\n * Prevent `sub` and `sup` affecting `line-h
eight` in all browsers.\n /\n/ line 160, /vagrant/app/assets/stylesheets/vendo
r/normalize.scs

Posts: 5

Participants: 3

Read full topic

Auto Closing Divs?

0
0

@ColdSun wrote:

To theme my installation of discourse, I've wrapped the site in a few divs (and included others). In the customization -> top tab I have a few open ended divs which are closed manually in the /body tab. This worked well in beta 2 and 3 but recently broke in a newer update. Now, for some reason, open ended divs in the 'top' tab are automatically being closed.

If I move the content of the 'top' tab to the header, the divs are not prematurely closed and things work almost as they should... except the discourse header then is also incapsulated in my formatting, which I didn't want.

Posts: 1

Participants: 1

Read full topic


Rewriting categories URL; Will it make future problems?

0
0

@reaon wrote:

I want to rewrite URL of categories via nginx, this way:
meta.discourse.org/c/support --> meta.discourse.org/support

Will it make next problems during future updates or something else?
Is there any better replacement method?

Posts: 2

Participants: 2

Read full topic

Adding activities per category to user profile; Does it need a plugin or it can be done by theme manipulation?

0
0

@reaon wrote:

How can I add number of user posts in each category to her/his profile?

Posts: 2

Participants: 2

Read full topic

Can't Rebuild Discourse?

0
0

@KazWolfe wrote:

I added a new plugin a few minutes ago, and -- as usual -- I went to run ./launcher rebuild app. However, I was greeted with the following message being repeated over and over and over again:

Ensuring discourse docker is up to date
Fetching origin
Updating Discourse Docker
Updating fb06e72..c89bb01
error: Your local changes to the following files would be overwritten by merge:
        templates/web.ssl.template.yml
Please, commit your changes or stash them before you can merge.
Aborting
failed to update

How can I fix this issue?

Posts: 7

Participants: 3

Read full topic

Cann't bootstrap, cause gem update bundler failed

0
0

@Borel wrote:

When running
./launcher bootstrap app ,
error occurs as
RuntimeError: cd /var/www/discourse && gem update bundler .
I find that my route is /var/discourse, not /var/www/discourse, is it matters? How to fix it?

Posts: 1

Participants: 1

Read full topic

PostgreSQL minimum version

0
0

@jamielinux wrote:

The Discourse README states that the minimum version of PostgreSQL is 9.1+. Judging from the rest of the documentation, the minimum should now be 9.2+. I'd submit a PR to fix this, but...

Backups created by Discourse include the statement CREATE SCHEMA IF NOT EXISTS backup. Restores fail on PostgreSQL 9.2 because the IF NOT EXISTS parameter for CREATE SCHEMA was introduced in 9.3. Perhaps the minimum version should be documented as 9.3+ instead?

Posts: 3

Participants: 3

Read full topic

Markdown links not rendering

0
0

@pfaffman wrote:

I do not understand why the first the links below is rendered as a link but the next two are not. Am I missing something?

The software that runs this site is called
http://www.discourse.org/. It is
[http://en.wikipedia.org/wiki/Open-source_software](Open Source Software)
that I downloaded for free and installed on a
[https://www.digitalocean.com/](cloud hosting site).

Posts: 3

Participants: 2

Read full topic

Deleted server >> New server = assets/uploads not showing up

0
0

@stroupaloop wrote:

Heyo, so through an error (primarily on my part) my EC2 server that was running Discourse went down.

I stood up another EC2 server (identical setup) and reattached the RDS Postgres DB and Elasticache Redis server (along with the SES settings and other things in app.yml).

I was able to successfully able to relaunch the server but the uploaded images don't load. I receive the following console error:

GET https://discuss.url.com/uploads/default/49/ae204e105d0227ec.png 404 (OK)

This happens for any images that were previously uploaded. At first I thought this was an issue with the new EC2 and being able to reference the correct images, BUT I then tried to upload images (into a topic or reply) and receive the following response.

GET https://discuss.url.com/upalods/default/53/bf28298b3855e28a.png 404 (OK)

All the posts are present and accounted for. My app.yml is set to the following:

Posts: 2

Participants: 2

Read full topic


OneBox Anonymous CodePen

0
0

@Mittineague wrote:

The OneBox for CodePen is a great feature and is used very often at SitePoint.

However, I question how anonymous codepens are currently handled.

Anonymous codepens do not embed, true "Edit on CodePen" is available, but I'm thinking it would make more sense to simply link here instead of embedding a "can't be embedded" eg.

Posts: 3

Participants: 2

Read full topic

How can I add some custom html to the bottom of the categories page?

Add support

0
0

@KazWolfe wrote:

I would like to propose the adding of the <progress /> tag to Discourse. It can be very useful, and can be used wherever a visual representation of a statistic is worthwhile. For example, "1/30 users registered" or "$50 raised of our $500 goal" would be much better represented as a progress element than text.

Additionally, progress bars should be CSS-customizable.

Posts: 1

Participants: 1

Read full topic

Welcome Arpit Jalan to the Discourse team

No thumbnails on Facebook Share

0
0

@Pablo_Macaluso wrote:

I have this problem always share something on facebook, maybe with a thumbnail, looks better.
Maybe add a function to grab images from the post or video. Or a option in the editor "Upload Thumbnail"

Posts: 4

Participants: 3

Read full topic

Viewing all 60309 articles
Browse latest View live




Latest Images