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

Invalid Format: SyntaxError: Expected "{" but "d" found

$
0
0

@bonesoul wrote:

my discourse installation shows these on my view topic pages within the suggested topics section.

any ideas?

Posts: 8

Participants: 4

Read full topic


Timeline z-index

$
0
0

@kgish wrote:

I've developed an annotator plugin which floats above selected text.

One problem I noticed is that the timeline and the top banner will remain above the the plugin popup thus obscuring it.

Tried increasing the z-index above that of the timeline but this doesn't seem to be enough.

Any ideas what I may be doing wrong?

Posts: 7

Participants: 4

Read full topic

Super-features that only Discourse does have

$
0
0

@meglio wrote:

Dear team and members, I suggest that we collect the list of things that only Discourse can do, and no other discussion platform.

Making the next post a wiki so that everyone can edit.

In replies below, you may add your comments about how unique some particular feature is, and whether it is achievable in the other software at all with using existing free, open-source or paid solutions.

Posts: 2

Participants: 1

Read full topic

Amazon s3 uploads not working?

$
0
0

@bonesoul wrote:

i have setup s3 uploads as described here: http://learndiscourse.org/setting-up-file-and-image-uploads-to-s3/

the thing is that i've also setup amazon s3 backup support for my discourse and it works.

but normal image uploads are not working, when i try to upload an image within a topic, it just uploads to plain server but not s3.

After this changes, should i run ./launcher rebuild app ?

i'm running the latest build: v1.7.0.beta5 +37

Posts: 3

Participants: 1

Read full topic

Any way to make one users account activity private to non-registered users?

Problem in upload file into the assets for site design

$
0
0

@Pad_Pors wrote:

we uploaded the font-file into the assets for site design. and for some reason the upload is broken and the font is not loading in the site.

I want to re-upload the file, but whatever I do it go to the same directory as before.

as you see the new uploads got uploaded on amazon-s3 , but when i upload the font file, it only got uploaded on the same address as before.

I tried re-naming the file or uploading it on different topics, but no trick has worked.

should it work like this?

is there a way to upload the font rather than rebuilding the app?

Posts: 1

Participants: 1

Read full topic

Group message cannot be archived

$
0
0

@carlokok wrote:

When a group message is in 2 groups, and 1 group archives it, it's still shows in the other group, but it can't be archived in the secondary group.

Posts: 1

Participants: 1

Read full topic

Needing a developer for multiple features

$
0
0

@shaz wrote:

What would you like done? Multiple Jobs, few can be seen below and I don't expect them to be a bundled up price.
- Virtual Currency plugin
- Design updates
- User stats under avatar
- Some others that I'll share.

When do you need it done?
- Would like to release a feature per week

What is your budget, in $ USD that you can offer for this task?
- I'm not sure how much these things cost as I'm new to discourse. I am a paying member of discourse so I'm not hosting the platform elsewhere.

Posts: 1

Participants: 1

Read full topic


How to make a hashed tag clickable in posts?

Change the subject of the Daily Mailing List Mode Summary email?

$
0
0

@lkramer wrote:

Hello all,

I know how to change the subject of the emails when you are set to get every email in mailing list mode.

But how about changing the subject if you set yourself to get just a daily summary in mailing list mode.?

Thx!

Posts: 1

Participants: 1

Read full topic

Badge progress bar - a not-so-complicated idea about "my upcoming badges"

$
0
0

@meglio wrote:

So, if badges mostly "count" something, we can add progress bars to badges :heart_eyes: !!

This will act as another kind of motivation: when you look at the badge list, and you see that tiny progress bar under each unreached (yet) badge that is getting increased day by day while you push yourself to the limits to gain at least one more of those :joy:

In the personal badges list:

The same works for the global badges list.

For the badges which can only be gained once, some helper text should be shown instead, i.e. "This badge can be granted once only".

Implementation

A badge creator will optionally return one more column from the SQL query indicating percentage of the badge completeness, for example: percent_completed.

From there it should be doable to use the number to build progress bars when applicable.

If any badge is "coming soon" (i.e. has reached 90%+), we can also show some sign of excitement on top of the user profile menu avatar in the top right corner.

Examples

For a "received 10 likes badge", the percentage can be calculated pretty easily - we have the number of likes received, and we know that 10 likes is 100%. Work out the proportion and you get the percentage.

Things get a bit more complicated when it comes to multiple criteria used in a badge. For example:

  • topic received 10 likes
  • has at least 20 posts
  • has been there for 14 days

