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

Appending to Preferences -> Account tab

$
0
0

@samnazarko wrote:

Hello,

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?

diff --git a/app/assets/javascripts/discourse/templates/preferences/account.hbs b/app/assets/javascripts/discourse/templates/preferences/account.hbs
index 239c8d0..ca21e45 100644
--- a/app/assets/javascripts/discourse/templates/preferences/account.hbs
+++ b/app/assets/javascripts/discourse/templates/preferences/account.hbs
@@ -99,6 +99,10 @@
   </div>
 </div>

+<div>
+<h2>Your Account</h2>
+<p>To manage your account further, see...</p>
+</div>

 {{#if model.canDeleteAccount}}
   <div class="control-group delete-account">

I do apologise if this has been covered before

Cheers

Sam

Posts: 2

Participants: 2

Read full topic


Current PageTracker.current?

$
0
0

@jesselperry wrote:

Is there a new way to get a Javascript event when page URL changes? Discourse.PageTracker.current is not working for me.

Posts: 3

Participants: 2

Read full topic

Different CLI commands to get to the database

$
0
0

@Mittineague wrote:

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?

Posts: 2

Participants: 2

Read full topic

StackBlur backgrounds theme component

$
0
0

@lll wrote:

:warning: This is not supposed to be used as a theme by itself.

This is a theme component that’s supposed to handle the background only. It’s supposed to be incorporated into your theme design.


Repo: GitHub - hnb-ku/StackBlur-backgrounds-discourse-theme-component

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)

If I use this photo:

Then the resulting Discourse background would look like this:

And on mobile

More samples with other images:

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:

<canvas
id="background_b"
data-src='BACKGROUND_URL_GOES_HERE'
data-blur="BLUR_AMOUNT"
></canvas>

4- Change BACKGROUND_URL_GOES HERE to the url of your image
(Has to be either hosted on your domain or on a domain with correct CORS set up)

5- Change BLUR_AMOUNT to the desired amount of blur (0 - 180) higher means more blur.

5- Add StackBlur backgrounds as a theme component under your newly created theme.


:warning: Important

The demo samples use the “Simple Dark” color scheme

You may have noticed the slight dark background behind the topic list.

This is not a part of the theme component

That is achieved with the the following CSS:

#main-outlet {
    background: rgba(0, 0, 0, .5);
    padding-left: 2em;
    padding-right: 2em;
}

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:

.mobile-view {
	body {
		background: none;
	}
}

Posts: 1

Participants: 1

Read full topic

I can't seem to enable the post option buttons

Inconsistent data in dashboard

$
0
0

@thirstforwine wrote:

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?

Posts: 3

Participants: 3

Read full topic

Adding a call-to-action for donations with our Patreon plugin

$
0
0

@erlend_sh wrote:

Reading this was quite inspiring:

In short, The Guardian has found a very effective way to onboard regular supporters; enough to fund a global news organisation.

It just so happens we have a very similar feature in Discourse already: Signup call-to-action when you read for a while.

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.

Posts: 1

Participants: 1

Read full topic

User can login without confirming activation mail

$
0
0

@alfabetagama wrote:

Hi,

we are trying to set up invite only forum

Steps to reproduce:

  1. administrator invites user
  2. user receives email and creates account
  3. 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:

  1. administrator invites user
  2. user receives email and creates account. User is promted to activate her account
  3. user receives activation email
  4. user activates account
  5. 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

Posts: 5

Participants: 3

Read full topic


Wordpress shortcodes?

$
0
0

@Ryan_Collins1 wrote:

Hi team,

Does anyone know if there is a shortcode I can use to display my top forum posters, in a page on my Wordpress website?

I’m looking to create a “leaderboard” on a Wordpress page, showcasing the top posters in my forum.

Just curious. Thanks!

Posts: 1

Participants: 1

Read full topic

Using Discourse with s2member

$
0
0

@Ryan_Collins1 wrote:

