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

Enabling CORS on DigitalOcean / Docker install

$
0
0

Patrick Walters wrote:

I'm sure there is something I am missing but I have a DigitalOcean install of Discourse and I am hosting it from a subdomain of my site (forums.mysite.com) and from my main site I want to pull in the comments.

So I make a call to my Discourse installation -

http://forums.mysite.com/latest.json

But the problem is Modern CORS Supported browsers throw no ALLOW-ACCESS-CONTROL-ORIGIN header error. I went in to /var/docker/containers and edited the app.yml file and added

DISCOURSE_ENABLE_CORS: true
DISCOURSE_CORS_ORIGIN: '*'

As per this post - https://meta.discourse.org/t/how-to-enable-cross-origin-resource-sharing-with-docker/15413

But when I do

./launcher stop app
./launcher bootstrap app
./launcher start app

And make the call again I don't get the response headers. How can I check whether Discourse was bootstrapped with the new properties properly? Do I need to change some other configuration to allow my main domain mysite.com to get the OPTIONS to return with the proper headers?

Thanks in advance if anyone can help with this.

Posts: 3

Participants: 3

Read full topic


How to set up a forum - guidance and instruction

$
0
0

Jake Speed wrote:

Dear all,

Not sure where to start, here. I've been tasked with setting up a forum, but seem to have very scant information on where to start. Does anyone happen to know if there is a 'how to' site or section of pages whereby those new to this site admin business can learn how to structure pages and set-up a forum with folders, add new users, set up topic areas, etc?

Any help from a users / admin perspective would be very much appreciated.

Regards,

Jake

Posts: 11

Participants: 4

Read full topic

Back Button doesn't work after Leaving Group Pages

$
0
0

cpradio wrote:

When you visit a group page, then click on a member profile, you can't use the back button to get back to the Group Page. It does work if you go to a post, you can use the back button to get back to the group page, you just can't do it after clicking on a member to visit their profile.

Steps to Repo:
Visit a Group Page
Click on Members
Click a Member to visit their profile
Click back button

Result:
You are left on the member's profile page

Expected Result:
You are taken back to the group page.

Posts: 2

Participants: 2

Read full topic

Onebox doesn't render properly

$
0
0

Arpit Jalan wrote:

Sometimes when I visit the post from user activity page, the onebox doesn't render properly:

It doesn't have the expand/collapse and go to the quoted post glyph. It has happened before for me.

[I noted that it only happens when I visit the post from user activity page]

Posts: 1

Participants: 1

Read full topic

Down-Voting leads to vicious circle of negative feedback?

Nginx as a proxy on top of Discourse Docker container

$
0
0

John Arce wrote:

I'm using discourse at http://webgeek.ph (previous wordpress)

So now I want to preserve some of my previous pages from wordpress and create some html pages on discourse.(example: webgeek.ph/about.html) and rewrite .html to webgeek.ph/about

Is it possible to setup an nginx config to proxy my discourse install?

Can anyone help me write an nginx configuration for this? I've been trying this for a week and still no luck.

Posts: 4

Participants: 3

Read full topic

Two-way sync GitHub issue tracker - As seen on issuepress.co

$
0
0

Erlend Sogge Heggen wrote:

Continuing the discussion from What is the most awesome plugin for Discourse, that does not yet exist?:

Also see:

There is now a real world example of two-way sync integration between GitHub issues and a more user friendly platform, in this case WordPress.

The app:
http://issuepress.co/

How it works:
http://issuepress.co/docs/issuepress-works/

Now I'm not sure if two-way sync is necessary or even wise, but I'm looking forward to seeing it in action. For Discourse, it probably makes more sense to just let the bug posts posts roll in, and then graduate those to GitHub when appropriate, at which point the Discourse thread could be closed and a one-way mirror from GH would be activated.

Posts: 3

Participants: 2

Read full topic

Mobile detecting loop, Onebox 404

$
0
0

Rafael_Pereira wrote:

Hi guys,

Today I ran in some very weird bugs:

  • For some reason in Chrome, mobile version of the website is being loaded (the css is mobile) and if I remove the option to have a mobile site in admin it enters in a forever loop if I try to reload the page. It only happens in Chrome, my Safari loads it right. Firefox too.
  • Onebox isn't working at all. It gives me straight 404 errors with anything (it doesn't even try as I can see them running in the javascript console).

