When a user’s account is anonymized, what is “supposed to” happen to their posts?
Several months ago, I anonymized a user and their entire post history was hidden. A few weeks ago, I anonymized a (different) user and their post history remained visible. Is there a way to have the posts hidden? It’s thousands of posts from the one user.
I’ve been trying to use the incoming email method for posting pretty html emails into a sort of news thread on one of my Discourse forums.
I find that when the post is rendered, it strips out a bunch of images … but when I click on the little mail icon on the top right of the post and press ‘HTML’ it renders correctly.
While trying to find ready-to-use solution I’ve seen multiple questions on Internet about that and at least one topic on this forum. I also need to integrate Discourse SSO with Mantis Bug Tracker so I decide to go with more generic code that I might reuse for Mantis as well. Code is very ugly, but it’s works and might help someone.
Read the instruction and activate SSO provider in Discourse
In the past few days, I have been seeing notifications that I have previously clicked on and read go back to unread after a while (i.e. after leaving the site and later returning to it). It’s not just the notification colour in the menu, I actually get new notification count dots on my avatar.
So far, I’ve only seen it on one site where I’m a moderator, not here on meta and not on my own site. I have no idea how to bug track this, since it seems to happen randomly.
Has anyone seen anything similar or is it just some hiccup on that site?
Open the Gitter room you’d like to send notifications to
Go to room settings -> integrations and select custom (in the next Gitter release it will be possible to select discourse instead):
You will be shown an instructions page, copy the Webhook URL (beginning with https://webhooks.gitter.im/e/) located at the bottom and then hit Done.
Setup Discourse
In your site settings, enable the chat integration gitter enabled setting
Go to the Plugins tab, then Chat Integrations
Go to the Gitter tab, and click Add Channel
Enter the name of your Gitter room (e.g. gitterHQ/services)
Paste the Webhook URL that you copied earlier, then click Save Channel
Use the Test button on the channel you just created to check that everything’s working. You should see something like this in the activity feed of your Gitter room:
Copy discourse-sso.php into directory with your wiki.
Edit defines on top of file according to your need.
To create database table and test it visit https://your.wiki.domain/discourse-sso.php
You can check SSO_DB_TABLE contents from command line:
mysql -u mantisuser -pPASSWORD mantisdb -e "SELECT * FROM sso_login;"
If everything is fine you’ll see username / email and other information here.
Install MantisDiscourseSSO plugin
Plugin need to be cloned into plugins directory and installed via Mantis interface.
Edit config_inc.php
Several new options need to be added to
// Enable login through Discourse SSO plugin
$g_login_method = DISCOURSE_SSO;
// Disable signup on Mantis
$g_allow_signup = OFF;
// Disable password reset by Mantis
$g_send_reset_password = OFF;
// Must be changed since default is login_page.php and that page will redirect to Discourse SSO
$g_logout_redirect_page = 'view_all_bug_page.php';
// Users are created by SSO plugin with empty email
$g_allow_blank_email = ON;
If someone need this working with newer Mantis please post about that here and I’ll try to make it compatible with 1.3 and 2.x since it’s shouldn’t be too hard.
When a user signs up, the activation email goes to the spam folder for some reason. I am using DigitalOcean and SparkPost. Is there anything I can do to assure that emails will go to the inbox instead of the Junk folder?
/usr/local/bin/bundle:22:in `<main>'
537869 / 794647 ( 67.7%)
Failed to rebake (topic_id: 71817, post_id: 564534)
TypeError: Cannot set property 'start' of null
JavaScript at findInlineCloseTag (<anonymous>:194:28)
JavaScript at applyBBCode (<anonymous>:241:20)
JavaScript at Array.md.block.ruler.after.alt (<anonymous>:352:16)
JavaScript at ParserBlock.tokenize (<anonymous>:1249:20)
JavaScript at ParserBlock.parse (<anonymous>:1285:8)
JavaScript at Array.block (<anonymous>:4136:20)
JavaScript at Core.process (<anonymous>:1345:13)
JavaScript at MarkdownIt.parse (<anonymous>:1110:13)
JavaScript at MarkdownIt.render (<anonymous>:1130:36)
JavaScript at cook (<anonymous>:357:32)
Is there a simple way to retrieve the number of search results and add that to a website? I don’t want to embed the search results themselves, only something that shows something like: There are 20 search results, with a link to the discourse forum for that specific search.
Thanks!
It freezes on msg.2750. If this message is removed from the folder and the importer is restarted, the importer starts indexing files again until freezing again. I have a included a link to an archived folder containing a collection of such problematic messages.
Do these files have anything in common – do they either contain something that they shouldn’t, or lack a header field that they should have?
This is the output when Ctrl + C is pressed when the indexing has halted:
/home/discourse/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/email_reply_trimmer-0.1.7/lib/email_reply_trimmer.rb:182:in `gsub!': Interrupt
from /home/discourse/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/email_reply_trimmer-0.1.7/lib/email_reply_trimmer.rb:182:in `block in preprocess!'
from /home/discourse/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/email_reply_trimmer-0.1.7/lib/email_reply_trimmer.rb:181:in `each'
from /home/discourse/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/email_reply_trimmer-0.1.7/lib/email_reply_trimmer.rb:181:in `preprocess!'
from /home/discourse/.rbenv/versions/2.3.4/lib/ruby/gems/2.3.0/gems/email_reply_trimmer-0.1.7/lib/email_reply_trimmer.rb:33:in `trim'
from /home/discourse/discourse/lib/email/receiver.rb:205:in `select_body'
from /home/discourse/discourse/script/import_scripts/mbox/support/indexer.rb:61:in `block in index_emails'
from /home/discourse/discourse/script/import_scripts/mbox/support/indexer.rb:104:in `block (2 levels) in all_messages'
from /home/discourse/discourse/script/import_scripts/mbox/support/indexer.rb:143:in `each_mail'
from /home/discourse/discourse/script/import_scripts/mbox/support/indexer.rb:103:in `block in all_messages'
from /home/discourse/discourse/script/import_scripts/mbox/support/indexer.rb:96:in `foreach'
from /home/discourse/discourse/script/import_scripts/mbox/support/indexer.rb:96:in `all_messages'
from /home/discourse/discourse/script/import_scripts/mbox/support/indexer.rb:57:in `index_emails'
from /home/discourse/discourse/script/import_scripts/mbox/support/indexer.rb:23:in `block in execute'
from /home/discourse/discourse/script/import_scripts/mbox/support/indexer.rb:20:in `each'
from /home/discourse/discourse/script/import_scripts/mbox/support/indexer.rb:20:in `execute'
from /home/discourse/discourse/script/import_scripts/mbox/importer.rb:34:in `index_messages'
from /home/discourse/discourse/script/import_scripts/mbox/importer.rb:25:in `execute'
from /home/discourse/discourse/script/import_scripts/base.rb:45:in `perform'
from mbox-experimental.rb:14:in `<module:Mbox>'
from mbox-experimental.rb:8:in `<module:ImportScripts>'
from mbox-experimental.rb:7:in `<main>'
a way to make it so users can upload gif as their avatar ie: setting up VIP (as mentioned here ) plans where they get special perps ( like the discord nitro feature), that’d be great and I’m sure many others would love that feature, I’m trying to find a good way to monetize my forum…
After recently updating to from beta7 to beta8 +18 I noticed that my community had switched locale from Norwegian to English. Strange - so I switched back to Norwegian and saved that setting. But, when I refresh the admin settings page it still says that English is the default locale. Weird. So, I change again, and try Danish locale just to see if that will save. Nope.
Now, to make it even stranger: If I refresh the home page of my forum, sometimes I get English locale, sometimes I get Norwegian, and sometimes Danish locale. Its like there are multiple locales competing to win. What is going on and how can I get just one locale?
After a recent update, this happens with the box style, all the names (I set to #ffffff) are overwritten when I quote a topic (with the color of the links).