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:
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.
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. )
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
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.
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?
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.
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?
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.
My board is telling me that my pimped-up discobot is a suspect user. Of course it shouldn’t be
It’s a relief though to know that staff can become suspect. I’m not sure how to report this bug expect by showing it.
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
my forum link is - http://forum.buzzbasement.com
But when i searched google with my company name “BuzzBasement” , I found that another URL is targeted to my forum and in top 10 results.
URL - BuzzBasement : Community
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;
}
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
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.
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?
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.
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?
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.)