Hi team,

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?

Thanks for any ideas. Much appreciated! :v:

Posts: 4

Participants: 4

Read full topic

Making The Bio Larger

$
0
0

@Cool_Cool wrote:

I feel like the bio area in which you can type in is really small. It used to be really big.


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

Posts: 4

Participants: 3

Read full topic

Error code: 500 when trying to access user admin page of an administrator

$
0
0

@SmoothModeler wrote:

Hi peeps! :wave:
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:

Posts: 6

Participants: 3

Read full topic

Favicon update not fully updating

$
0
0

@Lilly_S wrote:

Hi team,

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):
image

But I still see the old one in Chrome (my primary browser):
image

What’s more is that in Discord link embeds, the old logo still shows:
image

A user reported to us that they believe this is caused due to some of the meta-tags in the forum’s HTML:

<link rel="apple-touch-icon" type="image/png" href="https://discourse-cdn-
sjc1.com/business/uploads/roblox/original/1X/d16a9be287349624ba5d6d2e52ba3ca7a7acc251.png">
<link rel="icon" type="image/png" sizes="144x144" href="https://discourse-cdn-
sjc1.com/business/uploads/roblox/original/1X/d16a9be287349624ba5d6d2e52ba3ca7a7acc251.png">
...
<meta name="twitter:image" content="https://discourse-cdn-
sjc1.com/business/uploads/roblox/original/1X/d16a9be287349624ba5d6d2e52ba3ca7a7acc251.png" />
<meta property="og:image" content="https://discourse-cdn-
sjc1.com/business/uploads/roblox/original/1X/d16a9be287349624ba5d6d2e52ba3ca7a7acc251.png" />

Assistance would be greatly appreciated!

-Lilly

Posts: 5

Participants: 3

Read full topic

Redeemed invites textual error

$
0
0

@RGJ wrote:

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”.

image

Posts: 2

Participants: 2

Read full topic

So how to integrate new language to discourse?


Discourse dev server - using a Rock64

$
0
0

@merefield wrote:

Guys,

Have got Discourse running on my 2013 Apple MBP on VB fine (thanks so much for the guide), but MY GOODNESS: it’s slow :roll_eyes::sleeping: (but always gets there in the end :sweat_smile: )

So I was thinking - rather than upgrading my laptop (perhaps to an overpriced 2017 MBP and putting up with its AWFUL KEYBOARD :persevere:), what about keeping my old MBP and instead buying a Rock64 SBC :sunglasses: (with 4GB - more memory than my Production cloud server), installing Debian and running that as my local Discourse dev server?

Thoughts? Anyone tried this?

NB Not affiliated with Pine64 in any way!

Posts: 3

Participants: 2

Read full topic

Replacement for whitelist-iframe

$
0
0

@codetricity wrote:

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:

image

My post contains the following:

<iframe src="http://theta360.guide/thetapicts/michal2.html" width="800" height="425"></iframe>

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. :slight_smile:

Posts: 2

Participants: 2

Read full topic

Post created in discourse auto post to fb page or twitter

$
0
0

@chi wrote:

Hi! What would be the best way to integrate Discourse to FB page and twitter.

I want to post automate new post at our help category to our FB page and twitter in order to increase more participant in our community.

Any idea on how to set this up? Or do we have a plugin ready for this?

Thank you.

Posts: 2

Participants: 2

Read full topic

The upload of a backup seems to be allowed in read-only mode

$
0
0

@Dax wrote:

If you are in read-only mode and you try to upload a backup via gui, the site go ahead and seems to upload the backup even if this is not true.

When you are in read-only mode there should be an alert telling you that you can not load the backup before you disable that mode.

Posts: 7

Participants: 4

Read full topic

Discourse domain showing error 403 - forbidden

$
0
0

@sfzeller wrote:

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?

Posts: 5

Participants: 2

Read full topic

Viewing all 60739 articles
Browse latest View live




Latest Images