@Scuzz thanks - that worked for me in the end.
codecowboy
Posts
-
Moving a NodeBB mongo DB from one server to another. -
New user statusPlease can a forum moderator change my status so that I dont have to wait 5 minutes to make a new post? I've posted quite a few times and am not a bot
Many thanks!
-
Open external links in new browser tabYep this is a global option in /admin/settings/user#default-user-settings
-
Domain name in password reset emailI have NodeBB behind an nginx proxy so requests are forwarded to localhost:4567.
If the user goes through the process of resetting their password, the email they receive contains a link with localhost:4567 and so the link doesn't work.
How can I change this so that the email will reflect the actual domain I am hosting the site on?
-
What is the format of the NodeBB entries in MongoDB?If you're new to Mongo (I am too) and thinking about the database in terms of a more traditional relational database, it can be pretty confusing.
I would recommend MongoChef over Robomongo as your client.
In the collection view, run a query like:
{ "username": { $not: { $exists: false } } }
That will give you all the objects whose username field is populated. As far as I understand it, there is no users table, just objects. An object can be anything and the only thing which determines what it is, is the fields / properties on that object. If the username is populated, it will be a user.
My database may be different to yours as I imported from a legacy forum but my user objects have an entry called _key which is set to a user ID. Hope that helps
-
Emoji Pics - Reverse Proxy@Phate did you resolve this?
-
Domain name in password reset email@pichalite thanks that sorted it!
Would you be able to upvote my question so that I can increase my reputation? I have to wait 5 minutes to make a post at the moment.
-
Is there a way to bulk purge deleted posts?I have a number of posts which I have deleted. I'd like them to be fully purged rather than deleted and greyed out for admins.
Anyone know of a way to bulk purge posts? If not, Is there something I can run directly against Mongo to do this manually?
-
403 error when trying to loginIn my particular case, this seems to have been caused by one or all of:
- Missing the following request header in Apache:
<VirtualHost *:80> RequestHeader set X-Forwarded-Proto "http" … </VirtualHost>
I added the above apache directive and restarted apache..
2.Having the cookieDomain set in the admin panel
If you cannot log into your forum, the only way to do remove this cookieDomain value is to manually run a DB query to remove it. In my case this was Mongo and I used a GUI client to remove the value.
A raw query would look something like this:
db.objects.update({_key: "config"}, {$set: {cookieDomain: ""}});
More info here - https://community.nodebb.org/topic/9196/invalid-session?_=1470286431609&page=1
-
Where is the markup in Appearance ->Custom Header rendered?@julian thanks. So this is the only way to do this? If so, I'll just do a jQuery append as you say.