• RE: Moving a widget between categories

    @r4z3r You can edit / add / remove widget areas in your template. This is a snippet from: nodebb-theme-persona

    templates/categories.tpl

    <!-- IMPORT partials/breadcrumbs.tpl -->
    <div data-widget-area="header">
    	{{{each widgets.header}}}
    	{{widgets.header.html}}
    	{{{end}}}
    </div>
    <div class="row">
    	<div class="<!-- IF widgets.sidebar.length -->col-lg-9 col-sm-12<!-- ELSE -->col-lg-12<!-- ENDIF widgets.sidebar.length -->">
    		{{{ if pagination.pages.length }}}
    		<div><!-- IMPORT partials/category-selector.tpl --></div>
    		{{{ else }}}
    		<h1 class="categories-title">[[pages:categories]]</h1>
    		{{{ end }}}
    		<ul class="categories" itemscope itemtype="http://www.schema.org/ItemList">
    			{{{each categories}}}
    			<!-- IMPORT partials/categories/item.tpl -->
    			{{{end}}}
    		</ul>
    		<!-- IMPORT partials/paginator.tpl -->
    	</div>
    	<div data-widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
    		{{{each widgets.sidebar}}}
    		{{widgets.sidebar.html}}
    		{{{end}}}
    	</div>
    </div>
    <div data-widget-area="footer">
    	{{{each widgets.footer}}}
    	{{widgets.footer.html}}
    	{{{end}}}
    </div>
    

    But this isn't enough. You also have to add these areas in your theme javascript file. Also a snippet of nodebb-theme-persona

    library.js

    library.defineWidgetAreas = function(areas, callback) {
    	areas = areas.concat([
    		{
    			name: "Categories Sidebar",
    			template: "categories.tpl",
    			location: "sidebar"
    		},
    		{
    			name: "Category Sidebar",
    			template: "category.tpl",
    			location: "sidebar"
    		},
    		{
    			name: "Topic Sidebar",
    			template: "topic.tpl",
    			location: "sidebar"
    		},
    		{
    			name: "Categories Header",
    			template: "categories.tpl",
    			location: "header"
    		},
    		{
    			name: "Category Header",
    			template: "category.tpl",
    			location: "header"
    		},
    		{
    			name: "Topic Header",
    			template: "topic.tpl",
    			location: "header"
    		},
    		{
    			name: "Categories Footer",
    			template: "categories.tpl",
    			location: "footer"
    		},
    		{
    			name: "Category Footer",
    			template: "category.tpl",
    			location: "footer"
    		},
    		{
    			name: "Topic Footer",
    			template: "topic.tpl",
    			location: "footer"
    		},
    		{
    			name: "Account Header",
    			template: "account/profile.tpl",
    			location: "header"
    		},
    		{
    			name: "Users Header",
    			template: "users.tpl",
    			location: "header"
    		},
    		{
    			name: "Tags Header",
    			template: "tags.tpl",
    			location: "header"
    		},
    		{
    			name: "Tag Header",
    			template: "tag.tpl",
    			location: "header"
    		}
    	]);
    
    	callback(null, areas);
    };
    

    If you want to always see the same text between all categories, then you can simply move this between your categories:

    <div data-widget-area="header">
    	{{{each widgets.header}}}
    	{{widgets.header.html}}
    	{{{end}}}
    </div>
    

    This one should work (but not tested):

    <!-- IMPORT partials/breadcrumbs.tpl -->
    <div class="row">
    	<div class="<!-- IF widgets.sidebar.length -->col-lg-9 col-sm-12<!-- ELSE -->col-lg-12<!-- ENDIF widgets.sidebar.length -->">
    		{{{ if pagination.pages.length }}}
    		<div><!-- IMPORT partials/category-selector.tpl --></div>
    		{{{ else }}}
    		<h1 class="categories-title">[[pages:categories]]</h1>
    		{{{ end }}}
    		<ul class="categories" itemscope itemtype="http://www.schema.org/ItemList">
    			{{{each categories}}}
    			<!-- IMPORT partials/categories/item.tpl -->
    
                            <!-- Header Widget is between each catgory -->
                            <div data-widget-area="header">
    	                        {{{each widgets.header}}}
    	                        {{widgets.header.html}}
    	                        {{{end}}}
                            </div>
    
    			{{{end}}}
    		</ul>
    		<!-- IMPORT partials/paginator.tpl -->
    	</div>
    	<div data-widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
    		{{{each widgets.sidebar}}}
    		{{widgets.sidebar.html}}
    		{{{end}}}
    	</div>
    </div>
    <div data-widget-area="footer">
    	{{{each widgets.footer}}}
    	{{widgets.footer.html}}
    	{{{end}}}
    </div>
    
    posted in Technical Support
  • RE: 头部我想改成固定的,

    @dunlix I think he's talking about.... maybe: Header on the mobile view. It isn't hiding when scrolling down the page - it's always visible.

    But I'm not sure.... ?

    posted in General Discussion
  • RE: MongoDB compass

    @dunlix MongoDB Compass is also available unter MacOS. I use it often but yea. It's very useful. 🙂

    MongoDB compass

    I also was looking for a phpmyadmin equivalent for MongoDB so that I can connect to my db's via web. Is there any software available?

    posted in General Discussion
  • RE: 头部我想改成固定的,

    @qiancsf again we don’t really understand what you are saying or what the image says. What are you trying to change/move? If Spanish class taught me anything (definitely not Spanish) it’s that google translate doesn’t do anything to help, the teachers always know. Lol

    PS @dogs what are the chances @qiancsf ‘s screenshot is of your post?

    posted in General Discussion
  • MongoDB compass

    Hello. I don’t know if anyone heard about this, but this is a very useful program for editing your database for NodeBB (or anything). It has an actual interface to connect. I think it is only on windows, so if you run NodeBB on windows connect on the same machine with 127.0.0.1 or use your private IP if another machine.
    I used this a lot when that bug for saving group settings was still a thing (fixed in 1.16.2 I think)

    Anyways that is useful, hopefully you think the same.

    posted in General Discussion
  • RE: Moving a widget between categories

    @r4z3r not with the widgets interface in ACP. You’d have to do it with custom JSON in the Appearance section, or modifying the templates yourself/creating theme.

    As for the JSON text, I’m not very sure how to help you there , as I don’t know much about it.

    At least you have a sort of a start

    posted in Technical Support
  • RE: 头部我想改成固定的,

    @qiancsf said in 头部我想改成固定的,:

    有没有人帮忙看一下怎么更改

    I would like to help you but I'm not a chinese expert. So place ask in english here. This gives you a better chance of a helpful answer.

    posted in General Discussion
  • RE: Single language forum's interface (English)

    @twissell you never asked the topic as question, but you can do so to an already posted topic by pressing the settings gear next to your topic title (next to reply button) and click ask as question.

    Then click the tree dots button on a reply (@PitaJ ‘s in this case) and click select as answer.

    posted in General Discussion
  • RE: Single language forum's interface (English)

    It's possible to hide the input for users to change their language. It's also possible to hard code the user language to completely ensure this. I'd assume the first is usually enough.

    posted in General Discussion
  • RE: Is there free hosting?

    @scottalanmiller literally I’m saying I only used it to just read that tutorial I had no Idea what the purpose of the site it

    posted in General Discussion