This is a old topic, but I can't find a solution anywhere.
I would like a custom field for registration and make it required. Is this possible with nodebb?
This is a old topic, but I can't find a solution anywhere.
I would like a custom field for registration and make it required. Is this possible with nodebb?
@psychobunny said in Pop-Up message by entering a category:
Here you go, I threw something quick in a couple minutes that you can add to your custom JS in the ACP that you can improve on if you like:
$(window).on('action:ajaxify.end', function(ev) { var restrictedCid = 1; if (parseInt(ajaxify.data.cid, 10) === restrictedCid) { $('#content').css({ filter: 'blur(10px)' }); bootbox.confirm('Are you 18?', function(answer) { if (!answer) { window.location = 'https://community.nodebb.org'; } else { $('#content').css({ filter: 'none' }); } }); } });
This is awesome, but any way this could only apply to the category only? This seems to create this popup on every single thread within the category for me.