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

Javascript inserted into Footer from Discourse UI not working


Disabling features for certain users

$
0
0

@iamntz wrote:

Hey guys. I was wondering if there is a way of disabling various functionality on a user basis. I have couple of users that are kind of abuse the like functionality and I want to limit only that, without affecting other functionalities or other users.

There is any way of dealing with this? Thanks!

Posts: 6

Participants: 3

Read full topic

No results were found on users page

$
0
0

@pfaffman wrote:

I'm running v1.5.0.beta11 +259/1.5.0.beta11 in docker on Digital Ocean. Today I added the Rating plugin and removed the resolved plugin (it had an error). Oh, and I rebooted after an apt-get upgrade. Now when I go to https://literatecomputing.com/users I get no results. The list on /admin/users looks just fine, though.

Any ideas?

Posts: 4

Participants: 2

Read full topic

If not WYSIWYG, then how about disabling styles entirely?

$
0
0

@Talin wrote:

As pointed out in the other thread, most users don't take a lot of advantage of style text in their posts. This would be particularly true for our patients. Think about the typical patient to doctor interface such as myhealth - all you get is a vanilla text field, no styles allowed.

(Try to imagine your grandmother with some illness and there's an online forum that's offering assistance, community, and possibly answers. Imagine what kinds of UI that she would find intuitive vs ones that she would find confusing.)

Anyway, I'm wondering how difficult it would be to have an option to disable the editing toolbar completely, at least for new users. Or perhaps just hide them, sort of like what gmail does. Of course, they could still enter markdown text manually, but the chances of that happening are fairly low. And they might wonder what's the purpose of having a preview window next to the compose window, but I guess I can live with that.

My one concern about this is attachments, which are an important part of our use case. As we envision it, a forum will have both patients seeking answers and doctors and researchers who may be able to help provide those answers. Often the patient will be asked by a doctor to include some test result, such as a genomic analysis (which of course the patient owns and thus has permission to disclose), as an attachment which the doctor can then examine. We would of course customize our discourse settings to whitelist files of these types to allow them to be uploaded, but you still have the problem where the attachment becomes a long puzzling string of letters embedded in the compose window input field, and the less-sophisticated user might see that as a mistake and try to delete those letters. I guess I'll have to do some experiments to see how likely this is.

Posts: 3

Participants: 3

Read full topic

Unique CSS class for Group pages?

$
0
0

@downey wrote:

Any chance of a group-specific class on the group-specific pages for members, topics, posts, etc.?

e.g. /groups/FOO/topics

This would allow us to do custom styling for each group.

Posts: 1

Participants: 1

Read full topic

Improving Post Edit View

$
0
0

@jomaxro wrote:

Recently I was having a discussion with someone about the changes in Discourse Trust Levels over time, particularly back in 2014 when they were very fluid. To aid in the discussion, I went to the Trust Levels topic here on Meta and looked at the edit history. This worked well, but had one issue that I kept running into. As the buttons to move forwards and backwards in time, as well as the HTML, side-by-side HTML, and Raw buttons did not stick to the header, I would have to scroll up every time I wanted to move earlier in time, and back down to see the bottom of the post. The posts in the Trust Level topic weren't particularly long, so scrolling wasn't a huge deal, but in lengthy FAQ wiki topics, or something like the forum directory this can be a much bigger pain.

Could the popup be changed so the navigation and view tools stay on screen even when scrolling?

Posts: 1

Participants: 1

Read full topic

Custom user fields dropdown have no "please choose" option

$
0
0

@michaeld wrote:

Might be classified as a bug, might be classified as a feature, I don't know. I have chosen to classify it as a bug because the system doesn't behave as expected :slightly_smiling:

If you add a custom user field dropdown and make it required upon signup, people are able to just leave the field at the first option, and continue (so 50% of the users seem to be from Afghanistan for example)

So in effect, they're not actually required.

It would be better if people were forced to actually choose a value from the dropdown. I think this can be accomplished the best by inserting a "-- please choose --" entry at the top.

Posts: 2

Participants: 2

Read full topic

Watching group dropdown expands outside of screen


How to install this theme?

$
0
0

@djcyry wrote:

Hello guys ,

