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

Groups not being added to new users

$
0
0

@SwisherSweet wrote:

I have implemented SSO in ASP.net MVC using the sample code on this site as a guide.

The SSO authentication feature works great, however my group membership is not working.

Here’s the relevant code:

string returnPayload = "nonce=" + Server.UrlEncode(nonce) +
                        "&email=" + Server.UrlEncode(email) +
                        "&external_id=" + Server.UrlEncode(externalId) +
                        "&username=" + Server.UrlEncode(username) +
                        "&bio=" + Server.UrlEncode(bio) +
                        "&avatar_url=" + Server.UrlEncode(avatar_url) +
                        "&name=" + Server.UrlEncode(name);

// process groups
if (CurrentUser.IsAdministrator)
{
    returnPayload += "&add_groups=admins,moderators,staff";
}
else if (CurrentUser.IsStaff)
{
    returnPayload += "&remove_groups=admins&add_groups=moderators,staff";
}

For us, Staff is similar to moderator and Admin is the highest privileged user. My goal is to remove any obsolete groups while adding appropriate groups.

When a user logs in, all the other attributes are set, but groups are not.

Am I removing and assigning groups correctly?

Is it possible to assign admin, moderator, and staff groups this way?

Thank you.

Posts: 2

Participants: 2

Read full topic


Help creating a jump to top button

$
0
0

@charleswalter wrote:

We currently have a jump to top button (anchor points to a div in the header) to make it easy to go back to the top of a category. Ideally it would also work for topics, but the first post of a topic is not necessarily the start of the page. I was wondering if anyone might be interested in helping with a JS that could detect user is on a topic page, and thus reload the full page in this instance so that it jumps to post 1. Or see if anyone else has other suggestions on how we could pull this off cleanly

Posts: 3

Participants: 2

Read full topic

Script as a theme component causes problems

$
0
0

@Trash wrote:

I use those scripts to add a chat icon and a button on the header:

<script type="text/discourse-plugin" version="0.8">
api.decorateWidget('header-icons:before', helper => {
    return helper.attach('link', {
        className: 'btn-primary btn-small login-button donate-button',
        rawLabel: "Dona",
        target: '_blank',
        href: "https://www.patreon.com/xxxxxxx"
    });
});
</script>

<script>Discourse._registerPluginCode('0.8', function (api) {

    api.decorateWidget('header-icons:before', function (helper) {
        return helper.h('li', [helper.h('a#chat-button', {
            href: 'https://discordapp.com/invite/xxxxxxxx',
            title: 'chat',
            target: '_blank'
        }, helper.h('i.fa.fa-comments-o.chat-button-icon'))]);
    });
});</script>

and some CSS for them:

#chat-button {
    display: block;
    padding: 3px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    transition: all linear .15s;
    width: 32px;
    height: 32px;
    font-size: 1.714em;
    line-height: 32px;
}

#chat-button:hover {
    color: #222;
    background-color: #e9e9e9;
    border-top: 1px solid transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    border-radius: 50%;
}
.widget-link.btn-primary.btn-small.login-button.donate-button:before {
    content: url("/uploads/default/original/2X/5/5bc11ad110b6087ea9384dde531985d614306a91.png");
    margin-right: 3px;
}
.widget-link.btn-primary.btn-small.login-button.donate-button {
    background: #F96854 !important;
    margin-left: 5px;
    padding: 5px 10px;
}

Everything works very well if I use my default theme.

The problem arise when I change theme on my profile. At the moment I’ve installed only the Material Design Theme.

When I add the stylesheet above as a theme component of material design the second script relative to the icon chat is loaded twice:

How can I fix it?

UPDATE: I cut the script and put it in a separate stylesheet without adding it to the themes. Now The default theme no longer has the icon chat, but the other theme continues to show it.

I’ve tried both with other browsers and anonymous windows…the result is the same.

Posts: 1

Participants: 1

Read full topic