I'm with the latest version running in a Linode VPS. If needed I can give you a full description of my machine. Is there anything else I can provide? Thanks in advance!

PS - Website is in test running at http://nham.co
PS2 - I'm in Macbook Pro Retina 15" OSX 10.9.2, latest version browsers
PS3 - If I run in incognito window it works ok! I don't have any extension installed. If I remove my cookies and reload it shows the right site then after 1 second automatically changes the url to a param ?mobile_view=1 and goes back to mobile version confused

Posts: 4

Participants: 2

Read full topic


Sizing images and cloudinary support

$
0
0

Justin Gordon wrote:

It's awesome that we can drag & drop images. @codinghorror, Any thoughts on these ideas?

  1. If you make your images big, that's great because you can click and expand. However, what if you want to have a post with 15 2048x2048 images. That could be a bit slow to load.

  2. If you want to upload from an iPhone 5, it requires too much extra work to resize the image on the phone.

  3. Ideally, when uploading images, an optimized smaller size would be created for the topic/post view, and clicking an image would bring up a slide show view of the appropriate size.

It seems like we might be able to use cloudinary.com, or maybe integrate image magic:

https://github.com/rmagick/rmagick

Has anybody looked into integrating either of these?

Posts: 5

Participants: 3

Read full topic

Is it possible to grant posts and users generic likes?

$
0
0

Erlend Sogge Heggen wrote:

A key feature of our current forum is upvotes. However I'm not so sure we'll be able to migrate upvotes to likes with their respective threads and users still correctly wired together.

Method 1:

Is it possible to programmatically set a generic like-count on a topic, for which none of the likes are attached to a (real) user?

Method 2:

If not the above, is it possible to programmatically set a generic like-count for individual users? So on a forum with 2 users and 2 posts one of those users could be set to have the impossible count of 100 likes.

Posts: 3

Participants: 2

Read full topic

User-awarded badges and more

$
0
0

Ronteras wrote:

Tried to find the similar topic, but failed smiley.

While badges feature is on its way with all great stuff, what about having the some badges category, (restricted by certain categories or not) that can be awarded by the users?

Imagine the category "Custom ROM" or "SSD" or whatever, that involves lots of Q&A and support on some forums. There always will be active users that love to help others. They always are there and besides the automatic or admin given badges there will be also badges that are given by users as a thank you. All users will have "grant that badge" icon either below their post or under the profile and after getting "random number" badges from users, he/she will be automatically awarded with "Android ROM God" or whatever, predefined by moderation/administration.

Alternatively:

If user generates certain amount of likes in particular category - gets particular badge designed for that category.

Maybe this one is on your list, haven't checked yet.

Posts: 3

Participants: 3

Read full topic

Users names are no longer displayed on posts

$
0
0

Michael Downey wrote:

It's been several days since I updated, and when I did so (just now) I notice that our users' names are no longer appearing on posts. Just the user ID and title, if any.

The display name on posts set setting is in fact enabled.

Posts: 4

Participants: 3

Read full topic

Emoji user preferences

$
0
0

Patrick Klug wrote:

I would love if every application that uses Emoji (but discourse in particular) would follow Slack's example to allow user-based preferences:

Especially the last setting 'Convert my emoticons to emoji' is brilliant.
Personally I much prefer writing (and seeing) :D instead of smiley

Posts: 3

Participants: 2

Read full topic

More than 3000 commits in a few days? Wow... :)

Docker manager doesn't handle upgrade failures well

$
0
0

Dan Porter wrote:

Continuing the discussion from Unable to upgrade using Docker after rake task improvements:

A fix has been pushed to Github for this previous issue, but the manager is still acting up after an upgrade fail. I cannot apply the latest updates as the button is now greyed out.

(Note that I will probably be able to rebuild the image file now using ./launcher rebuild app, but this is to point out that docker manager exhibits weird unintended behaviour when it fails to upgrade.)

Posts: 8

Participants: 2

Read full topic


Naming the subdomain Discourse runs on?

$
0
0

Ernest Lee wrote:

What does this forum think about naming your subdomains?

I can think of several and would like your thoughts. Got any suggestions?

Example:

  • talk.example.com
  • forum.example.com
  • bbs.example.com
  • chat.example.com
  • community.example.com

Posts: 6

Participants: 6

Read full topic

Help me to merge old transladed file and new one

$
0
0

Admir Hodzic wrote:

Once upon I have translated client.yml and server files.
That was in early versions of Discourse. Unfortunately I did never have enough knowledge to git put that files to SVN.
Today discourse translation is Transifex and I did joined translation team for Bosnian language.

Now when I download for_translation_discourse-org_clientenyml_bs_BA I have headache to merge my old translated file to new One I did try whit COmpare plugin using NotePad++ but my old client file have 1364 lines.

Is there an easy way to I my old translated file (client.yml and server.yml) apply to actual ones which is current. So we can continue with translation

Posts: 4

Participants: 2

Read full topic

OpenID login to meta?

$
0
0

Bulb wrote:

I thought @codinghorror was big proponent of OpenID. And apparently Discourse does support OpenID. So I am wondering, why couldn't I create account using my (arbitrary) OpenID URL?

I also tried to log in with GitHub and it didn't seem to work. Anyway, that wasn't my preferred way of logging in.

Posts: 2

Participants: 2

Read full topic

Improving scrollbar in infinite scroll

$
0
0

Bulb wrote:

Reading the rants about infinite scrolling over at The Daily WTF I thought that perhaps the (native browser) scrollbar could be improved to (at least mostly) work as expected.

The idea would be to insert empty placeholders of approximately the right size into the page, so the scrollbar would see about the right amount of content.

To estimate how the placeholder should be sized, I'd suggest:

  • First, read size of all loaded post boxes and all loaded text boxes within the posts.
  • Divide the size of the text boxes by number of characters in them to get height per character.
  • Divide the difference between posts size and text size by number of loaded posts to get additional height by post.
  • Multiply by appropriate metrics of not loaded posts before and after.
  • Style empty divs with calculated padding.
  • Recalculate when more posts are loaded.

There should probably be some limit on the size as the scrollbar would likely become unusable on page with thousands of posts. There should however still be some padding on such page to indicate there is non-trivial amount of further content.

Posts: 3

Participants: 3

Read full topic

Plugin System Upgrades

$
0
0

Robin Ward wrote:

I've been working quite a bit recently on upgrading Discourse's plugin architecture to allow for more complex plugins such as tagger without all the megahacks that were there before.

I've still got a bunch to do but I figured I'd throw out some ideas here and see what plugin authors and the dev team think of them.


Problem: Inserting Content into Templates

Currently, in a plugin if you define a handlebars template with the same name as one in discourse, it will overwrite it. This is okay if the template is simple, but if you just want to add some information to an existing template it is quite onerous.

Potential Solution: Plugin Outlets

In my pluginnew branch, I have added support for the following.
In the main discourse codebase, we can identify points where we will allow templates to be injected into ours.

This can be done as simply as {{plugin-outlet "composer-open"}}, where composer-open is a string that identifies the extension point for the plugin.

Then, in a plugin, if you create a connector, which is a template that will be inserted at that plugin-outlet. You identify a connector by putting it in a directory called connectors/composer-open or whatever the name of the plugin-outlet was. So for the tagger work I'm doing, I called the file connectors/composer-open/tags.js.handlebars and put in the tag specific handlebars to be inserted into the composer when it's open.

Another advantage to this is that multiple plugins can insert templates into the same outlet. It will just append them sequentially.


Problem: Explicitly Declaring all your javascript files is annoying

Right now you have to make a call to register_asset for every javascript file you include. This is tedious, and annoying if you ever rename or move a file.

Potential Solution: Automatically include every javascript file

I am afraid that if I include this it might break some plugins, so for now I have restricted it to .es6 files only as they are pretty new. In the latest master if you put an .es6 file in your project, it will be included automatically. I would love to hear thoughts on whether there is a good reason to NOT include all javascript by default.


Problem: How to extend classes using ES6 modules?

I am in the process of converting Discourse's javascript code base to use ES6 modules. I am currently restricting this to 30 minutes of work a day, but it's coming along and before we know it we'll be using ES6 modules for everything.

One issue with these modules is the code inside them is not executed automatically. So if you are used to calling reopen or reopenClass on something to add more functionality it will not happen.

Solution: Use an initializer

If you put a file in the initializers folder that returns an Ember initializer, it will be executed when the application starts up. Just return a plain old Javascript object with a name field and a initialize function. Do your class modifications in there and everything will work nicely!


I'd love to hear thoughts on this so let me know what you think before I merge it into master.

Posts: 2

Participants: 2

Read full topic

Viewing all 60707 articles
Browse latest View live




Latest Images