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

Is it OK to just require bbcode-to-md in importers?

$
0
0

@pfaffman wrote:

TL;DR: When I submit a PR for vbulletin.rb (I added support for assigning admins and moderators, and maybe something else), can I include code that requires ruby-bbcode-to-md so that it just works?

Painful Explanation

I’ve been running and writing importers for about a year now and this is the first time that I’ve managed to include ruby-bbcode-to-md.

When I follow these directions I get some kind of version error:

If I instead do this:

  puts "echo gem \\'ruby-bbcode-to-md\\' >> Gemfile"
  puts "bundle install"

and

@bbcode_to_md  = true
  require 'ruby-bbcode-to-md'

It works. And there’s no mention of the bbcode-to-me command line argument in vbulletin.rb, so unless someone running the script instinctively reads base.rb, they don’t have much chance of knowing about that. And the importer is pretty much broken without it.

Wait, there is this comment # convert *-tags to li-tags so bbcode-to-md can do its magic on phpBB's lists: but even then, there’s no hint how to make that happen.

Posts: 1

Participants: 1

Read full topic


Importer SiteSettings recommendations

$
0
0

@pfaffman wrote:

I’ve done several imports recently and find it helpful to include these SiteSettings:

    SiteSetting.disable_emails = true
    SiteSetting.login_required = true
    SiteSetting.allow_index_in_robots_txt=false
    SiteSetting.title = "Legacy Forum Name import"

In case it’s not clear:

  • I live in fear of uploading some uploading a demo import to someone and having Discourse send out a zillion emails.
  • I live in fear of having someone’s not-ready site show up in Google (he wasn’t very happy!)
  • Having a title makes it a tiny bit easier to guess which backup I’m looking for.

Unless someone says not to, I’m going to include these in future PRs when I make improvements to importers.

deactivate_all_users

This is along the same lines, and I’ll throw it in here rather than start another thread.

Also handy is a function to deactivate all users so that if you do want to make a site functional enough to log in but don’t want a bunch of people getting emails. (And yeah, that happened too. :frowning:)

It it OK to submit a PR with this in base.rb? That’ll keep me from adding it to every importer I touch.

  def deactivate_all_users
    User.where("active = true and admin != true").update_all(active: false)
  end

Posts: 1

Participants: 1

Read full topic

Importer support for migrated passwords

$
0
0

@pfaffman wrote:

I mostly think that importing passwords from a legacy forum is a Bad Idea. There are almost certainly a bunch of horrible passwords and it seems like making people change their password when they get a shiny new forum is a fine idea, but it seems that people want to do that anyway.

There’s a plugin that offers Migrated password hashes support. I just put that code into the vbulletin importer for some folks. Should I leave it in or take it out before I submit the PR with other useful stuff in it?

Since the passwords are completely ignored unless the plugin is installed, it doesn’t hurt much to just include the passwords, but I’d probably add a switch so that they’d not be included by default.

Posts: 2

Participants: 2

Read full topic

How to set so Discourse emails do not show origin IP

$
0
0

@Brock_Busby wrote:

Our Discourse instance is behind Cloudflare. Our email vendor is Sparkpost.
We are dyning all IPs and only allowing Cloudflare IPs so our origin IP is not exposed.
However, when you look at our emails, you can still see our origin IP.

How do we set it up so our Discourse emails do now show our origin IP?

Thanks

Posts: 3

Participants: 3

Read full topic

Change timestamp time field inaccessible in Firefox beta

$
0
0

@barryvan wrote:

On Firefox (I’m running Fx57, dev edition), the “time” field isn’t wide enough to have the hour, minute, and am/pm selector visible at once – and you can only navigate back to the hour field from the am/pm field using shifttab.

There’s also a slight misalignment between the date field and the time field – the time field is a couple of pixels lower than the date field.

Posts: 3

Participants: 2

Read full topic

Apply a new color scheme?

$
0
0

@ebhillis wrote:

Hi everyone, I’m new here and feel silly to ask, but I am struggling with something that seems like it should have a simple answer and couldn’t find it elsewhere on the forum.

I created a new color scheme in Settings > Customize > Colors, but can’t figure out how to actually apply it/make it live. Could someone help me understand how to turn this new color scheme on?

Thank you :smiley:

Posts: 3

Participants: 2

Read full topic

"Change timestamp" should use local time, not server time

$
0
0

@barryvan wrote:

The “Change timestamp” field expects the time you enter to be in server time (which is generally UTC). Everywhere else in Discourse, the front-end deals only in local times; it’d be great if this field also used local time, so that there’s no need to do mental arithmetic on times to get things working as expected. :wink:

Posts: 1

Participants: 1

Read full topic

Discobot is a Suspect User


Creating a new path (url) with static data

No video in supported format and MIME-type found

$
0
0

@GuidoD wrote:

Hi,

I am one of the administrators of the forum https://marktplatz.bewegung.jetzt
We noticed the following problem in release v1.9.0.beta10 +5 of which I am not sure if it did already exist in older releases.
At least we have not noticed it before.

In the preview when creating a new post a picture is shown


but when it is posted it does show the error, that no video with a supported format and MIME-type could be found.

here for your information the link posted: Tabu Tempolimit - 3sat.Mediathek