3 reply limit is more limiting in trial mode

$
0
0

@Jimble wrote:

My users are complaining about this message:

"So, how does one stop being a “new user”? I got:

We’re sorry, but your email message to [“art_of+7c61a449d0763ac4b3f30383e45e51bf@discoursemail.com”] (titled Re: [Xenharmonic Discourse] Testing foreign characters) didn’t work.

Reason:

We’re sorry, but new users are temporarily limited to 3 replies in the same topic.

If you can correct the problem, please try again."

So how long does it take? We are only trying out the forum software, so there’s only so much they can post?

Posts: 3

Participants: 3

Read full topic

Restrict category based on age?

$
0
0

@kyle_boyce wrote:

Ask user their age on signup to allow restrictions based on age?

This would be great. Are there plugins for this?

Posts: 2

Participants: 2

Read full topic

When should Discourse upgrade to Rails 5?

$
0
0

@gdpelican wrote:

Hey Discourse Team,

This marks the 1-year-and-1-month anniversary of the Rails 5 release, it looks like 5.1.3 will be out soon (second release candidate lands today). Wondering if there have been any thoughts on upgrading Discourse to Rails 5.x anytime soon? Why or why not?

Posts: 3

Participants: 3

Read full topic

Discourse has poor searchability/archivability

$
0
0

@Jimble wrote:

One of my users on my old forum has gotten cold feet about moving to Discourse and is claiming that Discourse has “poor searchability” because it ONLY returns 50 search results.

He also says Discourse has “poor archivability” because he will not be able to sift through 300 old posts way back in time fetched with some search term.

What can I tell him to ease his nerves?

Posts: 5

Participants: 5

Read full topic

Tap the URL to get back to the top

$
0
0

@Jimble wrote:

It’s very tedious to swipe your finger 120 times to get to the top of a long thread when you are on mobile (the IOS app specifically).

It would be good to be able to tap the top of the screen (the URL) to be taken to the top of the thread?

Posts: 3

Participants: 2

Read full topic


What would you like to see on your Discourse Admin Dashboard?

$
0
0

@HAWK wrote:

I’m working on a redesign of the Admin Dashboard (found at /admin).

It currently displays a lot of data but I believe we could do a better job at providing the right kind of data.
i.e. the things the community builders need to know at a glance to monitor health & growth and to diagnose problems.

What features would be included in your oh-my-god-this-is-the-best-community-dashboard-ever dashboard?

What info do you want to get at a glance?

Posts: 6

Participants: 5

Read full topic

No placeholder text for group member add field

$
0
0

@jomaxro wrote:

This has been bugging me for awhile now, figured I’d submit a PR to fix it. With a quick glance, it’s easy to overlook the ability to add members via the groups admin UI. This PR adds placeholder text to the add members field.

Before:

After:

Posts: 1

Participants: 1

Read full topic

Better Spam Filtering Hooks

$
0
0

@smth wrote:

Right now, the only way admins can specify manual spam classifiers is using case-insensitive regex.

However, this has proved to be insufficient to me on PyTorch forums that I’ve been running. I’ve also enabled Akismet, but it isn’t doing a great job of filtering the kind of spam I’m seeing.

To give an example, this is an example spam entry:

슈퍼카지노- (₮【79SCV.CoM】₮) -SUPER카지노슈퍼카지노- (₮【79SCV.CoM】₮) -SUPER카지노

The website and posts keep changing, but there are some clear patterns that repeat such as CoM.
If there was an inline code snippet that I could write in admin/site_settings/category/spam, I think I can get rid of all such spam. It would be so much more convenient to filter spam with advanced filters.

Any thoughts on this?

Posts: 1

Participants: 1

Read full topic

Backup failed with postgresql connection error

$
0
0

@xiangzhuyuan wrote:

I have tried the latest discourse with official Docker image few days, and I found the regular backup operation would be failed every time, the error log contains:

