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

Using the PluginAPI in Site Customizations

0
0

@eviltrout wrote:

Using the client side Plugin API is the safest way to build Discourse Javascript plugins while respecting backwards compatibility.

However, some people have made simple customizations using the Admin > Customization > CSS/HTML and dropping some Javascript into a <script> tag. Previously, it was very difficult to use the withPluginApi to access objects using the Discourse container.

In the latest tests-passed build of Discourse I've added the ability to use the pluginAPI via a site customation.

To use it, you just need to add some attributes to a script tag in your </HEAD> customization:

<script type="text/discourse-plugin" version="0.1">
  // you can use the `api` object here!
  api.decorateCooked($elem => $elem.css({ backgroundColor: 'yellow' }));
</script>

When you save the customization, Discourse will transpile the ES2015 code within the tag so you can use the latest Javascript features. Additionally, it wraps the code in an initializer and runs it through withPluginApi so you don't have to bother with that. Just specify the version of the api object you want and Discourse will give it to you, providing safe backwards compatibility.

If the compilation of the ES2015 fails for some reason, when you view source on your page you'll see the error in a <script type='text/discourse-js-error'> block. Fix what it says and re-save your customization and you'll be good to go.

Posts: 1

Participants: 1

Read full topic


How to solve the subdomain problem?

0
0

@neo wrote:

Hello everyone,

first of all, domain of our forum is jiejiao.de or www.jiejiao.de.

hier is my problem:
after people sign up and create an account with our website, they are required to check their email and click through a verification link in order to activate it. This link however looks like: http://discourse.jiejiao.de/users/activate-account/2efe4d4XXXXXXXXXX.
once it is clicked, it will take you to the activation page which has the same URL. So you can see it always the subdomain discourse.jiejiao.de is used throughout the entire process.

my question is: how can I use my domain hier in the link instead of using the subdomain?
PS: I installed my forum on digitalocean and created a droplet named discourse.jiejiao.de. I have no clue if the droplet´s name make such a confusion. Can someone help me out?







Posts: 3

Participants: 2

Read full topic

Suggestion to change topic-subscription descriptions

0
0

@AstonJ wrote:

Currently we have:

Watching
You will be notified of every new reply in this topic, and a count of new replies will be shown.

Tracking
A count of new replies will be shown for this topic. You will be notified if someone mentions your @name or replies to you.

Normal
You will be notified if someone mentions your @name or replies to you.

Muted
You will never be notified of anything about this topic, and it will not appear in latest.

Proposed:

Subscribed
You will be notified* about every new reply in this topic, and a count of new replies will be shown.

Watching
A count of new replies will be shown for this topic. You will be notified* if someone mentions your @name or replies to you.

Normal
You will be notified* if someone mentions your @name or replies to you.

Muted
You will never be notified of anything about this topic, and it will not appear in latest.

*You will also receive email notifications unless these have been turned off in your preferences

Anyone else think this more clearly describes things?

Posts: 6

Participants: 5

Read full topic

How do you guys create those animated gifs in this forum?

0
0

@ArviChan wrote:

I like the animated gifs that some members here use to present a new plugin or discourse feature or a bug. I would like to create a few of them for my own instance as helpful tutorials to my users. Am wondering how you guys create those gifs, is it any specific screen recording software you use?

Posts: 2

Participants: 2

Read full topic

Post your Discourse T-shirt pics!

Add tags to the site.json, if tags plugin is installed and active

0
0

@meglio wrote:

Currently, site.json API does not list tags, yet it lists can_tag_topics, can_create_tag and tags_filter_regexp.

Let's add the tags list to the site.json as well.

Posts: 1

Participants: 1

Read full topic

Bundle install - Could not locate Gemfile or .bundle/ directory

Why the forums takes full of total 20Gb of disk?

0
0

@M_c_Tau wrote:

Hello
I am running just a very small with some threads. It suddenly stops working due to no free space on the Vultr VPS. I just wonder, why the disk is full. Probably someone uploaded some big files on purpose, where is the directory that the files are uploaded to?
Someone please help :frowning: I am not affordable to upgrade my Vultr plan.
Thank you