Is that perhaps related to this problem here?

best regards
Guido

Posts: 3

Participants: 2

Read full topic

How to add top bar?

My forum is opened with another link

Forcing access to Discourse via domain name only

$
0
0

@Carlo wrote:

Hi everyone. So I have setup Discourse and configure Cloudflare and SSL connection.
So far so good. Now I see my website is accessible via the domain name and the default ip, which I do not want.

When I use a CMS such as Wordpress or Modx ( on apache ), I normally configure the ht.access to do the trick. But Discourse is not on Apache…

Is there a way to do that with Nginx ? I am not even sure that Discourse uses it.

Anyway that is the code I would be using:

# Tells the browser to always force SSL.
# Do not use this line if there is a chance you will turn off SSL

add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";

if ($scheme != "https") {
	rewrite ^ https://discourse.mydomain.com$request_uri permanent;
}
if ($host != "discourse.mydomain.com") {
	rewrite ^ https://discourse.mydomain.com$request_uri permanent;
}

Any suggestions ?

Thanks

Posts: 1

Participants: 1

Read full topic

How to limit replies in a category

$
0
0

@daath wrote:

So I have an interesting problem that I don’t know quite how to solve.

I have a giveaway category on my forum. The problem is that some people ONLY participate in those. I have already set the requirement of the category to trust level 1 - I am hesitant to set it to trust level 2 though. I would rather solve it another way, if at all possible.

How would you attack this problem?

I thought about making a custom “internal badge” that is awarded if you have twice as many posts in other categories than in that specific category - but that wouldn’t help much, since you can’t limit replies to people with specific badges?

That is another suggestion: In security on categories, it would be cool if we could require one or more badges to enable replying there :slight_smile:

Posts: 1

Participants: 1

Read full topic

How to create an Andorid/IOS app that is an exact copy of my discourse site?

$
0
0

@nixie wrote:

Hi,

How to create an Andorid/IOS app that is an exact copy of my discourse site?

Why I’m planning to create an app that is an exact copy of my discourse site?
In the mobile version of Chrome browser, there is an option called “Add to Home Screen” and when we click that, it adds an icon in the home screen. It looks like an app to be honest. The address bar is no more there. Push notifications work too. This is because discourse by itself - is already looking like a full-fledged app. And I love this. This is when I thought why not make an android/ios app that is an exact copy of the website.

Anyone here know how this can be accomplished?
Please guide me.

Posts: 10

Participants: 4

Read full topic


Discourse double branch offices installation

$
0
0

@Julian_Somoza wrote:

Hi to everyone!

We have 2 branch offices in different cities connected by fiber optic… We have something similar to a MAN network, but sometimes the fiber link goes down and we lost the communication.

I want to install a replica of my discourse in the other branch office, this way when the fiber goes down they dont lost the access to the discourse.

Is posible make something like this? How can I manage the synchronization when the link come back?

Thanks so much in advance.

Posts: 5

Participants: 3

Read full topic

Polls - how to see order of replies

$
0
0

@krydda01 wrote:

I sometime use polls where I invite people to a gathering. There could however be a maximum number of attendees, so I’d like to see in what order they have replied, to enable me to see who answered first and therefor who can come.

Is there any way to see this or is there an attribute to make the avatars show up in the order people replied? I have tried to find an answer to this and apologies if it’s already explained elsewhere.

Posts: 4

Participants: 2

Read full topic

Display categories on Desktop and Latest Post on mobile

$
0
0

@mmiada wrote:

Hi, in my opinion categories on Desktop and Latest Post on mobile works best.

My forum is set: desktop category page style to Categories and Latest Topics.
Is any way to display latest post on mobile?

Thank you

Posts: 3

Participants: 2

Read full topic

Customizing email footers

$
0
0

@fbudin69500 wrote:

Hello,

I just installed an instance of discourse and I am trying to customize the email footer. Currently, all emails that are sent by my discourse instance have the following footer:

To unsubscribe from these emails, click here.

However, I would like to customize this text to be more explicit about what happens if you click on the given link. I found how to customize email templates from the admin page and I was able to add the text and the links that I wanted, but I haven’t found how to remove this default “unsubscibe” message. Do I have to edit the file server.LANG.yml? Or is there a way to remove or modify this default message directly from the admin page on the website?

Thanks!
Francois

Posts: 3

Participants: 2

Read full topic

How to avoid uploading attachments multiple times

$
0
0

@pfaffman wrote:

The vbulletin importer currently includes only attachments that are included in [attach] tags in the text of the message. But sometimes there are attachments not included in the text, and they don’t get imported.

I’ve fixed this with a function that after posts are processed, reads all the attachments, uploads them, replaces the [attach] codes, and if the attachment was not mentioned in the text adds a link to it at the end of the post.

The problem is how to avoid re-uploading and including them with subsequent runs of the importer. My current solution is to put <div class="vbulletin-attachments-imported"></div> at the end of the post and to check for that string before handling attachments.

It works, but is there a more elegant way? (And, I suppose if I were more clever, I’d have a solution that did this on a per-attachment rather than per-post level, but it’s hard to imagine that such a feature would ever be used.)

Posts: 1

Participants: 1

Read full topic

Viewing all 60599 articles
Browse latest View live




Latest Images