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

Site goes blank if you override translation for js.groups.index.title

$
0
0

@Lutz wrote:

The german translation of the menu entry was missing for the new groups directory. I changed the text for "js.groups.index.title" from "Groups" to "Gruppen" in the admin panel. After that, my page was just a blank white page. I solved the problem by deleting the row in the translation_overrides table and restarting the app.

Changing enable_group_directory from true to false does not hide the menu item. If you click on the menu item after deactivating the group directory, an error message appears.

Uncaught TypeError: Cannot create property 'title' on string 'Gruppen' Url: https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js Line

TypeError: Cannot create property 'title' on string 'Gruppen'
    at https://forum.mydomain.com/assets/application-6a15d48d4a3953d8f99e1334a510eb044b493a93411cd6e48c2f985894235425.js:42:3468
    at Array.forEach (native)
    at Object.initialize (https://forum.mydomain.com/assets/application-6a15d48d4a3953d8f99e1334a510eb044b493a93411cd6e48c2f985894235425.js:42:3145)
    at Object.test.n.initialize (https://forum.mydomain.com/assets/application-6a15d48d4a3953d8f99e1334a510eb044b493a93411cd6e48c2f985894235425.js:1:20924)
    at https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:28944
    at e.each (https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:13681)
    at e.topsort (https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:13176)
    at e.topsort (https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:12584)
    at i._runInitializer (https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:29123)
    at i.runInstanceInitializers (https://forum.mydomain.com/assets/ember_jquery-60dedd1dca1d8b8ce48b6d0087db3b96f3149b9b5af2d0c7c6357967d29031fb.js:4:28889)

Posts: 2

Participants: 2

Read full topic


1.7.0.beta10: Customized Templates broken?

$
0
0

@kstaikov wrote:

The method outlined here does not seem to work any longer. My customizations on components/directory-item and users don't register any longer after the upgrade...

Posts: 2

Participants: 2

Read full topic

Write Javascript in .hbs fils

$
0
0

@Alavi1412 wrote:

Hi.I have writen a plugin and my plugin is working with an outlet.
in my connector (.hbs folder) I have accessed the username I want by typing {{username}}.

<script type="text/javascript">
	var temp = Handlebars.compile('{{username}}');
	var username = temp({});
	var likes;
	Handlebars.registerPartial('username', '{{username}}');
 	$.getJSON("http://localhost:3000/users/"+ username +"/summary.json", function (data) {
 		likes = data.summary.likes_received;
  	});
 </script>

when I alert likes variable it works well but now I want to show it on outlet.how can I do it(I don't know anything about emberJS)

Posts: 1

Participants: 1

Read full topic

Topics lost after install+restore

$
0
0

@Silvanus wrote:

After clean install and backup restore, I tried to split a topic. I got message that I didn't have rights to see that, and after that the topic was lost. Can't find it anymore. At least one other topic is also lost. I wonder how can I find the list topics?

Posts: 3

Participants: 1

Read full topic

All stylesheets not loading properly on vagrant dev environment

How to add helper for connector?

Add translation to a plugin

$
0
0

@Pad_Pors wrote:

  1. go to the github repository of the plugin, e. g. discourse-canned-replies.

  2. go to /config/locales folder of the plugin. you should see some yml files, like client.en.yml and server.en.yml.

  3. the client file is for the text parts in client side and is more important to be translated. texts in server file are only shown to admins.

  4. open the English yml file, as we want to first translate this file.

  5. press create new file button.

  6. copy the text in client.en.yml into the new file.

  7. change the first line from en to the proper locale name in discourse. e.g. I want to translate it to Persian, the correct locale name would be fa_IR.

  8. now translate the strings between quotations " to your preferred language.

  9. save the file into another file named client.fa.yml, if you're translating it into German the name would be something like this client.de.yml.

  10. fill out the information for the file like: Persian translation of client.en.yml.

  11. then you should add a pull request, and wait for the plugin owner to accept it.

BTW, there are other topics which show the way for this, but as I didn't find it in howto just added my own experience:

Posts: 1

Participants: 1

Read full topic

Finnish pluralization error in logs

$
0
0

@Silvanus wrote:

From my logs:

I18n::InvalidPluralizationData (translation data {:one=>"Tuoreimmat (1)"} can not be used with :count => 0)
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/i18n-0.7.0/lib/i18n/backend/pluralization.rb:35:in `pluralize'

Is this a problem?

Finnish locale. @rizka or @ljpp, have you had this error?

Posts: 5

Participants: 3

Read full topic


Staff Now a Banner posts

$
0
0

@Mittineague wrote:

Not a big deal, only that I'm curious if it's an oversight, intentional, or more work than it's worth doing anything about.

While doing tests involving posts read counts I noticed that a lot of actions are small actions. eg.

Closed, Opened, Pinned, Pinned Globally, Unpinned, Archived, Unarchived, Unlisted, Listed, display more compacted and have

<div id="post_2" class="small-action onscreen-post clearfix" style="">

while "now a banner" and "no longer a banner" posts display as a full sized post.

<div class="topic-post clearfix moderator">

True, such posts can be deleted to make them less obtrusive. Just curious that's all.

Posts: 2

Participants: 2

Read full topic

Seeking an Idiot's Guide to Setting a Responsive Image In Banner Topic

$
0
0

@SouperC wrote:

I'd like to change our banner topic to an image that's a bit more engaging. I've scoured around, but as of yet I've been unable to figure out how exactly to do this. I assume it has to be in CSS (Because merely inserting an image into the banner topic is not responsive)

I'm not sure where to go from there?
Also, I'd love to hear a couple of recommendations on the banner dimensions\pixel ratio.

Posts: 2

Participants: 2

Read full topic

How to add translation in handlebars

$
0
0

@Alavi1412 wrote:

How can I add a label in my handlebars in connector with multiple language.
I have : {{i18n 'score.lable'}} in my handlebar and I have in myplugin/config/locales/client.en.yml this code:
en:
score:
lable: "Your reputation:"

but the result is :
[en.score.lable]

Posts: 4

Participants: 2

Read full topic

Reputation Plugin

$
0
0

@Alavi1412 wrote:

REPUTATION PLUGIN
this plugin shows a reputation for each user in user's card:

For now this is showing just the reecived like but I will improve the rules for giving reputation and make some more complex algorithm than counting just received likes for reputation
This is my first plugin for discourse and this is the 0.1 version of this pluing and I hope I can develope this plugin with your helps.

Posts: 4

Participants: 3

Read full topic

How to Set The GC to optimize Migration?

$
0
0

@enigmaty wrote:

I am currently migrate a forum (vb4). I want to edit garbage collector to be optimize for migration. Any idea?

Thanks.

Posts: 1

Participants: 1

Read full topic

My plugin doesn't work after updating discourse

$
0
0

@Alavi1412 wrote:

I have this plugin and this plugin was working for me like this:

after updating my discourse my plugin show like this:

I have added name and other fields shown in second picture to my card before updating and it worked well and this problem happened exactly after updating my discourse.

(-1 shown in card means that my ajax code in helpers doen't work)

Posts: 1

Participants: 1

Read full topic

Missing translate "enable group directory"


How can I get an user's properities via javascript?

$
0
0

@Alavi1412 wrote:

I know getting the current user's properities can be done by typing :
Discourse.User.currentProp(the properity);
but what should I do if I want to get the data from a user that he is NOT the current user?
Is there any function that give the username and the properity and returns the result I want?

Posts: 1

Participants: 1

Read full topic

Ability to edit groups (or click Edit Group button) even if you are not logged in?

$
0
0

@Trash wrote:

I was reading this topic https://meta.discourse.org/t/improving-the-groups-page-for-1-7/53347 and visiting this forum https://se23.life/ to see "auto-join" in action when I realized that I can see (and click) the "Edit Groups" button (change text, flair, delete/add users etc...) even if I'm not logged in.

It seems very strange for a user not registered, note that I have not tried to edit anything, I would probably give me an error or permission denied.

Ping to @ChrisBeach for more tests.

Posts: 5

Participants: 4

Read full topic

Default categories/topics in English despite German as default language in setup wizard

$
0
0

@claas wrote:

These days, I have setup(*) a Discourse instance in German for a relative and her non-English-speaking community. Even though I chose German as default language in the new setup wizard, the default categories and topics have been created in English (despite having an existing translation, as far as I can see):

Did I miss any step? It would help if there was a way to recreate the default content (if unchanged).

(*) = which worked pretty well using this guide in less than 30min on a [Hetzner vServer CX10](https://www.hetzner.de/hosting/produktevserver/cx10) (I used to prefer STRATO V-Server Linux V20, but they don't seem to support Docker/AUFS)_

Posts: 3

Participants: 2

Read full topic

Invitation Acceptance Notification breaks if invited user changed username

$
0
0

@claas wrote:

In a new private (i.e. invite-only) Discourse instance, I invited the first person who, after following the link, changed the username of her (automatically created) account from "janedoe" (the prefix of her email address, as in janedoe@example.com) to "jane".

I got a notification that stated "janedoe accepted your invitation", but opening it yields a Oops! That page doesn’t exist or is private., because it still links to /users/janedoe.

  1. This looks like a bug.
  2. Are there any plans to let users choose a username in the first place or don't let them choose but rather create it automatically from their full name?
  3. What happens if user "jane" (jane@example.com) exists already and another jane (jane@doe.com) tries to sign-up with an invite?

Posts: 1

Participants: 1

Read full topic

[PAID] Migrate VBulletin > Discourse

$
0
0

@planted wrote:

I am needing expert assistance in moving a forum from VBulletin 3.8 to Discourse.

What would you like done?

The scope of the job would be:
- Install Discourse on Digital Ocean Droplet
- Migrate VBulltin forum w/ 65k Users + 10k posts + 80k replies
- Assist with advice on best practices (a few hours of tutorial on the architecture, development practices and customization)

When do you need it done?

Would love some assistance this week otherwise asap.

What is your budget, in $ USD that you can offer for this task?
$250 or give me a quote.

Thanks, appreciate your time.

Posts: 1

Participants: 1

Read full topic

Viewing all 60642 articles
Browse latest View live




Latest Images