Posts: 7

Participants: 2

Read full topic


Missing translation in Github

0
0

@Manel_Vilar wrote:

Hi,

I want to use the Galician language translation that exists in the Transifex project, but it's not present in the Github repo.

In the documentation, it seems that the process is fully automated

"""After contributing translations to the Transifex project, there's
nothing more to do. The translations will be pulled into the Discourse
repo periodically."""

Should I provide a pull request where I explicitly add the language?

Thanks!

Posts: 2

Participants: 2

Read full topic

Two bugs with my Discourse instance

0
0

@V0rTeX wrote:

Hello. I'm using Discourse/w tests-passed for my forum. I have two bugs with my installation, which kinda annoy me.

1 . Admin badge is not visible on posts

I have a temporary workaround. I granted myself Moderator status and changed "This user is a moderator" text to "This user is part of the staff" and it appears, but here comes the other issue:

2 . Moderator group appears on profile.

Isn't it supposed to be hidden?

I'm not really sure what caused it. Can you help me? Thanks in advance!

Posts: 6

Participants: 2

Read full topic

Where's the admin/upgrade link when there's a new version?

Info on posts.rss

0
0

@Trash wrote:

  1. When I type http://my_site/posts.rss I see lot of "welcome" msg (the other admin change the settings on the panel admin to send it, insteed of @system) that are very annoying.

  2. A user have a private conversation with a member of our team. This user click (by mistake) on "add user" adding the other admin on this PM and in posts.rss I can see this PM now.

I don't know if this is a correct behaviour, by the way it's confusing me. I wanna read posts nor our welcome messages, but especially not private ones.

Posts: 8

Participants: 3

Read full topic

[SOLVED] NFS mount hangs - need Vagrant file for Fedora 23

0
0

@JimmyX wrote:

Vagrant downloads the virtual box file OK but "vagrant up" hangs on NFS mount. Through Virtual Box I can log into the discourse box (user/password vagrant/vagrant) and I can mount /vagrant from my laptop OK. That means NFS is working as it should and not being blocked.

So I guess that the problem is some of the NFS options in the Vagrant file. Does anyone have a working Vagrant file for Fedora 23?

Posts: 3

Participants: 1

Read full topic

Switching to stable branch at 1.5 release

0
0

@ljpp wrote:

Discourse is great. We have been tracking issues locally within our community and we have no tickets open. Kudos to the team. We have been running the 1.5 beta and tests-passed branches, as we have contributed to translation, and improved the Finnish language to a perfectly adequate level.

I am well aware how branch switching happens in practice (edit the .yml and rebuild), but I just wanted to check in if there are any best practices or something I am not aware of before making the switch back to stable?

Posts: 2

Participants: 2

Read full topic

Online User API?

0
0

@Socratic_Phoenix wrote:

So I was looking at the api documentation, and was wondering if there was a way for normal users (non-administrative), to contact the api and make postings or reply. Reason being, I wanted to create a bot that auto-posts when a certain event happens (probably a github commit), but I don't own the forum this posting would be on... Is it possible to do what I've described without administrative privilege?

Thanks for any help provided,
Socratic_Phoenix

Posts: 2

Participants: 2

Read full topic


Persisting desktop/mobile view in mobile Chrome browsers

0
0

@downey wrote:

I have both an Android phone & tablet, running the latest releases of Android/Chrome.

On the Pixel C, my standard orientation is landscape with a keyboard, so the mobile UI is not ideal. I keep trying the "request desktop version" in the browser options, but really wish that I didn't have to do this step every single time I load a Discourse site.

Is there any way to persist the mobile/desktop preferences based on a cookie or something?

Posts: 2

Participants: 2

Read full topic

Do you need an all-in-one JavaScript widget for Discourse embedding? How would you use it?

0
0

@meglio wrote:

Hi there!

So it seems everyone needs to embed data from Discourse into their websites: latest topics, top topics, recently joined users, latest posts, categories list, tags list and so on.

