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

Changing image width/height manually does not always work!

$
0
0

@ccstone wrote:

Hey Folks,

On this page of the Keyboard Maestro forum post #1 has a fairly insanely large image caused by the screenshot being taken on a retina Mac.

As one of the moderators of the forum I fix these when I come across them. I believe they are usually (perhaps always) PNG files.

The problem we have is that changing the image’s width/height doesn’t always work on the display page – even though the image is perfectly resized in the editor preview.

What might be causing this discrepancy, and what’s the best way to fix it?

Thanks.


Best Regards,
Chris

Posts: 3

Participants: 3

Read full topic


Login link & password rest expiry

$
0
0

@Adam_Adam wrote:

It seems that the Login link & password rest links sent to user emails expiry very quickly (less then a minute). How could I change the amount of time it takes for those links to expire?

Posts: 2

Participants: 2

Read full topic

SSO Client avatars

$
0
0

@Adam_Adam wrote:

I recently found this topic. Everything in this guide is now already possible using the discourse plugin, except for the “Update Avatar” feature

And was wondering if it is possible to use the following code on my wordpress site. So that word press automatically updates users avatars based on what their avatar is on discourse.

/**
  Avatar Sync
 */
add_action( 'ac_discourse_avatar_sync_event', 'ac_discourse_avatar_sync' );

function ac_discourse_avatar_sync( $user_id ) {

	// Define variables
	$discourse_url = DISCOURSE_URL;
	$userdata = get_userdata( $user_id );

	$url = sprintf(
		'%s/users/%s/activity.json',
		$discourse_url,
		$userdata->user_login
	);

	// cURL
	$ch = curl_init();
	curl_setopt( $ch, CURLOPT_URL, $url );
	curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
	$body = curl_exec( $ch );
	curl_close( $ch );

	// Interpret results
	$json = json_decode( $body, true );

	// Update user meta
	if ( isset( $json['user']['avatar_template'] ) ) {

		update_user_meta( $user_id, 'discourse_avatar', $json['user']['avatar_template'] );

	}

}

Questions

  1. Will this still work? the topic is from 2015

  2. where on wordpress should I add this code?

Posts: 1

Participants: 1

Read full topic

Badge SQL Error: q.user_id

$
0
0

@hross wrote:

Hiya!

I am working on creating a badge for people that have their post marked as the solution via the solutions checkbox plugin. This is the SQL query:

SELECT
       u.username AS "username",
       count(*) AS "count_received_best_answer",
       current_timestamp granted_at
FROM
       notifications n
JOIN
       users u ON n.user_id = u.id
JOIN
       topics t ON n.topic_id = t.id
JOIN
       categories c ON t.category_id = c.id
WHERE
       n.notification_type = 14 AND
       n.data LIKE '%solved.accepted_notification%' AND 
       n.created_at > CURRENT_DATE - INTERVAL '30 days'
GROUP BY u.username
HAVING count(*) > 0
ORDER BY count(*)

However, when I try to preview the badge, I get this error:

From searching here, I gather that q.user_id is a field in the background of these badge jobs, but I can’t figure out why I am getting this error. Any help appreciated!

Posts: 4

Participants: 3

Read full topic

Add English and translated aliases for Emojis

$
0
0

@gerhard wrote:

Continuing the discussion from Add alias support to emoji picker:

Our Emoji picker could be greatly improved by adding support for English and translated search aliases. The Unicode Consortium provides all the data we need:

This feature consists of two parts:

  1. Doing all the aliases properly for English
  2. Adding support for per locale aliases, so you can type :sourire in French on French sites and get :smile: in the window.

I’m putting it on my list.

Posts: 1

Participants: 1

Read full topic

Post jump when scrolling - How to diagnose

$
0
0

@Vaping_Community wrote:

So, using the /safe-mode and disabling unofficial plugins I have narrowed the culprit down to one of the unofficial plugins I’m using but how do I diagnose which one ?

I have the ember add on for Firefox if that helps, I’m thinking it’s the Adsense plugin as that is the one with the biggest footprint in topics but I just can’t work it out.

