Skip to content Skip to sidebar Skip to footer

Issue Badge on Profile Picture Upload Discorse

Uploading user selectable avatars fails unless allow_uploaded_avatars is enabled

@Simon_Cossar wrote:

If the allow_uploaded_avatars Site Setting is not enabled, attempting to upload an image to the selectable_avatars list fails. The message in the upload modal is 'Uploading 100%', just no epitome appears.

The copy for the allow_uploaded_avatars setting is 'Allow users to upload custom profile pictures.' Having to enable this when y'all don't want to permit users to upload avatar images is counter intuitive.

It is declining here: https://github.com/soapbox/discourse/blob/master/app/controllers/uploads_controller.rb#L16. Adding a condition to that line that checks for !params[:for_site_setting] == "truthful" would allow avatars to be uploaded regardless of the Site Settings.

Posts: ane

Participants: 1

Read total topic


Upgrade failed due to unclean database shutdown II

How to award a non-custom badge through the console

@Simon_Cossar wrote:

There are rare cases where ane of the default Soapbox badges may need to exist awarded to a user through the track console. As an example: a user who has not been granted the Enthusiast badge, despite having visited a forum for x sequent days. This can happen due to time zone differences between a user's local time and the server'southward UTC fourth dimension.

Outset, make sure that the badge won't be automatically revoked by the system after information technology has been granted. Yous can observe that list of bluecoat names by running the following in your runway console:

                Badge.where(auto_revoke: false).pluck(:proper noun)                              

That will requite y'all the following listing:

  • "Offset Flag"
  • "Thanks"
  • "Gives Dorsum"
  • "Empathetic"
  • "Out of Dearest"
  • "Higher Beloved"
  • "Crazy in Dear"
  • "Aficionado"
  • "Devotee"
  • "Enthusiast"
  • "Reader"
  • "Ceremony"
  • "Appreciated"
  • "Respected"
  • "Admired"

To grant a badge from this listing, find the user you wish to grant the bluecoat to:

                user = User.find_by(username: 'enthusiastic_user')                              

Then find the badge past its proper noun:

                                  badge = Bluecoat.find_by(name: "Enthusiast")                              

And then grant the badge to the user:

                BadgeGranter.grant(badge, user)                              

Posts: i

Participants: 1

Read full topic

How to grant a custom badge through the API

@Simon_Cossar wrote:

Custom badges that you have created on your forum can exist granted through the API. This is a great way to award badges without having to utilize custom badge SQL.

To grant a badge through the API, yous need to know the username of the user that you lot wish to grant the bluecoat to, and the ID of the bluecoat you wish to grant. You likewise demand to make sure you have generated an All Users API Fundamental from your site'southward Admin/API section.

Finding your API Key

This screenshot is from my local evolution site. Generally, you lot need to exist very careful about sharing your API keys:

Finding the Badge ID

You tin can get the Badge ID from the badge'due south URL. Go to your Admin/Badges section and then click on the bluecoat that you wish to grant. The URL will look something similar this: https://forum.example.com/admin/badges/102. The final number in the URL is the badge ID.

Making the API phone call

To test an API call, you can try granting a badge using curl or Postman. Here is how I grant a badge from my computer's last with scroll.

First, to brand things easier, set an api_key variable:

                                  api_key=yourallusersapikey                              

Then to grant a bluecoat with the ID of 102 to the user simon.cossar:

                whorl -X POST -d "api_key=$api_key&api_username=system&badge_id=102&username=simon.cossar" https://forum.example.com/user_badges                              

You should get a JSON response with details about the badge and when it was granted.

Posts: i

Participants: 1

Read total topic

Google Doc/Spreadsheet/Form Consequence

@Balloonchaser wrote:

Hey guys,

Currently experiencing an event on the Infinite Flight Community and wanted to notice a ready if possible.

When copying and pasting a google medico/grade link to the discourse grade (IFC), some docs get embedded where others continue to show in link form. Why is this occurring & can it exist stock-still on my stop?

Jack

Posts: vii

Participants: four

Read full topic

Chat-integration

@Full30 wrote:

Hello Community!

I see a lot of conversation-integrations available,

I'g hoping to get some feedback from users on what ones are great,
I need a great one, one that can handle some traffic

and, could any exist placed in a post,

i.e. could this post "host" the plug in, or will they all require a side box?

Thanks to anyone that can assistance

Robert

Posts: 1

Participants: 1

Read full topic

Upgrade fails on old version of Postgres database

@gtanczyk wrote:

I'm upgrading from v2.0.0.beta5 +110 to 2.2.0.beta5
Postgres version: nine.4

Error message:

                Caused by: ActiveRecord::StatementInvalid: PG::DatatypeMismatch: ERROR:  column "info" is of blazon jsonb merely expression is of blazon json LINE 13:   json_build_object('email', email, 'first_name', first_name...        ^ HINT:  You will demand to rewrite or cast the expression. : INSERT INTO user_associated_accounts (   provider_name,   provider_uid,   user_id,   info,   last_used,   created_at,   updated_at ) SELECT   'facebook',   facebook_user_id,   user_id,   json_build_object('email', email, 'first_name', first_name, 'last_name', last_name, 'proper noun', name),   updated_at,   created_at,   updated_at FROM facebook_user_infos /var/www/soapbox/vendor/bundle/red/2.5.0/gems/rack-mini-profiler-1.0.0/lib/patches/db/pg.rb:92:in `async_exec' /var/world wide web/discourse/vendor/parcel/ruby/2.v.0/gems/rack-mini-profiler-1.0.0/lib/patches/db/pg.rb:92:in `async_exec'                              

Looks like it'southward related to this new commit by @david: discourse/20181128140547_migrate_facebook_user_info.rb at 208005f9c9662773b436c4ffa14272ac0888bb04 · discourse/discourse · GitHub

Posts: iii

Participants: two

Read full topic

Is it possible to integrate with an existing user database?

@OneTrueLloyd wrote:

I want it to be so that existing users are already logged into the forum when they click on it.

Posts: three

Participants: ii

Read full topic


Discourse setting Reply-To value in `From` header field when using respond past email characteristic

@RBoy wrote:

This issue was likewise reported on different topic related to setting up email replies. As suggested by @mpalmer I'm creating a new topic.

The other users who reported this issue on this topic:

I've searched the forum and can't seem to find an answer and then afterwards debugging this using a hMailServer SMTP server I'yard beginning to think this may be a bug. This result is causing issues similar the SMTP server not DKIM signing the bulletin since the sender domain doesn't match the from header and also existence flagged as potential spam by world wide web.mail-tester.com for the aforementioned reason.

And so I did some more testing to see what's going on. I did two tests with the same setup from the same network and both are setup with the same SMTP server name, username/countersign, port and authentication. I motorcar running outlook and another discourse, sent a test eMail to the same email address from soapbox and from outlook.

In outlook I ready the "reply-to" feature similar to what discourse is is supposed to ready for a respond to accost. (using gmail here for the respond-to)

I looked at the SMTP server records and I noticed that the from header from outlook was set correctly.

"RECEIVED: Mail service FROM: discussion@xxxx.com"

However the logs from the discourse transaction shows this for the from header:

"RECEIVED: Mail service FROM: my.discussion+verp-eb90be8c2b93e18896c910d4fe2cdc05@gmail.com"

That'southward the root cause why receivers are flagging as spam and why the SMTP server won't DKIM sign the message sent from soapbox since the from address doesn't match the senders domain.

Why is discourse setting the from flag with the answer-to address?

Posts: ii

Participants: 1

Read full topic

CSS assist to fix problem with Header

@Pravi wrote:

Need some help to align site title with sign up, log in, search and hamburger button. Need some CSS help.

Cheers

Posts: 5

Participants: 2

Read full topic

Activating users without e-mail?

@ylluminate wrote:

Has anyone written a module that will facilitate account activation via an alternative method such as a captcha or another "real person" identification machinery?

I'thou interested in perhaps allowing users to sign upwardly with an agile account as long as they, in some mode, prove they're non a bot.

I do even so want users to exist able to receive e-mail alerts and such, only I don't want to force activation via the e-mail pipeline and instead utilize email as a secondary alert service for users if they desire them.

Anyone done such a thing or is this something nosotros'd accept to build out ourselves?

Posts: 4

Participants: 2

Read full topic

How to search exact strings

@vrms wrote:

I am function of the moderators team for a forum served by discourse.
I have noted several post by different people with the exact aforementioned wording and slightly out of context of the specific consequence.

Now I am suspecting some account may have been hacked and as a first measure would like to find all Topics who take the exact same string (not in the title, but in any of the posts inside a topic)

how can u do that? searching for "exact string in topic content" does non work unfortunately

Posts: 2

Participants: 2

Read total topic

On edit: Internal Server Mistake

@modius wrote:

Since the last update I announced to exist getting the following error in a small dialogue for editing posts:

                Internal Server Mistake                              

Steps to reproduce in my system at least:

  1. create a new post and save; all is well
  2. answer to the post and salvage; all is well
  3. edit whatsoever post and hitting save; blast :boom:

Here is a screen shot of the exact dialogue.

I've done a consummate ./launcher rebuild app with the latest update.

There is nothing in the error logs that appears to be related. I'chiliad not sure where to start.

Posts: 1

Participants: one

Read total topic

Issues with custom OAuth provider & user_id of access_token being fix to nil

@Daniel_Lopes wrote:

Hey everyone,

My company is starting to offer admission to our discourse as part of our main product, and we decided to build a custom OAuth integration so people can login with the existing account.

We created as an authenticator based on FB and Twitter ones from Discourse codebase, released that as an internal Soapbox plugin, and turned our main app into an OAuth provider. So far so good and everything worked just fine in evolution, but unfortunately I'm getting a PG constraint fault in production.

                Failed to handle exception in exception app middleware : PG::NotNullViolation: Fault:  null value in column "user_id" violates non-null constraint DETAIL:  Declining row contains (XYZ, cipher, zk320lKJVI... : INSERT INTO "user_auth_tokens" ("auth_token", "prev_auth_token", "user_agent", "client_ip", "rotated_at", "created_at", "updated_at") VALUES (...                              

Problem is that I don't fix user_auth_tokens in my, and then I'm assuming my plugin is passing something wrong in some sort of callback gild.

This is the code of my authenticator: honcho_authenticator.rb · GitHub

If someone has experience with the authenticator role of Discourse that could shed some low-cal, that would be very helpful.

Thank you.

Posts: i

Participants: 1

Read full topic

Topic still bumped when deleting latest posts

@Stranik wrote:

Hmm … In one post, the last two posts are outdated. And I decided to remove them. And I see … This bulletin has risen. This is of course the alter of the topic torso, simply how appropriate is it to raise a message? Why bear witness it at the top?

Posts: three

Participants: 2

Read full topic


How exercise you manage when the topic becomes besides long?

@mtan wrote:

What practise y'all do when y'all have a unmarried topic that becomes too long, but yous cannot split it because the conversation is still relevant?

How practice surface replies that are good but hidden in betwixt other replies? Example, on our website nosotros have a section where people tin vote for features. Users keep on saying "I want this" followed past an occasional good comment. This good annotate gets lost considering there's no way to upvote similar to Reddit.

Posts: one

Participants: 1

Read full topic

Customizing "Page doesn't exist" page

@marina wrote:

Hi community!

I am trying to customize the "Folio doesn't exist" page. It currently shows the words " Oops! That page doesn't exist or is private.". However, I would similar to supersede this with an paradigm instead. Is there any way to practise this? I was thinking of using plugin-outlets but there does not seem to be one for it. Thanks in accelerate.

Posts: 1

Participants: 1

Read total topic

No icons because svg-sprite file non loading

@qinyj wrote:

I just received attention that Discourse have had a new version. So I update my Discourse to ii.2.0.beta5 and now find that almost all icons have missed. Do yous met the aforementioned problem?
By the way, I'g using a custom port instead of port fourscore.

Posts: half dozen

Participants: 3

Read full topic

FAILED TO BOOTSTRAP trying to rebuild

@ToddatLGC wrote:

Getting an interesting error trying to ./launcher app rebuild. Just added the following plugin repo never to the default:

                - git clone https://github.com/discourse/docker_manager.git - git clone https://github.com/discourse/discourse-sitemap.git                              

Therefore, rebuilding problems the post-obit error:

                Pups::ExecError: cd /var/www/soapbox && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Condition: pid 13002 get out 1> Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn' exec failed with the params {"cd"=>"$dwelling house", "hook"=>"bundle_exec", "cmd"=>["su soapbox -c 'packet install --deployment --verbose --without test --without development --retry 3 --jobs 4'", "su discourse -c 'parcel exec rake db:migrate'", "su soapbox -c 'package exec rake assets:precompile'"]} b9f62e630e2740d7d52513b9546e0110440ab36a3b8fda406b329f31ce3d6bc8 ** FAILED TO BOOTSTRAP ** delight gyre upward and await for earlier fault messages, there may be more one                              

Any assist would be corking.

Posts: 2

Participants: 2

Read full topic

Using sidebar nav to really navigate from homepage blocks scrolling

stalterwhord1958.blogspot.com

Source: https://topics1979.rssing.com/chan-25585223/all_p1469.html

Post a Comment for "Issue Badge on Profile Picture Upload Discorse"