In this case, it is up to the badge creator to implement the calculation strategy. The simplest way though would be to just add all things together:

10 likes + 20 posts + 14 days = 44 points = 100%

Then you have the current state for a topic:

5 likes + 10 posts + 7 day = 22 points
= 50% completeness.

Still pretty easy to calculate.


I'd like to find out if anyone likes the idea? :hushed:

Personally, I think this is FUN and JOY big time!

Posts: 1

Participants: 1

Read full topic

Building new database gives blank page

$
0
0

@pfaffman wrote:

Maybe this should be #dev, but I just did

git pull upstream master
git reset --hard upstream/master
RAILS_ENV=development bundle exec rake db:drop db:create db:migrate
bundle exec rails s

and when I load my new Discourse, nothing renders. I can view source and see that lots of stuff is there, but nothing renders. I don't see anything obviously wrong in the console.

If I switch over to 1.6 and drop/create/migrate it works fine. Could some recent commit have broken this?

Posts: 2

Participants: 1

Read full topic

Multiple Forums in a Single Installation

$
0
0

@JupiterFlux wrote:

I currently run a Discourse forum, and I'd like to run a second. I'm curious, is it possible to run a second forum from the same Docker container? Preferably within the same installation of Discourse, such that it uses the same database and well, saves on setup time.

If that isn't possible, is it possible to run two Docker containers on a single server? (Understanding that the server only has just over the required 2 GB actual RAM.) That question is more just to save me money. $200 a year isn't terrible, but if I don't have to pay for two servers, it'd be nice to not.

Of course if someone comes along and answers that it is possible, I'd like a tutorial on doing so in whatever form. I do host multiple distinct websites on the server so I already have and am familiar with setting up multiple sites in nginx, so I can handle that part if need be.

