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

Widget attribute clarifications

$
0
0

@tshenry wrote:

As I have been continuing down the rabbit-hole that is Discourse dev, I came to something that I could use some clarification on if possible. I could be missing something extremely obvious, but here’s where I need some help:

If I print out Object.keys(attrs) in a createWidget(), I get a list like:

id,username,avatar_template,post_count,primary_group_name,primary_group_flair_url,primary_group_flair_color,primary_group_flair_bg_color,topic

I have a few questions:

  1. How are widget attributes established? It seems like each createWidget() has its own set of attributes and I’m having trouble tracking down where they come from and how they are determined.

  2. How do I get an attribute that isn’t a part of a widget’s attrs by default? For example, in the above list, how would I add trust_level to that attribute object?

  3. Can the addition of an attribute be done in the context of a theme component or would it require a proper plugin or modifying core Discourse?

I can provide more details on the exact scenario that prompted these questions if that helps. I just wanted to keep it brief if I can.

Also worth mentioning, I’ve read the “Rendering Attributes” section of A tour of how the Widget (Virtual DOM) code in Discourse works and still haven’t quite found the answers for my specific scenario.

Posts: 2

Participants: 2

Read full topic


Cannot Download and expand image

$
0
0

@pyo0723 wrote:

I can not download and expand uploaded images.





If I upload an image and hover the mouse over the image, the expandable button should be visible, but not visible.
So I can not zoom in on the image.

The download button is also not displayed.

Is there a setting for the expand button to appear? How do I see the button to expand the image?
Please let me know how the expand button appears.

The environment that we installed was installed as the Discourse docker, and it is made of internal private network so that it can not be accessed from the outside.

It works well on the discourse demo site.
https://try.discourse.org/t/image-download-and-expand-test/1077

Why is this happening?

Posts: 2

Participants: 2

Read full topic

Other ways to reset password?

$
0
0

@xiasummer wrote:

In my forum, I find it strange that with a gmail account, password reset email can be seen, but in a 163.com email account, not.

The 163.com email can receive digest mails, but not password reset emails. Don’t know why.

And it’s not in the spam mail folder or what.

As an administer, can I reset the password of another account?

Posts: 5

Participants: 3

Read full topic

Discourse Setup - Not receiving activation email

$
0
0

@emmachka wrote:

I am trying to setup my discourse page on Ubuntu, and have been able to register my account, however I am unable to receive the activation email to finish setting up the site. I am using a DigitalOcean droplet and access the register page from its IP address, but have been trying to resolve this for about a week and am unable to find a solution. At first I thought it was a problem with the email server, however I am able to send and receive other emails. Any help would be greatly appreciated!

Posts: 4

Participants: 4

Read full topic

How to set the Discourse Timezone?

$
0
0

@pyo0723 wrote:

Our time zone is KST.
However, the default set to UTC in the discourse.

How to set a discourse Timezone?
Do I have a setting to change?

I had installed by Docker.
So, I edit one file (application.rb)

cd / var/discourse
./launcher enter app
vi /var/www/discourse/config/application.rb

edit Time zone and save.


exit 
./launcher restart app 


After saving, it does not work normally. Only 502 Bad Gateway appears on the web page.

How to set a discourse Timezone?
Please help me.

Thank you for your help!

Posts: 1

Participants: 1

Read full topic

Global theme settings

$
0
0

@Vaping_Community wrote:

I love the ability to theme discourse and it works really well for individual themes but I feel like global settings for /head / CSS etc that would apply to all themes would make things so much easier when trying to manage multiple themes.

Is this possible?

Posts: 5

Participants: 2

Read full topic

Signup via Github doesn’t use primary email

$
0
0

@aschrijver wrote:

I just signed up with my Github account, but the signup form filled in my secondary email (which happened to be no longer accurate). However, I couldn’t change it anymore, so first created my account and then changed it in this Discourse forum account settings afterwards instead.

PS I don’t need help with this - I entered the forum, just reporting :slight_smile:
PS2 Originally posted here: Signup via Github doesn't use primary email - Site Feedback - Let's Encrypt Community Support

Posts: 3

Participants: 3

Read full topic

Uploaded picture scaling for mobile

$
0
0

@merefield wrote:

Guys,

