The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    Changing Sticky Name

    Mati
    Mati
    Active Poster


    Posts : 1928
    Reputation : 331
    Language : HTML, CSS & JavaScript
    Location : Forum Services

    Solved Changing Sticky Name

    Post by Mati October 28th 2023, 6:53 pm

    I know where to change the name of Sticky, but the question is how to change name of Sticky on a specific topic for example in this section https://forumservice.forumotion.com/f1-news-and-announcements I have 4 sticky topics and one of them I want to change to ''Sticky Ads''

    Maybe a script can do this...

    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1575
    Reputation : 266
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: Changing Sticky Name

    Post by Razor12345 October 28th 2023, 7:22 pm

    Good evening!

    Maybe a script can do this...

    Maybe...

    I can't add a new category for topics to the existing list - if I add a new category for a topic, the server sends a response with a 301 error, which indicates that the topic type is bound to its publication.

    Changing Sticky Name Scree472

    Changing Sticky Name Scree473

    If such an innovation is really needed, you can go to the Suggestions section and suggest creating custom categories for topics, or using JS to handle an existing title. For example, a topic title has some specific word that will affect and change the topic category name.



    Changing Sticky Name Screen51

    TonnyKamper likes this post

    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1575
    Reputation : 266
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: Changing Sticky Name

    Post by Razor12345 November 4th 2023, 9:10 am

    Good afternoon!

    Would it suit you to write a tag in the topic title to change the category name of the topic?
    Or is your request complete?
    if your request is complete, please mark it as Solved.



    Changing Sticky Name Screen51
    Niko
    Niko
    Helper
    Helper


    Male Posts : 3231
    Reputation : 248
    Language : English, Italian, French
    Location : Italy

    Solved Re: Changing Sticky Name

    Post by Niko November 5th 2023, 2:11 pm

    Coucou @Mati

    you can do it with a script code, but you will have to do it manually for each topic you want to replace the "Sticky" label Wink

    Code:
    $(function() {
        var topic_id = 42;
        $('li.group-sticky dl.icon dd.dterm div.topic-title-container h2.topic-title a.topictitle[href*="/t'+topic_id+'-"]').parent().parent().parent().find('> strong').html('Sticky Ads');
    });

    Just replace topic_id with the ID of the topic Hello

    TonnyKamper likes this post

    Razor12345
    Razor12345
    Support Moderator
    Support Moderator


    Male Posts : 1575
    Reputation : 266
    Language : Ukr, Rus, Eng
    Location : Ukraine

    Solved Re: Changing Sticky Name

    Post by Razor12345 November 14th 2023, 8:01 am

    Good afternoon!

    It's been more than two weeks now. We have not heard back from the author.
    I'm closing the topic and moving it to the archive.

    If your problem is not solved - send me a private message and I will open this topic for further help.

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules



    Changing Sticky Name Screen51

      Current date/time is September 23rd 2024, 4:25 am