I’ve started to use SSO for my forum. I’d like to add some links to the Account tab under Preferences so that I can tell users that they can manage further settings re. their account on the SSO dashboard.
I can see how to do this, but it involves overwriting one of the templates, which will mean that I will need to maintain Discourse downstream. Is there a plugin approach to push a div on to this section trivially?
On my localhost development I have two ways to get to the database. In common is
cd /var/discourse
sudo ./launcher enter app --skip-prereqs
* the --skip-prereqs is because autoclean, autoremove and launcher cleanup fail to clean up enough room for some reason that I haven’t determined yet and I can’t enter app without it.
I can then either
exec rails db
or
su -c 'psql discourse' postgres
Though there are some obvious differences - the prompt and the exit level - it appears that they are essentially the same.
I would like to know if there are any differences that are not obvious to me. In particular, is one inherently “safer” than the other? Would one trigger / queue jobs and the other not?
This component uses Mario Klingemann’s StackBlur library (2kb gzipped - MIT license) to generate high scroll performance blurred backgrounds based on an image you select in a <canvas> element.
Examples: (these are compressed so they have artifacts - the backgrounds are smooth)
The quality of the image you use does not really matter because the blur is very forgiving so I recommend highly compressed jpgs no larger than 1080p - All you want is the colors.
Installation
Install the repo as you would with any other theme component:
Once that’s done follow these steps:
1- Create a new theme
2- Name it whatever you want
3- Add this in the common header section:
Also, the default mobile theme adds a solid color background to the <body> element so you would need to remove that if you want the blurred background to show on mobiles. You can do that like so:
Is anyone else noticing some inconsistencies in the data used in the dashboard?
I’ve been exporting data on a regular basis to keep an eye on trends. I noticed that the data used by Discourse in my dashboard, in particular for the page view trends, seems wrong.
Page views:
According to the dashboard, the total in the last 30 days is 73810 - which tallies EXACTLY with the traffic numbers exported for the last 30 days, excluding today.
However, it tells me that the trend is down: “-6% change. Was 78298 in the previous 30 day period”
… except it wasn’t. The same data export for the previous 30 days was actually 70501
It made me search to see if I could actually arrive at that figure and I discovered that I can get exactly the figure used (78298) by including the previous 32 days of data. Is there a reason for this discrepancy? Does the same happen for other trend reports?
I’ve also looked at the counts and trends for posts & threads.
Topics:
The figures for 30 day periods do appear to tally, but in contrast to page views, it seems that the 30 day count for these does include ‘today’ (at the point of analysis).
Threads:
This is more complicated. It appears that the latest ‘30 days’ data is actually 29 days, including today. However, the figure used for the ‘previous 30 day period’ (960) cannot be replicated either by adding the previous data for 29 or 30 days (it is in fact larger than the sum of the previous 32 days which is 925), and doesn’t match the previous calendar month either. I have no idea where this figure comes from.
I’ve not gone and tested the other figures, but since the dashboard reversed the small increase I expected in total monthly page view, this particular issue jumped out at me.
@HAWK - is this something you have looked into with regard to the new dashboard?
This however is intended for anonymous users. What I want is a very similar call to action made for our Patreon plugin. Here’s what The Guardian’s prompt looks like:
Rough outline
After X topics, show donation-prompt (probably very similar to how the Guest Gate plugin works except we’re not trying to gate content)
Donation prompt should have a very general message that works well with most Patreon projects (I’ll help with this). Text can be edited through Customize Text Content so a dedicated editor can be left out as a stretch-goal.
Should probably be graduated to a stand-alone plugin eventually to accommodate multiple donation gateways, but bundling it with the Patreon plugin for starters will enable easy distribution.
after account creation, user is automatically logged in and can see the content
At account creation activation mail is sent. If user logs out, he cannot login unless he activates account via email. If user stays logged in for a longer period after initial account creation, and then logs out, he can not login or activate his account, because activation link expires.
Expected behaviour:
administrator invites user
user receives email and creates account. User is promted to activate her account
user receives activation email
user activates account
user can login or is automatically logged after activation
Site Settings:
invite only … checked
enable local logins … checked
login required … checked
must approve users … checked
I have my Discourse forum connected to my Wordpress site via SSO.
Users get access to my Discourse forum (as well as my Wordpress site) as part of a paid membership. I am using s2member as my Wordpress membership plugin.
If someone cancels their membership, ideally they would also lose access to my Discourse forum.
The way s2member functions, if someone cancels their membership, they are automatically downgraded from a Level 1 member to a Free Subscriber. This works great on my Wordpress website, but there is no “communication” with Discourse…so that user who cancelled would lose access to my Wordpress site, but still have access to the forum.
I’m curious if there is a way of automatically removing/downgrading users who cancel from my Discourse forum?
I was wondering if you guys could make it larger, because sometimes and can’t even see if I did the HTML in my posts right and it is really difficult to find it again. Thank you guys @team
Hi peeps!
I recently installed Discourse. It worked absolutely fine, but recently I’ve been getting this error while trying to access the user admin page of an administrator.
Here’s a gif:
We recently changed the look of our forum, and it appears that the favicon didn’t get the memo. At first, we thought that the issue was just one of caching.
I see the new favicon in Firefox (my secondary browser):
But I still see the old one in Chrome (my primary browser):
What’s more is that in Discord link embeds, the old logo still shows:
A user reported to us that they believe this is caused due to some of the meta-tags in the forum’s HTML:
Found a really small bug: when looking at a user profile, if the tab page ‘Redeemed invites’ is empty, it says “there are no pending invites to display” instead of “redeemed invites”.
Have got Discourse running on my 2013 Apple MBP on VB fine (thanks so much for the guide), but MY GOODNESS: it’s slow (but always gets there in the end )
So I was thinking - rather than upgrading my laptop (perhaps to an overpriced 2017 MBP and putting up with its AWFUL KEYBOARD ), what about keeping my old MBP and instead buying a Rock64 SBC (with 4GB - more memory than my Production cloud server), installing Debian and running that as my local Discourse dev server?
With Discourse 1.9, I was using the whitelist-iframe plugin below.
with Discourse 2.0, the plug-in no longer works. I am trying to use the Discourse whitelist feature, but need help understanding how to embed an iframe into a Discourse post.
Under admin settings, I have listed the whitelist as follows:
I’m expecting 360 image to be embedded in the post with navigation (I can rotate the image).
Is there something else I need to do?
Note that the Discourse site I’m using does not have https on it right now, primarily because I’m not sure how to set that up. If there’s a tutorial on how to set up https, that would be nice too.
Decided to go with Discourse as our forum of choice, and opened an account with Digital Ocean. I have successfully installed Docker and Discourse on our server there, however the domain “discourse.dynomotion.com” shows up as an error 403-forbidden up in my browser, so I can’t register and finish my setup. Any idea why that is?