Image File Size

General Discussion

Suggested Topics


  • 0 Votes
    4 Posts
    109 Views

    @jsmith
    The changes need to be made to the files of a Persona theme, found the directory like this:

    /path/to/your/nodebb-folder/node_modules/nodebb-theme-persona/templates/

    I was try to do this on my forum and I did it, this is what you need to do:

    tags-in-topic.png

    You need edit 2 files - topic.tpl and post.tpl

    /node_modules/nodebb-theme-persona/templates/topic.tpl /node_modules/nodebb-theme-persona/templates/partials/topic/post.tpl Copy and remove this code in the topic.tpl <div class="tags tag-list inline-block hidden-xs"> <!-- IMPORT partials/topic/tags.tpl --> </div> Paste this in the post.tpl after {posts.content}

    <div class="content" component="post/content" itemprop="text">
    {posts.content}

    <div class="tags tag-list inline-block hidden-xs"> <!-- IMPORT partials/topic/tags.tpl --> </div>

    </div>

    Now run the command to build Nodebb and that's it, ready.

    UPD.

    (note that when the screen size is a mobile phone the tag is not even displayed in the post/header.)

    Yes, you right. To show tags on mobile you need remove hidden-xs in the div class.

    <div class="tags tag-list inline-block"> <!-- IMPORT partials/topic/tags.tpl --> </div>
  • 0 Votes
    7 Posts
    206 Views

    It's internal only but I'll see if I can get it opened for testing.
    I now see that some browsers are seeing the different images but why some still aren't is beyond me.
    This has to be a problem of caching somewhere and now unrelated to nodebb.

    I actually rarely suspect nodebb, it seems to be top notch code.

  • 0 Votes
    4 Posts
    555 Views

    I understand what you're asking for. The reason you aren't getting an answer is most likely because no, they're isn't a ready-built plugin with exactly what you want.

    There area couple close ones, including the iframely plugin, but none with the popup feature.

  • 0 Votes
    2 Posts
    970 Views

    @datcangio I believe image size settings are only applied to images uploaded locally to your instance.

  • 0 Votes
    14 Posts
    4k Views

    Imgur will allow you to upload gifs (I should hope so!)... I don't think there's a way to pull a png back from imgur (that's actually a png)