Skip to content

CTA banner for visitors

Solved Bugs
3 3 40 1
  • banner is duplicated, please see the pic attached.

    Screenshot 2026-04-28 at 10.46.33.png

  • banner is duplicated, please see the pic attached.

    Screenshot 2026-04-28 at 10.46.33.png

    @crazycells Yes, because of this code

    $(document).ready(function () {
        $(window).on('action:ajaxify.end', function (data) {
            if (config && config.uid > 0) {
                // User is logged in, so don't fire any message
            } else {
                // Insert content into the selected element
                var addAfterLastPost = $(
                    "<div class='alert alert-warning alert-dismissible fade show' role='alert'>" +
                    "<p><strong>Hello! It looks like you're interested in this conversation, but you don't have an account yet.</strong></p>" +
                    "<p>Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, " +
                    "and choose to be notified of new replies (ether email, or push notification). You'll also be able to save bookmarks, use reactions, and upvote to show your appreciation to other community members.</p>" +
                    "<p>With your input, this post could be even better 💗"+
                    "<br><br>"+
                    "<a style='margin-right:5px;' component='topic/reply/guest' href='/register' class='fw-semibold btn btn-sm btn-warning'>Register</a>" +
                    "<a component='topic/reply/guest' href='/login' class='fw-semibold btn btn-sm btn-info'>Log in</a>" +
                    "<button type='button' class='btn-close' data-bs-dismiss='alert' aria-label='Close'></button>" +
                    "</div>"
                );
                $('ul[component="topic"]').after(addAfterLastPost);
            }
        });
    });
    

    This was adopted into core as far as I know, so I’ve removed my manual code.

  • Very strange…
    Nothing in console ?

  • banner is duplicated, please see the pic attached.

    Screenshot 2026-04-28 at 10.46.33.png

    @crazycells Yes, because of this code

    $(document).ready(function () {
        $(window).on('action:ajaxify.end', function (data) {
            if (config && config.uid > 0) {
                // User is logged in, so don't fire any message
            } else {
                // Insert content into the selected element
                var addAfterLastPost = $(
                    "<div class='alert alert-warning alert-dismissible fade show' role='alert'>" +
                    "<p><strong>Hello! It looks like you're interested in this conversation, but you don't have an account yet.</strong></p>" +
                    "<p>Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, " +
                    "and choose to be notified of new replies (ether email, or push notification). You'll also be able to save bookmarks, use reactions, and upvote to show your appreciation to other community members.</p>" +
                    "<p>With your input, this post could be even better 💗"+
                    "<br><br>"+
                    "<a style='margin-right:5px;' component='topic/reply/guest' href='/register' class='fw-semibold btn btn-sm btn-warning'>Register</a>" +
                    "<a component='topic/reply/guest' href='/login' class='fw-semibold btn btn-sm btn-info'>Log in</a>" +
                    "<button type='button' class='btn-close' data-bs-dismiss='alert' aria-label='Close'></button>" +
                    "</div>"
                );
                $('ul[component="topic"]').after(addAfterLastPost);
            }
        });
    });
    

    This was adopted into core as far as I know, so I’ve removed my manual code.

  • phenomlabundefined phenomlab marked this topic as a question
  • phenomlabundefined phenomlab has marked this topic as solved

Did this solution help you?
Did you find the suggested solution useful? Support 💗 Sudonix with a coffee
If your organisation needs deeper expertise around infrastructure, security, or technology leadership, learn more about Phenomlab Ltd. Many of the deeper technical guides behind Sudonix are published there.

Related Topics
  • Layout Issues/Transparency

    Solved Bugs bug reply transparent
    5
    2
    2 Votes
    5 Posts
    795 Views
    @phenomlab said in Layout Issues/Transparency: Does it work properly now? Yes, it does
  • 3 Votes
    5 Posts
    1k Views
    @crazycells Agreed. It takes a more sensible approach. Nobody ever upvotes the first post - it’s usually much further down as the conversation progresses.
  • nodebb error logs

    Bugs nodebb
    6
    2
    4 Votes
    6 Posts
    1k Views
    I just wanted to ask because I don’t have much knowledge about the new installation. Thank you for the explanatory answer.
  • Loading Image Problem

    Bugs hata bug
    24
    3
    6 Votes
    24 Posts
    6k Views
    Thank you Mark.
  • Is NTFY working properly on iOS?

    Bugs
    10
    5 Votes
    10 Posts
    2k Views
    @phenomlab thx, the same for us. It sees 1.7.3 as the last version although it is updated to 1.7.4… i will report this to @barisusakli
  • Bug Report

    Solved Bugs nodebb bugs
    47
    1
    26 Votes
    47 Posts
    10k Views
    @crazycells Good points, thanks. I completely forgot that classes are added - makes life much simpler! EDIT - seems this is pretty straightforward, and only needs the below CSS .upvoted i { color: var(--bs-user-level) !important; } This then yields [image: 1718028529465-3f072f8a-ebfa-4910-8723-73c493b8e4eb-image.png] However, the caveat here is that the .upvoted class will only show for your upvotes, and nobody else’s. However, this does satisfy the original request however I would love to see my upvoted posts more clearly, because currently, when I upvote, nothing on the post tool is changing, it would be nicer if there is an indication that I have upvoted (like a filled or colored triangle?)
  • Rendering issues post migration to Sudonix theme/code

    Solved Bugs
    49
    1
    20 Votes
    49 Posts
    11k Views
    @cagatay Those are in /admin/extend/widgets/brand header. Look inside the HTML widget that is there, and you’ll find <div class="socialicons"> <a class="btn-ghost p-2" href="https://github.com/phenomlab" rel="noreferrer noopener"><i style="color: #333;background: #ffffff; width: 26px" class="fa fa-2x fa-github-square"></i></a> <a class="btn-ghost p-2" href="https://linkedin.com/in/phenomlab" rel="noreferrer noopener"><i style="color: #0077B5;background: #ffffff; width: 26px" class="fa fa-2x fa-brands fa-linkedin-square"></i></a> <a class="btn-ghost p-2" href="https://twitter.com/phenomlab" rel="noreferrer noopener"><i style="color: #1DA1F2;background: #ffffff; width: 26px" class="fa fa-2x fa-twitter-square"></i></a> <!-- <a class="btn-ghost p-2" href="https://www.facebook.com/sudonixtech" rel="noreferrer noopener"><i style="color: #4268B2;background: #ffffff; width: 26px" class="fa fa-2x fa-facebook-square"></i></a> --> </div> Remove that block and save.
  • Nodebb 3.2.2

    Bugs nodebb 3.2.2
    27
    1
    11 Votes
    27 Posts
    7k Views
    @crazycells yes, I’ve just seen that and modified the post. It seems to only happen if you have a space between the “greater than” symbol and the actual text. Clearly a markdown thing.