Thanks in advance

Posts: 2

Participants: 2

Read full topic

Which server to choose regarding Discourse requirements?

$
0
0

@canapin wrote:

Hi.
I’m going to buy a VPS Cloud 2 from OVH, and they have two offers:

dual-core 3,1 GHz, 4 GB RAM, 50 GB, 19€/month
dual-core 2,4 GHz, 12 GB RAM, 50GB, 19€/month

My server will not contain only a Discourse installation (150000 messages and 3000 users migrated from PHPBB, I think a few dozen messages will be written each day), but also a variable number of small Wordpress websites, and 1 larger which will be using WP-Discourse.

Any suggestion about the offer that would suit my needs?

edit: I didn’t see that there is also the VPS SSD 3: dual-core 2,4 GHz, 8 GB RAM, 40GB SSD, 15€/month, which is cheaper and maybe more suitable?

Posts: 4

Participants: 2

Read full topic

Facebook login fails because access token is invalidated after 90 days?


Discourse Feature Questions

$
0
0

@spectrum wrote:

Hi,
I had a couple questions about Discourse features, to see if they are possible…

  • Is it possible to have a limited timeframe that users can comment on each thread created in Discourse?
    For example, if we create a post, people have only one week to comment on it – or if it goes without a comment for a month or so, it will be locked automatically?

  • Is it possible to have long comments shown in a teaser mode, so they don’t stretch the page – but the full comment can be viewed by clicking on it?

  • Is it possible to show no preview of the Discourse comments on an article, but instead, show a link to the comment thread?

Posts: 3

Participants: 2

Read full topic

Cannot Remove Bookmarked Posts

$
0
0

@Ellibereth wrote:

On my site, I can’t remove bookmarked posts through the “remove bookmark” button on the /activity/bookmarks page. It, however, works like a charm on meta.

Originally I thought it might be some plugin or custom css thing but I removed all the non-official plugins and switched to a default theme and it’s still doing nothing when clicked. What else could be causing no issue here but an issue on my site?

Thanks.

Posts: 3

Participants: 2

Read full topic

UX: Date notation

$
0
0

@bartv wrote:

This might be just me, but I find that I’m often confused by the short date notation in posts: the notation of a year (Mar '15) is visually really close to the notation of a date (Mar 15). I tend to overlook the apostrophe and assume that a post is one or more years old, making me less interested in it.

My suggestion is to change the years to a full year (Mar 2017) - making it impossible to confuse the two.

Posts: 3

Participants: 2

Read full topic

Attempting to create Monthly Leaderboard query - head exploding

$
0
0

@jerdog wrote:

I’m trying to build a query for a leaderboard comprising the things that matter to us during the last month:

  • Likes received
  • Topics solved
  • Badges gained

I started with the User Participation query, stripped out what I didn’t want/need, and then started with adding badges gained. The badges gained query by itself looks like:

-- [params] 
-- string :interval = 1 month 
-- string :trunc = month 
SELECT user_id, count(id) 
FROM user_badges 
WHERE granted_at > date_trunc(:trunc, CURRENT_TIMESTAMP - INTERVAL :interval) 
     AND granted_at < date_trunc(:trunc, CURRENT_TIMESTAMP) 
GROUP BY user_id 
ORDER BY count DESC

That works just fine, but then when I try to convert it into the modified User Participation query, that’s where my head explodes:

-- [params]
-- string :interval = 1 month
-- string :trunc = month

with
t as (
  select date_trunc(:trunc, CURRENT_TIMESTAMP - INTERVAL :interval) as start,
    date_trunc(:trunc, CURRENT_TIMESTAMP) as end
),
pr as (
    select user_id, 
        count(1) as visits,
        sum(posts_read) as posts_read
    from user_visits, t
    where posts_read > 0
    and visited_at > t.start
    and visited_at < t.end
    group by user_id
),
likes as (
  select 
      post_actions.user_id as given_by_user_id, 
      posts.user_id as received_by_user_id
  from t, post_actions
  left join posts
  on post_actions.post_id = posts.id
  where post_actions.created_at > t.start
  and post_actions.created_at < t.end
  and post_action_type_id = 2

),
lr as (
  select received_by_user_id as user_id, 
      count(1) as likes_received
  from likes
  group by user_id
),
e as (
  select email, user_id
  from user_emails u
  where u.primary = true
),
b as (
    SELECT b.user_id, count(1) as badges
    FROM user_badges b, t, pr
    WHERE granted_at > t.start
        AND granted_at < t.end
        AND pr.user_id = b.user_id
    GROUP BY b.user_id
)
select pr.user_id,
       username,
       name,
       email,
       visits, 
       coalesce(likes_received,0) as likes_received,
       coalesce(badges,0) as badges_recv
from pr
left join lr using (user_id)
left join e using (user_id)
left join users on pr.user_id = users.id
order by 
  likes_received desc,
  visits desc

I’m getting the following error (and I haven’t even started trying to add in Topics Solved):

PG::UndefinedColumn: ERROR:  column "badges" does not exist
LINE 65:        coalesce(badges,0) as badges_recv
                         ^

Which doesn’t really make sense to me since badges is clearly identified… So I am a bit stuck… Any help finishing this query with adding badges received and topics solved would be appreciated!

Posts: 3

Participants: 2

Read full topic

Wiki Notifications

$
0
0

@usulrasolas wrote:

Continuing the discussion from Not receiving notifications for edited Wiki posts unless you are the author:

We use wikis a lot on our community. They act as the method of common editing for a great percentage of the actual work done on it. If there was a simple opt-in method to track changes to a wiki, it would solve most use cases for this and other related issues.

It has been discussed before here on meta but during our communities discussion one members suggests to correct this is have everyone put the date and revision number in the title of every post so people know when it is updated and I think that’s a horrible solution that will really clutter the topic lists. I am steering them away from that idea but a solution where they were notified seems to be the easiest method. I already have said that if they just post in discussion says what they changed and why it will update the topic, but this seems insufficient for about 30-35% of the users.

Thoughts? More info?

Posts: 1

Participants: 1

Read full topic

Minor Feature Request: Descriptions in List-Id headers

$
0
0

@adamengst wrote:

One of my readers pointed out that Discourse List-Id headers lack verbal descriptions, which would be helpful (in a small way). The short suggestion is to add descriptions in the form:

List-Id: Sitename | CategoryName <categoryslug.domain.name>

cheers… -Adam

PS: Here’s the message I got, so you can see where the guy is coming from.


Your mailing lists insert the List-Id tag into the mail header, which is nice and expected. However, they insert only the identifier without description. I get

List-ID: <article-comments.talk.tidbits.com>
List-ID: <tidbits-talk.talk.tidbits.com>
List-ID: <site-feedback.talk.tidbits.com>

Other lists include also a verbal description. For example, a few of my actual mailing lists:

List-Id: Macintosh Pascal Mailing List <mac-pascal.lists.sonic.net>
List-Id: How to use LiveCode <use-livecode.lists.runrev.com>
List-Id: MailMate Users <mailmate.lists.freron.com>
List-Id: Discussion for revIgniter <revigniter-livecodejournal.com>
List-ID: Eudora for the Mac <eudora-mac.cartel.listmoms.net>

I can set up my mail program to group the list posts by List-Id identifiers, but descriptions are much easier to see (I mean to click the correct mailing list), hence it would be great if you could have:

List-ID: TidBITS | Article Comments <article-comments.talk.tidbits.com>
List-ID: TidBITS | TidBITS Talk <tidbits-talk.talk.tidbits.com>
List-ID: TidBITS | Site Feedback <site-feedback.talk.tidbits.com>

Posts: 2

Participants: 2

Read full topic

Certain verification pages do not respect the selected theme

$
0
0

@Maisy wrote:

As part of our brand, we are heavily redesigning a development install of Discourse ready for when we migrate over our existing forums.

During development and testing, I have picked up on a few cases where the forum temporarily reverts to the default (white) theme.

Steps to Reproduce
Whilst the Default theme has been disabled and a custom theme has been set…

  • Sign up
  • Await confirmation email - click link in email
  • Navigate to /u/activate-account/
  • “Click here to activate your acccount”

After clicking to activate your account, the subsequent “you have activated your account” page displays the default white theme until you click through or are re-directed to the forum index.

A similar behavior is also exhibited when I go to assign a new administrator and click on the verification link that is sent via email - on completion, a white page is shown, as below:

The latter isn’t a huge issue, as Administrators will be the only people to see this page, but it probably shouldn’t be happening when regular users go to verify their accounts.

Hopefully I’m just being silly and I’ve missed some small detail, but just in case I’m not being silly, I figured I would raise it here.

Posts: 2

Participants: 2

Read full topic


Specific Censored/Blocked words are not being restricted properly

$
0
0

@Niko_Taitano wrote:

The following words have been added to the Censor list, but aren’t being censored when posted in a topic:

  • $4$
  • @$$

The following word has been added to the Block list, but is allowed to be posted in a topic:

  • P.R.

Posts: 3

Participants: 2

Read full topic

Link rewrites not working

$
0
0

@tkrunning wrote:

There’s something funky going on with my Discourse setup. Neither the track external right clicks setting, nor the official affiliate plugin is rewriting links on my forum. And yes, I’ve rebaked all posts.

I’m running v2.0.0.beta7 +111, but I think this issue has been present for a while.

Any idea what is going on or how I can start debugging the issue?

Posts: 4

Participants: 3

Read full topic

Groups page: username filter and "add user" confused, too close together for owners

$
0
0

@tobiaseigen wrote:

I watched the owner of a group on my site as he navigated the group owner functionality on /groups/groupname, and he was confused. There’s a “username” input field right next to a big “+ Add new member” button. He (and I) thought that the way to add users to the group was to type their username into the input field and hit the add new member button. In actual fact, that’s a filter, and to add new members you just hit the button to display a modal popup to then find and add usernames to the group.

Note that this is different to how it looks for me as admin - I have the addiitional option to “bulk add to group” so there’s a pulldown.

Two ways this might be fixed

  • move the input field a bit farther away from the button so they don’t seem linked (also applies to what I see as admin)
  • change “username or email” to “filter by username or email”

Posts: 3

Participants: 3

Read full topic

Migration scenarios, when installing on an existing community/ domain.?

$
0
0

@Queth wrote:

hello,

I have fallen in love with discourse as my new community solution.

Before installing, and getting ahead of myself, I need to know what is possible concerning migration.

current situation:

I have an existing community, i have a 3 instances of PHPBB 2 (french, dutch, english users). 3 databases, biggest is 800mb. 30k users.

current forum is set up under forum.mysite.com and mysite.com/forum

my site also has some static HTML content.

hosted on VPS (apache, cpanel and such)

to be situation:

  • 1 instance of discourse serving all languages. all current language forums imported in discourse in separate archives.

  • keeping the same domain.

How can I do this with as little downtime as possible and keeping the same URL for the forum? Is it possible to import 3 databases into 1 forum?

what are possible scenarios?

I will host discourse myself as I have no budget for the hosted version. and that means i will probably need to move to digitalocean as well?

basically i need to know what the smartest way is to approach this.

thank you in advance for any help !

Posts: 5

Participants: 4

Read full topic

Uploads / Trust levels / User Notifications

$
0
0

@RobMeade wrote:

Just a quick question…

Is there any message that appears if an upload fails, or, if it fails because of a specific reason?

The reason I ask is that I have a user who is trying to upload a short video clip. They appear to be a new-ish user, they have only been a member for a couple of months and have not yet acquired “regular”. But their video upload seems to fail. I wondered if this could be because of any permission/trust reasons, and if so, would they not be shown a message that advises them?

Any info/thoughts would be appreciated.

Posts: 5

Participants: 2

Read full topic

Viewing all 60707 articles
Browse latest View live




Latest Images