(Before anyone mentions it, I understand that the RAM requirement is mostly for installation and updates because the whole container needs to be loaded into memory at once, from what I understand. Correct me if that's wrong. Everything currently on the server is small, that is, low traffic, especially compared to what I pay (in my opinion) so I'm not concerned about heavy traffic causing issues (and should it eventually do so, then I'd be more than willing to pay for an upgrade)).

Before someone comes and says "search for 'howto multisite'", I did and found lots of posts, but those all just seemed to indicate how to configure the "outside of container" web server to host one or more other sites on the same server, which I know how to do. So if someone wants to come and say the only way to do this is to run a second container, that I can set up on my own. I would prefer another site on the same container though.

Posts: 3

Participants: 2

Read full topic

Images are still too big -- how to compress further?

$
0
0

@ron_jeremy wrote:

Images that are uploaded from smartphones are commonly over 4MB in size (my max upload size is set to 5MB). I just took one of these images are dumped it into ImageOptim and the size dropped to under 800KB. I can't tell the difference when viewing the pics.

Is there any way to have something like this done on my forum automagically?

Posts: 2

Participants: 2

Read full topic

In-topic search: Is that possible to relax the minimum search character to 2?

$
0
0

@Jiaqi wrote:

Hi guys, I want to ask one question:

For in-topic search, is that possible to relax the minimum search characters allowed to 2 instead of 3? Currently I can search words with 3 characters such as "she", "who", "CEO" but not possible to search words like "to", "on", "he".

I checked some topics here to find answer, but I failed.

Do you guys know about this?

Thanks a lot :grinning:

Posts: 2

Participants: 2

Read full topic


Trim string in User Search / Admin Panel

$
0
0

@meglio wrote:

This is a tiny improvement proposal.

If you search a user by an email with no trailing spaces, it works just fine:

However, it finds nothing if a space is added:

A simple improvement would be to trim user input before carrying the search.

Trailing spaces / tabs / etc may easily be inserted when copypasting an email address from somewhere.

Posts: 1

Participants: 1

Read full topic

"Diary writer" Badge

$
0
0

@meglio wrote:

In our goat farmers forum, people love to write Diaries about anything - a long-term experiment, travelling experience, their new hobby etc.

So we developed a "Dairy writer" badge that works as follows:

  • granted to topics with a 'diary' tag only
  • the topic must contain at least 3000 words
  • the topic must have received at least 50 likes (counting all messages)
  • the topic must have been viewed at least 300 times (this I recommend to tune depending on your community activity)
  • the author must have been posting to the topic for at least 15 days
  • at least 3 users with truest level 2 or higher must have posted to the topic (topic author excepted)

Badge SQL

WITH

/* SELECTS ONLY TOPIC IDs WITH A "DIARY" TAG */

diary_page_ids AS (
    SELECT topic_id
    FROM topic_tags
    WHERE tag_id = (
        SELECT id as tag_id FROM tags WHERE name = 'diary'
    )
),


/* SELECTS HOW MANY DAYS THE TOPIC AUTHOR
   HAS BEEN POSTING IN A TOPIC */

days_author_posted_in_their_topic AS (
    SELECT t.id as topic_id,
        COUNT (DISTINCT p.created_at::date) as num_days
    FROM topics t
    LEFT JOIN posts p ON p.topic_id = t.id
    WHERE p.user_id = t.user_id /* author's posts only */
    GROUP BY t.id
),


/* SELECTS HOW MANY USERS L2 POSTED IN A TOPIC,
   TOPIC AUTHOR EXCEPTED */

num_participants_L2 AS (
    SELECT t.id as topic_id,
        COUNT (DISTINCT p.user_id) as num
    FROM topics t
    LEFT JOIN posts p ON p.topic_id = t.id
    LEFT JOIN users u ON p.user_id = u.id
    WHERE p.user_id != t.user_id /* author's posts excepted */
        AND u.trust_level >= 2
    GROUP BY t.id
)

SELECT
    t.id         as topic_id,
    u.id         as user_id,
    CURRENT_DATE as granted_at,

    /* FOR INFORMATION ONLY, NOT USED BY THE BADGE SYSTEM */
    days_posted.num_days as days_author_posted,
    num_participants_L2.num as L2_participants,
    t.views as views,
    t.like_count as likes,
    t.word_count as word_count

FROM      topics t
LEFT JOIN users u
    ON u.id = t.user_id
LEFT JOIN days_author_posted_in_their_topic days_posted
    ON days_posted.topic_id = t.id
LEFT JOIN num_participants_L2
    ON num_participants_L2.topic_id = t.id

WHERE
    /* TOPIC CLAUSES */
        t.archived = false
    AND t.closed = false
    AND t.visible = true
    AND t.deleted_at IS NULL
    AND t.word_count >= 3000
    AND t.views >= 300
    AND t.like_count >= 50
    AND t.archetype = 'regular'

    /* USER CLAUSES */
    AND u.blocked = false
    AND u.staged = false
    AND u.active = true

    /* TOPIC IS A DIARY */
    AND t.id IN (SELECT * FROM diary_page_ids)

    /* THE TOPIC's AUTHOR HAS BEEN POSTING TO THE TOPIC 15+ DAYS */
    AND days_posted.num_days >= 15

    /* AT LEAST 3 USERS L2 POSTED EXCEPT THE AUTHOR */
    AND num_participants_L2.num >= 3

Tuning the SQL query

  • Change 'diary' to the actual name of your tag attached to all diary topics
  • Change the following numbers to what you need:
    • AND days_posted.num_days >= 15
    • AND t.word_count >= 3000
    • AND t.views >= 300
    • AND t.like_count >= 50
    • AND num_participants_L2.num >= 3

Posts: 1

Participants: 1

Read full topic

Suppress tags in filter list

$
0
0

@Pad_Pors wrote:

when one is in a category, it would be good if the tags in the filter list reduce to those that are used in that category.

currently I can see tags that are not used at all in the topics of that category in the tag filter.

Posts: 1

Participants: 1

Read full topic

How to make discourse only reachable from two IP adresses?

$
0
0

@codmakr wrote:

Hi Folks,

i try to make my discourse instance only reachable from two different IP adresses.
First i was thinking that should be possible with ufw (im on ubuntu). But the rules take no effect.

Does anyone know how i can do that?

Posts: 5

Participants: 3

Read full topic

Bulk generate forgotten password links

$
0
0

@jamesmarkcook wrote:

I have a situation where I transferred to a new forum, but communication on my part wasn't great and a lot of my members didn't realise they'd still have accounts at the new website.

All they had to do was reset their passwords, but I have 200 accounts where they didn't know or didn't bother doing this. Essentially I lost 200 members overnight.

I'm now sending out an email campaign targeting these members asking them to come back to the forum. What would be really nice is if I could include the forgotten password link in the email I send them, rather than making them jump through hoops to get to it.

My audience are generally in the 45-65 age range, so what may seem simple for some of us isn't necessarily simple for them and they may just not bother. Basically I want to make it super simple for them to get back on the forum.

Is there any way to bulk generate those forgotten password links that I can then include in my email campaign?

Thanks a bunch! :banana:

Posts: 8

Participants: 3

Read full topic

Viewing all 60678 articles
Browse latest View live




Latest Images