I found this theme , shared by @levlaz :


On github : https://github.com/circleci/discourse-styles

The problem is i dont know how install it , i have install it like
a plugin , i have copy-paste all css files into my discourse css and didnt work

Can anyone explain me how its works , how can i install it ?
I like it very much , i want it for my community .

Thanks.

Posts: 13

Participants: 6

Read full topic

Using jQuery to add a link to a group 'badge'

$
0
0

@bartv wrote:

Hi,

I'm using CSS to display a user group next to user names in topics, like here:

Now I'd like to also add a link to it. A bit of jQuery will do the trick, but I understand it won't fire upon each page change as Discourse doesn't always do a full page refresh:

<script>

$(document).ready(function(){
    $('.Editors').each(function() {
        $(this).append('<span class="staff"><a href="#">Staff</a></span>');
    });
});

</script>

The above script will not fire when navigating from one page to another, but it does work when you fully reload the page.

I've been reading up here on the forum and it seems I'd need the Discourse.Route.reopen event to trigger this script:

<script type="text/javascript">

    Discourse.Route.reopen({
        activate: function() {
            this._super();
            Em.run.next(function(){

                $('.Editors').each(function() {
                     $(this).append('<span class="staff"><a href="#">Staff</a></span>');
                });

            });
        }
    });
</script>

It doesn't do what I expect though:

  • When navigating from one page to the next, the script still doesn't fire.
  • When reloading a page, the script fires multiple times, adding multiple badges and links.

I'm a bit lost - can someone put me on the right path?

Posts: 3

Participants: 3

Read full topic

Configurable items in hamburger menu?

$
0
0

@ErikV wrote:

Is it possible to configure the items that show up in a user's hamburger menu? I'd like to remove a few items from what my users see.

Thanks!

Posts: 5

Participants: 2

Read full topic

Blocked Users Summary bug

$
0
0

@Alankrit_Choudh wrote:

If you block a user, and unblock him.

The summary of the user goes (ZERO)

Please ignore Umaru-chan!

How to Repro:
1. Block a user. with a decent amount of post.
2. Unblock him via admin panel.
3. Posts/topics (+others) created go zero. as shown in the image above.

Posts: 2

Participants: 2

Read full topic

Want to have a default view like /search

Need an ability to move a private topic to a public category

$
0
0

@dmitry_fedyuk wrote:

I have a professional forum, and a lot of visitors try ask their questions in private messages to me, not in a public topic.
If a visitor is not a paying customer, I have no motivation to solve his/her problems in private messages, but in some cases can do so in a public topic, because it could be a useful content for other visitors.
So an ability to move a private topic a public category would be great.

I see a request for the reverse feature: Flag option “convert into PM”, and it is also very useful for a professional forum.

I see also a partial solution (which is originally for the reverse case, but it works in the both directions): create a new public topic, then select and move all the messages from the current private topic.
It solves the problem only partially because I have to create a new topic with a some non-sense topmost post (there is no ability to create a topic without a post), and the new topic will have another author (the original author's question will only be the second message in the new post).

There is also another partial solution: make a non-sense answer in the private topic, then select all the topic's posts without the latest and move it to a new topic (the ability to move posts to a new topic is available only if not all topic's posts are selected).

A good solution would be an ability to just specify a public category for a private topic, as we have in the public topic editing scenario.

Posts: 7

Participants: 4

Read full topic

Jobs::HandledExceptionWrapper: Wrapped I18n::InvalidLocale for Jobs::UserEmail

$
0
0

@downey wrote:

Continuing the discussion from Failling jobs in Sidekiq : Jobs::UserEmail:

(I'm not convinced this is linked to the above, but the symptom was similar.)

After testing a group message to a group, I suddely got 2 of these retries alerted in Sidekiq with the error message Jobs::HandledExceptionWrapper: Wrapped I18n::InvalidLocale: "" is not a valid locale for the Jobs::UserEmail job.

Fortunately it's not breaking anything critical, but worried it might be a problem if someone needs to send a group message. Any ideas?

Posts: 7

Participants: 3

Read full topic


Sidekiq: Uncaught TypeError: Cannot read property 'current' of undefined

$
0
0

@tobiaseigen wrote:

I am getting this error as of recent updates. Any suggestions?

Message (153 copies reported)

Uncaught TypeError: Cannot read property 'current' of undefined
Url: https://community.namati.org/
Line: 69
Column: 22
Window Location: https://community.namati.org/
Backtrace

TypeError: Cannot read property 'current' of undefined
    at https://community.namati.org/:69:22
Env

hostname	forum.namati.org-app
process_id	[16654, 11024, 11034, 22534, 14608, 14615, 4553, 131, 113, 5370, 5362]
application_version	[ee1aec676625516a5feb6c08d0b43711a73888be, b500f35d148001b642d6164dbcffa0aae4ef2144, 33aad0967225429a574cb1a7c2c24b174eaab097, f32f0d6337136c7c1f13143b5f0e70644f507038, f3c868e7bb7bc3c33d1c86f4f4ca22589113bf3b]
HTTP_HOST	community.namati.org
REQUEST_URI	/logs/report_js_error
REQUEST_METHOD	POST
HTTP_USER_AGENT	[Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36, Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36, Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36, Mozilla/5.0 (Linux; Android 5.0; SM-N900T Build/LRX21V) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.95 Mobile Safari/537.36, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36, Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36, Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36, Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36]
HTTP_ACCEPT	*/*
HTTP_REFERER	https://community.namati.org/
HTTP_X_FORWARDED_FOR	[73.35.188.188, 61.3.187.153, 41.206.33.222, 96.88.230.45, 64.201.244.110, 197.237.177.108, 154.70.39.120, 73.231.215.102, 69.122.40.106, 154.122.75.159, 197.254.6.42, 208.54.4.155, 173.32.154.68, 90.207.127.162, 172.56.42.53, 207.164.179.98, 73.129.214.39, 172.56.41.150, 14.141.249.42, 46.233.112.28, 73.172.175.253, 172.56.42.111, 197.232.30.118]
HTTP_X_REAL_IP	[73.35.188.188, 61.3.187.153, 41.206.33.222, 96.88.230.45, 64.201.244.110, 197.237.177.108, 154.70.39.120, 73.231.215.102, 69.122.40.106, 154.122.75.159, 197.254.6.42, 208.54.4.155, 173.32.154.68, 90.207.127.162, 172.56.42.53, 207.164.179.98, 73.129.214.39, 172.56.41.150, 14.141.249.42, 46.233.112.28, 73.172.175.253, 172.56.42.111, 197.232.30.118]
params
message	Uncaught TypeError: Cannot read property 'current' of undefined Url: https://community.namati.org/ Li
url	https://community.namati.org/
line	69
column	22
window_location	https://community.namati.org/
stacktrace	TypeError: Cannot read property 'current' of undefined at https://community.namati.org/:69:22

Posts: 2

Participants: 2

Read full topic

SSO via external site vs. subfolder setup

$
0
0

@thabbs wrote:

I have a fresh subfolder setup and connected an external SSO interface. The login and creation of the local discourse accounts is working perfectly.
But once the user gets created via session/sso_login he is not recognized as valid user. There's no error message at all - the user just gets redirected to the last visited page - that's it.

Is there any known issue with using external SSO in a subfolder setup? The user never is able to act as active user although written to the database and shown up in the admin panel which was opened before activating SSO. When I leave the panel and log out the admin user nobody is able to access the forum anymore until I disable the SSO option manually.

The proxy setup is rather complex. Probably this is the reason for my issue. But before discussing it I'd like to know if anybody has already confirmed that SSO in a subfolder setup is working in general.

Posts: 5

Participants: 4

Read full topic

Steps to follow to create a (Content Aggregator) plugin, that creates topics from different RSS feeds

$
0
0

@a-magdy wrote:

Hi,

So I found out about discourse a few days ago, and I was able to deploy it to my aws vm in a couple of hours (including getting to know what it is), and it blow me away, awesome work, it contains some features, that I had to implement myself in TelescopeJS -another open-source forum-.

But the only feature I am missing right now is creating topics from rss feeds to specific categories, to get the community going, so I looked around, and I found out that such plugin hasn't been made until now, and the only feature that does that is the feed polling from only one site (that one that discourse will be embedded in), but I need to poll rss feeds from multiple sources.

So the only solution now is to create a plugin that does that, so I looked in the current implementation in TelescopeJS, and it uses a package in Node to parse feeds, and create posts for specific users on certain categories, not that complex, so I looked around for a Ruby on Rails gem that does that and found out that (https://github.com/feedjira/feedjira) is the gem I need.

So now I've to create a plugin that parses a list of rss feeds, and use Discourse API to create posts, but as I am new to both discourse and Ruby on Rails, would you please help guide me to the points that will get me started, like:

  1. The current implementation of the feed polling from the embedded site.
  2. What consideration I have to keep in mind while write the plugin.
  3. How to create a form in the admin panel for this plugin to take inputs, so anyone else can use it easily, or it will read from a configuration file ?!
  4. What do I need to know while creating a post for a certain user and bind it to some categories, I don't want these posts to be crashed, as I want them to be included in the email digest.
  5. A plugin to refer to, and use the same structure and steps, while creating this.
  6. Any extra points, that you may have faced while creating a plugin for discourse.

Thanks

Posts: 7

Participants: 5

Read full topic

2 Questions on Discourse & Its Market

$
0
0

@chaotic_squid wrote:

Hey everyone! First, I just wanted to say how much I appreciate Discourse and the work that goes into the project. Been following Discourse for awhile and it looks better everyday.

Anyways, I have two main questions.

  1. I know it will depend on the community, but typically how many people does it take to get a forum rolling? Would it be around 200 or can it be more/less? Just trying to see how large a community would need to be to really see a benefit and where it would get enough engagement to need a forum.

  2. Do you see there being any potential of using Discourse with offline businesses/communities? I'm a marketer/web designer and think there are opportunities for some businesses to really take advantage of Discourse. Thinking more like Gyms/health clubs, schools/education, local/city, etc.. Basically places that already have a community in place offline but could use a forum to make it easier to connect and discuss issues online. Do you think there's a market for helping these communities establish themselves online?

Would appreciate any of your thoughts and input. Thanks!

Posts: 2

Participants: 2

Read full topic

Use discourse for SSO in a non-web app?

$
0
0

@chris_beck wrote:

I am building a desktop application (not a web app) which includes a networking component, and I would like to be able to have a discourse forum associated to it and use the same authentication credentials for the application and the forum. Mainly, I am hoping to leverage discourse for the forum and for auth, since it already has a nice forum and robust, customizable auth and supports "reset password via email".

The difficulty is that when users are running the application, they will enter their credentials there, not in a website.

In the instructions that I've found for using discourse as an SSO provider, they suggest that I generate a nonce, hash it appropriately, direct the user to a discourse url, and provide an expected return url.

What I really want though, is something simpler, more like "I give you an http query with a username and password, or, username + nonce + hash of password with nonce, you give me up or down".

I realize that this is somewhat counter to the idea of allowing multiple auth, e.g. google, facebook logins, which is a major feature which discourse provides. However as I understand discourse also provides basic username / password auth -- that's the only part that I would use.

What concerns me more is that it doesn't appear that I can get discourse to give me an http or other interface like that. Is this correct?

An alternative would be to try to dig the password info out of the database directly.

However this was strongly discouraged here: https://meta.discourse.org/t/registration-process-or-linking-to-other-db/29537
"Using two auth points and two different schemes would just be weird and error prone"

The thing is that, if I am forced to implement SSO in my app and not use discourse, then I have to implement email for password reset which I really don't want to do from the ground up. I could try to use CAS or something in addition to discourse and make discourse use that for SSO... but I would really like to avoid adding another complex technology like this just for auth.

What I am considering to do is try to hack the discourse "basic auth" module so that it supports (local) connections from an intermediate server process, which I will create, which will talk to the desktop app, and on that channel, direct "user/password" queries would be supported. (Or perhaps, no hack is necessary and I can just use the discourse ruby api?) The reason would be that then there is only one db, no multiple auth points, discourse handles the password-reset emails for me.

Does this make sense?
Does it already exist?
Am I missing something obvious?
Should I be looking at something other than discourse if I am considering doing this?

Posts: 8

Participants: 3

Read full topic

Viewing all 60642 articles
Browse latest View live


Latest Images