Good news! I'm developing a JavaScript widget - an all-in-one solution with a powerful online wizard. So that you'll choose what data you need to show, which fields to show and in which order, how to structure the data (e.g. as a table or as a list etc), how many items to show, and many more settings.

JavaScript means it will be server-agnostic and you'll be able to embed it in any CMS and any website - just like you do with Google Analytics (just insert an embed code).

The crucial part of the plugin is a live online wizard, where you would configure the widget and see how it would look like instantly.

Now the ask.
I'd like the community to help me with getting more ideas: what you want the widget to show and how to show it.

I have already started asking some Discourse users and one of my favorite ideas is keyword cloud, where keywords might be tags, category names or top user keywords in topic titles.

I believe there are many more ideas.

Any ideas welcome, even the craziest ones!

For the first version, please, just limit the ideas to what we can do with the public API (i.e. what can be viewed by anonymous visitors).

Posts: 4

Participants: 2

Read full topic

Send Password Reset / I forgot my password / Set Password not working

0
0

@wityr wrote:

I had a user send me the following email:

I have a bit of a strange problem with discourse. I just tried to log in on my phone, and seem to be getting my password wrong. I tried to do a password reset, and got an error message saying that my email address is not registered with an account.

All of my login stuff works just fine on my laptop. I have also verified that the thread summaries that I receive by email are being sent to the same address. so I know that address is registered with discourse SOMEWHERE, it just doesn't let me reset the password ...

Here are the tests I have done:

  1. While logged in to my admin account I went into the user's preferences and clicked Send Password Reset Email. Beside it appears (error). No email is sent.
  2. I impersonated the user and clicked Set Password. Again (error) appears and no email is sent. "Set Password" makes it sound like the user doesn't have a password. Is that really possible?
  3. I log out of any accounts, and click the login button on the main page. I click 'I forgot my password' and enter the user's username. Clicking Reset Password seemingly does nothing. There is no indication that anything has happened. No email is sent. I tried entering the user's email address instead. Clicking Reset Password still does nothing. I tried entering my account name, still nothing.

So it seems that no user is able to reset the password on their account. There are no emails related to the password resets in /admin/email/sent. In the logs there are a number of typeerror warnings, but the time stamps don't match when I was trying to do the password resets. There is also

Job exception: undefined method `body' for [#< SidekiqLogsterReporter:0x007fbf5c726488>]:Array

but I think that is related to this instead. Maybe not? Other emails are being sent just fine. In fact the user who reported the issue is still getting emails when someone replies to his post. When the user reported the problem we were running 1.5.0.beta12. Today I upgraded to 1.5.0.beta13b and the problem persists.

Posts: 2

Participants: 2

Read full topic

Community Hall of Shame listing in admin panel

0
0

@ljpp wrote:

Discourse lists the top performing users very nicely in the Users view.

As and administrator however, I would like to see the worst performing users: flags, deleted messages, suspensions. This would be beneficial for evaluating a users track record when considering a suspension and to find find potential candidates for eternal banishment.

Posts: 3

Participants: 3

Read full topic

"Your Discourse installation is out of date." -> ::click:: -> all "Up to date"

0
0

@markplindsay wrote:

At the top of the Admin screen, I am told Your Discourse installation is out of date. Click here to upgrade. But when I click, each item is Up to date.

Also on the Admin screen: A check for updates has not been performed lately. Ensure sidekiq is running. However, in the Processes list, I see sidekiq 4.0.1 discourse [0 of 5 busy].

What's going on here? I suspected that Discourse was running out of memory on my Linode 2048 because it was using swap. (Perhaps this is why sidekiq wasn't up?) So, I just finished upgrading it to a 4096 MB instance. Now no swap is being used, but I am still unable to upgrade.

Is this something to worry about or should I just leave it be? Thanks in advance!!

(I tried to include a second screenshot, but new users can only put one image in a post, so just trust me that my Discourse install says all upgradeable items are Up to date.)

Posts: 2

Participants: 2

Read full topic

Viewing all 60279 articles
Browse latest View live




Latest Images