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

Picking user @mention by user custom fields

$
0
0

@adopilot wrote:

Here is my business case to be clearer what will be great to accomplish.

In our company we have 40 branch offices connetcetd to our Discource.
Every branch office have around 8 specific generic roles.
For example:
Every branch office have HelpDesk role, InfoDesk Role , Manager Role, Support Role et cetera.

We already have user groups for branches and for roles.
But when I type my post,
I know that there is Manager at BihacBranceOffice but I can't figure his name.
If I call @Managers group I'll get 40 members, If I call @BihacBrancOffice ill get 12 members.

An idea is to make user field with generic convention BrnacOfficeRole also another one RoleBrancOffice.
That fields should be pickable in @DopNDownList
That will make more easy to comunicate.
Users can easly call specific roles.
If someone start typing @NameOfBrancOffice it can see all roles there.
Olaso if somoneo writes @roleName it will get list off all specific persons tehre.

I know that Discourse is focused on Human conversation, But from business perspective there is fluctuation in personal.
I can remember that @OneSpecificPersonWhitNameAndSurname is Manager at that Branch Office but business rules is perhaps going to change people and their roles over time, Helpdeskres goes to managers, Managers Cheng theri Brnec Offices ans so one.

Posts: 2

Participants: 2

Read full topic


Opening external link in new tab will not update the statistic counter

$
0
0

@evantill wrote:

  • Enable the global options for default external links in new tab and for track external right clicks on my discourse instance (v1.3.0.beta11 +51).
  • Enable "opening external link in new tab" in my user profile.
  • Logout
  • Login

It will open external link in a new tab has expected but the counter is not incremented (both on left clik and right click).

should I do extra steps to make it work ?

Posts: 1

Participants: 1

Read full topic

Quick Links Addition to Forums

$
0
0

@WaldoBroodryk wrote:

It would be awesome if we can store some forum posts in a quick links area(accessible from the reply box) for when we want to share those on others posts for common questions/solutions smile (just saves us from hunting down those links to share lol)

Posts: 2

Participants: 2

Read full topic

Moderator discussion of spam, etc. flags

$
0
0

@boomzilla wrote:

Some user flags, like spam, do not generate a (private) Message topic. We often use those topics to discuss what action to take. It's probably fine that the initial flagger (assuming not a mod himself) isn't part of this discussion, but it would be good to have a reply or start a discussion topic on the flag interface. Otherwise, we'd need to create a separate one to have a discussion about what to do, which means extra work and so often doesn't happen.

Posts: 1

Participants: 1

Read full topic

Re processing imported posts

$
0
0

@DeanMarkTaylor wrote:

I would like to re process all imported posts (700,000 + posts) ...

Basic problem was that a super large number of images were from photobucket but the import process didn't handle them correctly.

Where code like this:

[URL=http://s662.photobucket.com/user/jinzin2008/media/thWolverine_51_013.jpg.html][IMG]http://i662.photobucket.com/albums/uu345/jinzin2008/thWolverine_51_013.jpg[/IMG][/URL]

Was turned into this:

http://s662.photobucket.com/user/jinzin2008/media/thWolverine_51_013.jpg.htmlhttp://i662.photobucket.com/albums/uu345/jinzin2008/thWolverine_51_013.jpg

So photobucket is the easy ones to handle because of the similarity of the URL's - so I'll tackle that one first and then look for other broken items.

... basically I would like loop over all posts (PM's, forum content) and:

  • Run a regular regex replace creating a new in-memory string (revised_content) based on the latest revision (original_content)
  • If revised_content is different to the original_content
    • Add new revision with revised_content
    • This action should not bump the topics activity date.

Just wondering if anybody has done this kind of thing already and has a code-snippet or two to point me at before I get started?

Posts: 6

Participants: 2

Read full topic

Stable branch assets won't compile

$
0
0

@robbo wrote:

I was attempting to do the stable branch update so rebuilding the container and it failed to work when pre-compiling the assets. So I looked around and similar issues happen when people have plugins installed so I double checked and we have none other than the defaults.

Then I went into the container and manually run the command with --trace and this is what I got back.

rake aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "stylesheet_cache" does not exist
LINE 1: SELECT 1 AS one FROM "stylesheet_cache" WHERE "stylesheet_...
^
: SELECT 1 AS one FROM "stylesheet_cache" WHERE "stylesheet_cache"."target" = 'desktop' AND "stylesheet_cache"."digest" = '8817ec6e89b25fc3a01911bcd0000a3515671e5d' LIMIT 1
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rack-mini-profiler-0.9.3/lib/patches/db/pg.rb:90:in exec'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rack-mini-profiler-0.9.3/lib/patches/db/pg.rb:90:in
async_exec'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/postgresql_adapter.rb:822:in block in exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract_adapter.rb:378:in
block in log'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.10/lib/active_support/notifications/instrumenter.rb:20:in instrument'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract_adapter.rb:372:in
log'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/postgresql_adapter.rb:822:in exec_no_cache'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/postgresql/database_statements.rb:137:in
exec_query'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/postgresql_adapter.rb:954:in select'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/database_statements.rb:24:in
select_all'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in select_all'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/database_statements.rb:30:in
select_one'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/database_statements.rb:35:in select_value'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.10/lib/active_record/relation/finder_methods.rb:298:in
exists?'
/var/www/discourse/lib/sass/discourse_stylesheets.rb:83:in compile'
/var/www/discourse/lib/sass/discourse_stylesheets.rb:39:in
block in compile'
/var/www/discourse/lib/sass/discourse_stylesheets.rb:36:in synchronize'
/var/www/discourse/lib/sass/discourse_stylesheets.rb:36:in
compile'
/var/www/discourse/lib/tasks/assets.rake:82:in block (3 levels) in <top (required)>'
/var/www/discourse/lib/tasks/assets.rake:81:in
each'
/var/www/discourse/lib/tasks/assets.rake:81:in block (2 levels) in <top (required)>'
/var/www/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:86:in
block in each_connection'
/var/www/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:84:in each'
/var/www/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:84:in
each_connection'
/var/www/discourse/lib/tasks/assets.rake:76:in block in <top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:in
call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:in block in execute'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:235:in
each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:235:in execute'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:179:in
block in invoke_with_call_chain'
/usr/local/lib/ruby/2.0.0/monitor.rb:211:in mon_synchronize'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:172:in
invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:165:in invoke'
/var/www/discourse/lib/tasks/assets.rake:136:in
block in '
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:in call'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:240:in
block in execute'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:235:in each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:235:in
execute'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:179:in block in invoke_with_call_chain'
/usr/local/lib/ruby/2.0.0/monitor.rb:211:in
mon_synchronize'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/task.rb:165:in
invoke'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:150:in invoke_task'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:in
block (2 levels) in top_level'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:in each'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:106:in
block in top_level'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:115:in run_with_threads'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:100:in
top_level'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:78:in block in run'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:176:in
standard_exception_handling'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/lib/rake/application.rb:75:in run'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rake-10.4.2/bin/rake:33:in
'
/var/www/discourse/vendor/bundle/ruby/2.0.0/bin/rake:23:in load'
/var/www/discourse/vendor/bundle/ruby/2.0.0/bin/rake:23:in
'
Tasks: TOP => assets:precompile:css

Migrations run and everything so not sure why something would just not exist? We were previously on tests-passed but not updating, waiting for the next stable release to go stable.

This is also a multi site setup and our container.yml file could be out of date I guess.

I manually did things in the container and everything appears to be working but obviously I want a proper rebuild done.

/cc @rodrigofarcas

Posts: 4

Participants: 2

Read full topic

Disable CDN causes old images with CDN URL can not be shown

$
0
0

@trandatnh wrote:

I've just disabled CDN to save the cost. However, all the old images, which is uploaded while I was using cloudfront, are failed to load.

For example:

I have CDN URL is cdn.mydomain.com. After disabling CDN, the cdn.mydomain.com is invalid so that all the images should start with mydomain.com instead.

Is there anyway to convert all those urls programmatically?


Note: I am going to use S3 to store all my images. Can I just make use of this opportunity to convert everything from cdn to s3 url?

Posts: 6

Participants: 2

Read full topic

Invite option missing

$
0
0

@cmn_jcs wrote:

We're running our instance with the invite only option enabled. This used to work normally. A couple weeks ago, we noticed that we can no longer get to the invite page. Clicking Admin->Users->Send Invites (and getting to <ourUrl>/users/<username>/invited) shows the image below. We're been experimenting with SSO, but we've always been able to go back to invites after testing the system.

We're running the following plugins: discourse-hipchat-plugin, docker_manager, lazyYT, and poll. Our current login-related settings that are enabled are: invite-only, enable-local-logins, and allow-new-registrations. Everything else is disabled (although sso url and sso secret have values).

Any pointers?

Posts: 6

Participants: 4

Read full topic


Images size properly in the preview window, but not in the post

$
0
0

@Itzikiap wrote:

Hi. my discourse installation is:
v1.4.0.beta1

When I edit a post, I can write img tags for images, and set the size of the image to fit my post, and not be so big. As you can see in the screen shot, in the preview it works.
(Don't mind the alignment of the text in the edit, I just temporarly aligned it to the left so it would be more convenient to write the img tags)

However, after accepting the edit and savig, all the images are displayed in their natural size, regardless of what I wrote.

This is the img line:

<img src='/uploads/default/original/1X/0d1549f080237ad08a753deb0f8b7fb2e28d3852.gif' width=100>

This problem was also in previous versions of discourse.

Thanks.

Posts: 4

Participants: 3

Read full topic

Max/min image size in forum

$
0
0

@AlexAB wrote:

Can someone tell me what in/max image sizes can be posted in the forum ?

i.e. Do they really need be ~ 1500x1000 pixels (or more) ?

Posts: 2

Participants: 2

Read full topic

What authority assigns the "short" names of the Emoji?

$
0
0

@elijah wrote:

Discourse uses things like :fries: to include images like fries (in place of, say 1F35F FRENCH FRIES 🍟). I gather the :name: string is called a "short code", but what authority assigns those names? I don't find it in any of the Unicode data dumps ( http://www.unicode.org/Public/UNIDATA/ )

Posts: 11

Participants: 4

Read full topic

Bookmark list should be grouped by collapsed/expandable Category

$
0
0

@danzoid61 wrote:

Presently, the Bookmarks list is a random (or chronological) listing and the Bookmarked topics are all mixed up.

It would be much better to present the user's bookmarks grouped under collapsed/expandable category headings.

When I wish to go to one of my bookmarked topics, I always know what category it is likely to be in.

Posts: 7

Participants: 4

Read full topic

How do I stop group names from being editable?

$
0
0

@sphism wrote:

When we go to: admin/groups/custom/* we don't want the group name to be editable.

I was planning to just hide the field with css but I'm struggling to find any useful css classes to target the field i want to hide.

Would also be happy to show the textfield as disabled.

We run a vanilla discourse installation and override it with a css file, we don't have a totally custom install.

Posts: 8

Participants: 2

Read full topic

Twitter oneboxed content breaking ssl

$
0
0

@watchmanmonitor wrote:

I just posted a twitter link on my hosted discourse, and the page no longer had a nice ssl lock.

I see this:

Mixed Content: The page at 'https://forum.somedomain.com/t/pricing/43/3' was loaded over HTTPS, but requested an insecure image 'http://pbs.twimg.com/profile_images/518242033811472386/VKcAQvEB_normal.png'. This content should also be served over HTTPS.
2ember.prod:3051 Mixed Content: The page at 'https://forum.somedomain.com/t/pricing/43/3' was loaded over HTTPS, but requested an insecure image 'http://pbs.twimg.com/profile_images/518242033811472386/VKcAQvEB_normal.png'. This content should also be served over HTTPS.
discourse/lib/Markdown.Editor:995 Mixed Content: The page at 'https://forum.somedomain.com/t/pricing/43/3' was loaded over HTTPS, but requested an insecure image 'http://pbs.twimg.com/profile_images/518242033811472386/VKcAQvEB_normal.png'. This content should also be served over HTTPS.
ember.prod:3051 Mixed Content: The page at 'https://forum.somedomain.com/t/pricing/43/3' was loaded over HTTPS, but requested an insecure image 'http://pbs.twimg.com/profile_images/518242033811472386/VKcAQvEB_normal.png'. This content should also be served over HTTPS.

and I know that all the calls to http://pbs.twimg.com could be https://pbs.twimg.com

Is this a fix that the discourse team can pull off? or is it up to the official twitter setup?

Posts: 3

Participants: 3

Read full topic

Deactivated Account Still Receives Emails

$
0
0

@markersocial wrote:

I have deactivated a user account under 'Permissions' in Discourse. Where it states that the user will need to reactivate their email (I am hoping that this can force them to change their email and also, not attempt to email them anymore).

The user has made posts, as they had activated their account previously via email confirmation link. I can see that the system is still emailing them with updates on thread responses, despite the fact that the account/email has been deactivated. I deactivated the account in the hopes that they will not be emailed anymore as their address hard bounces in Mandrill.

Mandrill only blacklists bad email addresses for about 14 days, so depending on them 100% isn't wise.

If this won't be supported, is there another way of disabling discourse from attempting to mail certain users? I can manually disable them after checking the mandrill logs. I only need to disable accounts that have been activated already, but for some reason start to hard bounce later as the email address was closed or something. For initial activation emails, the mandrill suppression blacklist is sufficient.

Thanks!

Posts: 4

Participants: 3

Read full topic


Length of category name under the topic title

$
0
0

@evantill wrote:

Is it possible to display the category's name without cutting it ? Or cutting it at the same length as the topic title ?

Posts: 6

Participants: 3

Read full topic

discourse_docker redis overcommit_memory

$
0
0

@devura wrote:

discourse docker image spouts out some error when creating.

WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

is it a problem or does it not matter?

Posts: 2

Participants: 2

Read full topic

Discourse Customizations

$
0
0

@ashish2 wrote:

  1. To get the Avatar from my application using SSO, I implemented
    'avatar_url' = 'path to user image of my application'
    'avatar_force_update' = 1
    Then I selected the checkbox "sso overrides avatar" in login settings from admin
    Even then its not updating the user avatar.

  2. I want to place a check for the logged in user in Admin's Customization section under Header block. I want to do this using admin panel of discourse only and dont want to change the code files

Anyone who can help me in any of the 2 tasks?

Posts: 3

Participants: 2

Read full topic

Wordpress Posts hang with following error

$
0
0

@ankh2054 wrote:

Hi all,

Ive installed and configured my discourse plugin.
URL is entered as http://meta.website.co.uk
API key is configured

When I create new posts - I now cannot open the posts on wordpress. It's probably trying to publish to meta.website.co.uk.

ERROR:

47:49 [error] 4775#0: *3095 FastCGI sent in stderr: "PHP message: PHP Warning:  file_get_contents(meta.    47:49 [error] 4775#0: *3095 FastCGI sent in stderr: "PHP message: PHP Warning:  file_get_contents(meta.site.co.uk/posts): failed to open stream: No such file or directory in /var/www/site/wp-c$
PHP message: PHP Warning:  First parameter must either be an object or the name of an existing class in /var/www/site/wp-content/plugins/wp-discourse-0.6.5/lib/discourse.php on line 472
PHP message: PHP Warning:  file_get_contents(/wordpress.json?best=5&amp;min_trust_level=1&amp;min_score=30&amp;min_replies=5&amp;bypass_trust_level_score=50&amp;api_key=bba0f68b9b5eb4aa78128e33cb83568b755369917edfd8762$bomm.co.uk/posts): failed to open stream: No such file or directory in /var/www/site/wp-c$
PHP message: PHP Warning:  First parameter must either be an object or the name of an existing class in /var/www/site/wp-content/plugins/wp-discourse-0.6.5/lib/discourse.php on line 472
PHP message: PHP Warning:  file_get_contents(/wordpress.json?best=5&amp;min_trust_level=1&amp;min_score=30&amp;min_replies=5&amp;bypass_trust_level_score=50&amp;api_key=bba0f68b9b5eb4aa78128e33cb83568b755369917edfd8762$

Posts: 1

Participants: 1

Read full topic

Mention notification/parsing oddity/bug

$
0
0

@accalia wrote:

there are many ways to break the linking of @mentions (the use of &zwj; and &shy; are favourites) but we recently discovered a way to break the linkage of the @ mention that still creates the notification, embed the @mention in an invalid HTML tag

This has two unexpected behaviors:

  1. The @mention is visible, even though it's in an HTML tag and should be hidden
  2. The @mention does not get properly linked to the user card, but generates a notification

examples:

<i @Zoidberg
@Zoidberg

<strong @Zoidberg
@Zoidberg

<invalid @Zoidberg
@Zoidberg

<strong @Zoidberg >
@Zoidberg >

Rebaking now that @Zoidberg test account/Rube is active

Posts: 3

Participants: 1

Read full topic

Viewing all 60721 articles
Browse latest View live




Latest Images