Updated v0.6.2
Fixed sending a newletter from a new topic in latest nbb.
Updated v0.6.2
Fixed sending a newletter from a new topic in latest nbb.
@jarey no problem.
I fixed some typos in my code above, and tested it on my forum, and verified it works. Let me know if you run into any other errors.
Thanks. At the moment it's only half ready. When I made the designer, I didn't know enough about the database to complete it. The plan was for @pitaj to work on that half. I haven't heard from him in a while, so I assume he's busy with other things right now.
However, I know quite a bit more about how to work with the database now. If he wanted to turn it over to me fully, I'm confident I could finish it.
So, at the moment, it is usable, but you can only send the results of a form to your email address.
Yep, all you need to do is edit the templates.
Easiest is some js in the custom header. (Although, if you are making a lot of changes, you really should be using a custom theme.)
<script>
$(window).on('action:ajaxify.contentLoaded', function(){
$('[component="thread/sort"]').after(' <button class="btn btn-default yourbutton" type="button">Do Something</button>');
$('.yourbutton').click(function(){
// Do whatever you want.
});
});
</script>
(The leading space in the after() is intentional)
Sure.
library.js
Plugin = module.exports;
var categories = require.main.require('./src/categories');
// init hook
Plugin.init = function (data, callback) {
var router = data.router;
var middleware = data.middleware;
// Create route to render the template to.
router.get('/example-categories', middleware.buildHeader, renderExampleCategories);
router.get('/api/example-categories', renderExampleCategories);
function renderExampleCategories(req, res, next) {
// Get all the visible categories.
categories.getCategoriesByPrivilege('cid:0:children', req.uid, 'find', function(err, categoryData) {
if (err) return next(err);
// Put the categories in a tree format.
categories.flattenCategories([], categoryData);
// Send the data to the template. `example-categories.tpl`
res.render('example-categories', {categories: categoryData});
});
}
};
example-categories.tpl
<!-- BEGIN categories -->
<a href="{config.relative_path}/category/{categories.slug}" itemprop="url">{categories.name}</a> <br>
<!-- BEGIN categories.children -->
- <a href="{config.relative_path}/category/{categories.children.slug}" itemprop="url">{categories.children.name}</a> <br>
<!-- END categories.children -->
<!-- END categories -->
Should give you a list like this
Is this what you want?
https://forum.creepr.org/
https://github.com/Creepr/nodebb-theme-creepr
It's on 0.8.2 right now so it may not work, but I'm going to update it soon, probably later today.
Featured Topics are now added to Topic Lists
. The /featured
page is used to add, remove, and manage lists. Admin and Global Mods can use the /featured
page. The /news
page now uses the unremovable News
topic list. Old featured topics should be automatically moved to this list.
Widgets can use any Topic List
. Widgets can now be set to use specific topics within a list rather than the most recent section of the whole list.
The News widget was added. The news widget displays a topic list using one of the news templates, but without a paginator. Using the specific topics option, for example, will allow you to set some topics as "pinned" on any page.
Users can now create featured topics lists as well. Users feature topics by using the post tools menu on the first post of a topic. The routes /user/slug/featured
and /user/slug/blog
were added to the user profile menu. /featured
allows users to manage their lists, while /blog
is a public route where topics from their Blog
list are displayed.
nbb 1.3.0 and up required
Why would you do this? You should never be storing the password in more than one database.
I think you seriously need to re-think the design of your app.
If you want to retrieve the hashed password. You need to call the database directly.
db.getObjectField('user:' + confirmObj.uid, 'password', function (err, password) {
// Now you have the hashed password.
})
Andrew Rodrigues, Julian Lam and Barış Soner Uşaklı.
It would be faster as a CSS rule using the category id, but no better way I know of.
li[component="categories/category"][data-cid="33"] .category-children {
display: none;
}
It sounds like a bug to me, why would deleted topics be visible to regular users?
Purging is rather extreme, after purging there's no record of the topic ever happening, which may be important for moderation/archival purposes.
Updated to v0.3.0
Works now!
@Flemming-Hansen Wow, great timing. I'm actually working on Personal blogs for the next release. Glad to know someone is interested in it besides myself.
Hey there, two things, one, the script needs to go in the Appearance=>Custom HTML=> Custom Header
section of the admin panel, two, the script has updated since that post, here is the new script.
<!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent -->
<script type="text/javascript">
window.cookieconsent_options = {"message":"This website uses cookies to ensure you get the best experience on our website","dismiss":"Got it!","learnMore":"More info","link":null,"theme":"dark-top"};
</script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/cookieconsent.min.js"></script>
<!-- End Cookie Consent plugin -->
Here ya go
Back from the dead with a bunch of bug fixes, code rewrite to current node and NodeBB, and new pictures for the guide topic!