I’ve noticed that the ‘thumbnail’ of uploaded pictures is not completely scaled-to-fit, it is cropped when showing in portrait view on mobile.

Might it be more sensible/possible to scale-to-fit the pictures instead, so the right edge always shows? Currently it can lead to awkward looking composition, e.g. chopped off objects or half people.

Let me be more specific - this is particular an issue on iPhone 6/7/8 and landscape images which is a very common use case.

This would also presumably have the additional benefit of reducing the thumbnail vertical real-estate which on mobile is clearly scarce.

Thanks!

PS Any way of hacking this via Theme/CSS, similar to request here?

Refining my search criteria to see if this has been asked before, reveals the following, but former is CLOSED, however I feel this is still an issue in a very popular use case:

Posts: 7

Participants: 3

Read full topic


[Paid] Discourse plugin to disable HTML headers

$
0
0

@erikmolenaarnl wrote:

I would like a native Discourse plugin to be developed which:

Disables HTML headers on the front-end. In Discourse, these are nativly applied to the front-end when markdown or HTML code such as H1, H2 is used. I would like no HTML header output at all time, and just 1:1 plain text output. Just like this attachment:

Budget: $100

Looking forward to your replies! Thanks :slight_smile:

Posts: 3

Participants: 2

Read full topic

Keyboard Shortcuts jump to end of Suggested Topics reading last post

$
0
0

@cpradio wrote:

After entering a topic that has 1 unread reply, using j or k takes me to the bottom of suggested topics instead of to the post I am reading (going to the first suggested topic would be okay too, but the bottom… that’s a bit much)

Repro Steps

  1. On latest find a topic where you have 1 unread post
  2. Open it (using mouse or keyboard)
  3. Press J or K (doesn’t matter which)

Expected:

Indicator is on the post you are reading.

Actual:

Indicator is at the very bottom of Suggested Topics.

Posts: 1

Participants: 1

Read full topic

Unable Receive Activation Emails

$
0
0

@Forbidden wrote:

Hi,

I am new here, just install Discourse on DO, but cant receive email.

I was unable receive the activation email, I was keep search related post, change and rebuild app still no working, trying with shared hosting SMTP and mailgun.

Mailgun I have receive domain activate, but seems still unable sent out mail, is that no added credit card will not allow to sent mail?

Currently I got one shared hosting, I have try using the SMTP of the shared hosting, but keep refuse, and the hosting support told me,

“mail is CNAME to example . com.
So if you point example .com A record to other side, you will need change mail.example . com to our own server 43.225.xxx.xxx. Then update MX record to mail.example . com.
Then your SMTP only can work well.”

As checking log, seems was complete, but I no receive any email.

Any wrong on setting?

Posts: 3

Participants: 3

Read full topic

Serving hugo static site in same docker container?

$
0
0

@tvmaly wrote:

I setup discourse on a DO droplet, but it is currently running on the main domain.

Is there a detailed write up on how to setup the docker container so that I could serve a static html site on the main domain and provide discourse on a subdomain.

Posts: 8

Participants: 3

Read full topic

Bootstrap fails when plugin file specifies gem version range

$
0
0

@jonathon wrote:

As far as I can tell, it’s legal to specify gem version ranges in a Ruby file, e.g.:

gem 'ruby-saml', '~>1.7'
gem 'omniauth-saml', '~>1.10'

and running a gem install manually will succeed as expected, e.g.:

$ gem install ruby-saml -v '~>1.7'
Successfully installed ruby-saml-1.7.2
Parsing documentation for ruby-saml-1.7.2
Done installing documentation for ruby-saml after 1 seconds
1 gem installed

However, bootstrap will fail when anything other than a plain number is used:

ERROR:  While executing gem ... (Gem::Requirement::BadRequirementError)
    Illformed requirement ["/home/discourse"]