FATAL: Peer authentication failed for user "postgres"

When I typed this issue, I got few similar topic in the right, after I checked them I think this is still a new unfixed problem. And the solution comes from here, as current postgresql installed built in docker image, need change the configuration of postgresql like:

#TYPE  DATABASE        USER            ADDRESS                 METHOD
local    all             all                                     trust

So with this configuration the backup function would be work. I didn’t checked a lot in current issue list, if there is fix about it, please ignore this.

Posts: 1

Participants: 1

Read full topic

Add image in table

$
0
0

@Pad_Pors wrote:

in our forum I couldn’t add image inside a table, but currently that I test it here it seems to work easily:

test image in table
![globe|320x301](//discourse-meta.s3-us-west-1.amazonaws.com/original/3X/c/0/c0ffe3fdc6d2eb0c31715f2e0cfda35f84243cb1.png)

can someone give me a hint if there’s any setting needed for this?

update: :thinking: this was the preview before I push create topic button:

perhaps it’s related to commonmark testing topic.

Posts: 3

Participants: 2

Read full topic

Automate Discourse Docker with Ansible

$
0
0

@joebew42 wrote:

Hello folks,

we would like to announce a stable version of Ansible Discourse, it is an ansible playbook that helps you to confgure and provision the Discourse Docker easily.

I hope that this project can be useful for everyone who wants to install and configure a new Discourse.

Do you have any feedback?

Contributors are welcome :hugs:

At the moment we wrote two scripts (scripts/) that can be used to run the provisioning on a local vagrant machine or AWS. It could be useful to add support for other providers, like DigitalOcean, Google Cloud, and other.

Posts: 2

Participants: 2

Read full topic

Starting a second Discourse forum on the same VPS

$
0
0

@_vincent wrote:

Hi,

I would like to host a second forum on an OVH VPS. Main standalone discourse instance runs on the domain root (https://zbeul.org) and I want the new one to be ran on https://mao.zbeul.org.

I figured the best solution would be 2 standalone instances with nginx proxy_pass in front.

I thoroughly read the following threads:

I just nuked my config files, removed the front nginx and reverted to my previous app.yml for the sake of a fresh start.

Has anyone tried this kind of installation?
If we come to a solution I’ll be happy to put up a wiki page for this specific case.

Thanks!

Posts: 4

Participants: 3

Read full topic


{more_replies} sometimes returns no value

$
0
0

@erikmolenaarnl wrote:

Hi there,

I notice the variable {more_replies} sometimes does not return a value.
On most posts it works, but for some, it just returns a blank: https://www.screencast.com/t/R02jRiiULe5k

Check out live URL: https://networklessons.com/cisco/ccna-routing-switching-icnd1-100-105/introduction-to-ethernet/

Please note I changed the template via filter discourse_replies_html, but this is still the case on the default Discourse templates (by removing the filter). I did not see any errors in my PHP logs.

Posts: 2

Participants: 2

Read full topic

Button to move instantly to Off-topic topic

$
0
0

@Silvanus wrote:

Heya! We have a topic of off-topic discussion in our forum. Is it possible to create a button to the dialog that shows after choosing messages to instantly move the selected messages to this specific thread?

Posts: 3

Participants: 2

Read full topic

Integrate dynamic code to template?

$
0
0

@basti wrote:

Hello,

since some hours I am reading here in the forum to find a solution for my template problem…

We have a running webshop which has a header / left navigation and a footer.
We want to integrate discourse as smooth as possible for the users.

My question now is if it is possible to get some dynamic content to be rendered in template.

My suggestion is to make a small crawler on my own page to get the HTML for header/footer/navi each day.

My problem now is how to get this HTML in the template for discourse?
Has somebody some idea?

Thanks in advance!

Posts: 3

Participants: 2

Read full topic

The #Header markdown syntax stop working

SEO Google Search Console Help

Viewing all 60707 articles
Browse latest View live




Latest Images