I, [2018-03-13T12:15:08.087153 #16]  INFO -- : gem install ruby-saml -v ~>1.7 -i /var/www/discourse/plugins/discourse-saml/gems/2.4.2 --no-document --ignore-dependencies

You are specifying the gem ruby-saml in /var/www/discourse/plugins/discourse-saml/plugin.rb, however it does not exist!
Looked for: /var/www/discourse/plugins/discourse-saml/gems/2.4.2/specifications/ruby-saml-~>1.7.gemspec

Posts: 1

Participants: 1

Read full topic

Add emoji while new topic editor is up

Adding User ID to shared links

$
0
0

@ogeh47 wrote:

Hi everyone,

Does anyone have any idea as to how I can add the ?u=username link to a social share button?

I am currently creating series of share functions to help promote social sharing and I would like to

add user IDs to track referrals.

Here is a snapshot of what I have:

Posts: 1

Participants: 1

Read full topic


Translation for system message not being used

$
0
0

@RGJ wrote:

When a post is flagged on a forum that is using a non-English locale, only the flag_reason is being translated. The other text is not translated and displayed in English. There is a translation present in the configuration.

We can repro this on latest stable. Multisite, if that matters.

Posts: 1

Participants: 1

Read full topic

Broken pull down to reload in Android Chrome

Open Composer with Prefilled information

$
0
0

@duranmla wrote:

Hello,

I am facing the issue to open the composer with a prefilled information within it, or in case that it is too complex maybe just create a topic from a custom component/widget. The context of the issue is that I have a custom UI that expect to be used to create a Topic so there are two scenarios we can use that UI to prefill the composer and finally create the topic of embedded all things needed to create the topic from that custom UI. Keep in mind that we want also to have the composer as it is.

I saw I useful idea here: Accessing the createTopic action while on a topic route where the author ends up by reopen the ApplicationRoute and then define his own action, it looks like I can do something like that but not sure where is the right place to write that code; I can define a new custom action to be called on my custom UI button that sends the action of open to the Composer Controller with some arguments.

Cheers.

Posts: 3

Participants: 2

Read full topic

[Paid] Develop "Ask me question" plugin in user profile

$
0
0

@Majed wrote:

I have discourse running as Q&A using this plugin which has some people experts in their field.

I need to have some additional customized features as follows:

  1. Each user will have additional tab in their profile says “Ask me” and below it shows the normal discourse text editor to ask this user a question.

  2. The question will be posted as normal question in the selected category with mentioned to this user to get notified by discourse to see the question and answer it.

  3. In “Ask Me” page has special URL which users can Share it in their social network.

  4. Pop up Window will come up to any unregistered visitor going to ask this user a question.

If you can do this Plugin please share your estimated time and cost
Also please mention the support period after delivering the project ?

Posts: 1

Participants: 1

Read full topic

Data Explorer queries for user voting statistics

$
0
0

@Simon_Cossar wrote:

Here are a few Data Explorer queries that you can use for getting information about a user’s votes. For each of the queries, you will need to supply a username.

Vote Count

The voting plugin sets a vote limit for each trust level. You can run the following query to get the current vote count for a given username.

-- [params]
-- string :username

WITH sample_user AS (
SELECT
u.id
FROM users u
WHERE u.username = :username
)

SELECT
COUNT(ucf.user_id) AS vote_count
FROM user_custom_fields ucf
WHERE ucf.user_id = (SELECT id from sample_user)
AND ucf.name = 'votes'
AND ucf.value IS NOT NULL

Current Vote Topics

Returns the topic and creation date of current votes for a given username.

-- [params]
-- string :username

WITH sample_user AS (
SELECT
u.id
FROM users u
WHERE u.username = :username
)

SELECT
ucf.value AS topic_id,
ucf.created_at AS voted_at
FROM user_custom_fields ucf
WHERE ucf.user_id = (SELECT id from sample_user)
AND ucf.name = 'votes'
AND ucf.value IS NOT NULL

Archived Vote Topics

When a topic with votes is closed, auto-closed, or archived, a user’s votes are moved to a UserCustomField with the name votes_archive. This creates an archive of the users votes, and also resets the user’s vote count. The following query returns the topic and the creation date for the archived votes for a given username.

-- [params]
-- string :username

WITH sample_user AS (
SELECT
u.id
FROM users u
WHERE u.username = :username
)

SELECT
ucf.value AS topic_id,
ucf.created_at AS voted_at
FROM user_custom_fields ucf
WHERE ucf.user_id = (SELECT id from sample_user)
AND ucf.name = 'votes_archive'
AND ucf.value IS NOT NULL

Posts: 1

Participants: 1

Read full topic

Viewing all 60642 articles
Browse latest View live




Latest Images