Add a ranks to your forum automatically Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
4 posters

    Add a ranks to your forum automatically

    كونان2000
    كونان2000
    Forumember


    Male Posts : 194
    Reputation : 88
    Language : Arabic

    Add a ranks to your forum automatically Empty Add a ranks to your forum automatically

    Post by كونان2000 March 26th 2024, 9:54 pm

    Hello everyone
    This trick allows you to show your forum's rank

    Add a ranks to your forum automatically Images11


    :It works on all versions of the forum
    _____________________________________




    Such as member rank in a profile
    Every time a member's number of contributions increases, his rank increases
    -------
    With this trick you can do the same for your forum
    The more contributions a forum has, the higher its rank
    The more members the forum has, the greater the number of crowns

    All this happens automatically Very Happy ,

    There are five ranks in the code

    First rank: 1000 contributions
    Normal forum ★

    Second rank: 10,000 contributions
    Active forum ★★

    Third rank: 100,000 contributions
    Very active forum ★★★

    Fourth rank: 500,000 contributions
    Very super active forum ★★★★

    Fifth rank: 1,000,000 contributions
    An active and legendary forum ★★★★★
    ----------------------------------------------

    +

    The code was created to place a crown image for every 1,000 registered members,
    If your forum has 3,000 members, the number of crowns will be three

    Every time 1000 members register, the number of crowns increases.
    One crown for every 1000 members
    ----------------------------------------------




    Add a ranks to your forum automatically 31-20e3 Installing the JavaScript
    __________________________________________________________________________

    Title * : as you like
    Placement : In all the pages or In the home page
    Code:
    (function() {
    $(document).ready(function(){
        var ranktop = parseInt($(".USERS-Forum-rank-stsr strong").text());
        var starsCount = Math.floor(ranktop / 1000);
        var starsHTML = '';
        for (var i = 0; i < starsCount; i++) {
            starsHTML += '<span style="color: #E91E63 !important;font-size: 20px !important;"><img src="https://i.servimg.com/u/f20/16/85/77/67/images10.png" /></span>';
        }
        $(".USERS-Forum-rank").append(starsHTML);
    });

    $(document).ready(function(){
        var rangtopt = parseInt($(".post-Forum-rank-stsr strong").text());
        var starsHTML = '';

        if (rangtopt >= 1000) {
            starsHTML = '<span style="color: yellow !important;font-size: 20px !important;">Normal forum ★</span>';
            $(".post-Forum-rank").html(starsHTML);
        }

        if (rangtopt >= 10000) {
            starsHTML = '<span style="color: #000 !important;font-size: 20px !important;">Active forum ★★</span>';
            $(".post-Forum-rank").html(starsHTML);
        }

        if (rangtopt >= 100000) {
            starsHTML = '<span style="color: red !important;font-size: 20px !important;">Very active forum ★★★</span>';
            $(".post-Forum-rank").html(starsHTML);
        }

        if (rangtopt >= 500000) {
            starsHTML = '<span style="color: red !important;font-size: 20px !important;">Very super active forum ★★★★</span>';
            $(".post-Forum-rank").html(starsHTML);
        }

        if (rangtopt >= 1000000) {
            starsHTML = '<span style="color: green !important;font-size: 20px !important;">An active and legendary forum ★★★★★</span>';
            $(".post-Forum-rank").html(starsHTML);
        }

    });


    document.write('<style type="text/css">.USERS-Forum-rank-stsr,.post-Forum-rank-stsr {
        font-size: 0;
    }
    .USERS-Forum-rank img {
        width: 70px;
    }
    .post-Forum-rank-ا2 {
        text-align: center;
        padding: 5px;
        color: #020202;
        background: #ffffff;
        border: solid #00000047 1px;
    }
    .USERS-Forum-rank-ا2 {
        width: fit-content;
        padding: 7px;
        color: #020202;
        background: #fff;
        border: solid #00000047 1px;
        border-bottom: 0;
        border-radius: 22px 22px 0px 0px;
    } </style>');
    // by: كونان2000
    //Using artificial intelligence
    })();
    Save the script


     Add a ranks to your forum automatically 32-20e3  Modification of index_body template
    __________________________________________________________________________

    Go to Administration Panel > Display > Templates > General > and open the template index_bodyAdd a ranks to your forum automatically 1005357294

    Add this to the Beginning of the template :
    Code:
          <div align="center">
        <div class="USERS-Forum-rank-ا2">
              <div class="USERS-Forum-rank"></div>
        </div>
      <div class="post-Forum-rank-ا2">
    <div class="post-Forum-rank"></div>
        </div>
      <!-- BEGIN disable_viewonline -->
     <div class="USERS-Forum-rank-stsr">{TOTAL_USERS}</div>
     <div class="post-Forum-rank-stsr">{TOTAL_POSTS}</div>
      <!-- END disable_viewonline -->
      </div>
      
    Save and publish Add a ranks to your forum automatically 644535217

    -----------------------------------------------------------------------


    Making an adjustment to the number of ranks and contributions
    click here:


    Make an adjustment to the number of members
    click here:


    Last edited by كونان2000 on March 28th 2024, 2:14 am; edited 2 times in total

    skouliki, SarkZKalie, TonnyKamper, poesia-verses and S@MeH like this post

    Obscure
    Obscure
    Forumember


    Female Posts : 47
    Reputation : 10
    Language : English
    Location : USA

    Add a ranks to your forum automatically Empty Re: Add a ranks to your forum automatically

    Post by Obscure March 26th 2024, 9:58 pm

    Nice contribution! Nice idea! I like it!

    كونان2000 and S@MeH like this post

    كونان2000
    كونان2000
    Forumember


    Male Posts : 194
    Reputation : 88
    Language : Arabic

    Add a ranks to your forum automatically Empty Re: Add a ranks to your forum automatically

    Post by كونان2000 March 26th 2024, 10:13 pm

    Obscure wrote:Nice contribution! Nice idea! I like it!
    Thanks Obscure ^^
    I'm glad you liked it (●'◡'●)

    S@MeH likes this post

    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19123
    Reputation : 1993
    Language : fluent in dork / mumbojumbo & English haha

    Add a ranks to your forum automatically Empty Re: Add a ranks to your forum automatically

    Post by Ape March 27th 2024, 12:08 am

    Hi can this be used on all versions of our forums ?

    If now then you must state this in your first post.



    Add a ranks to your forum automatically Left1212Add a ranks to your forum automatically Center11Add a ranks to your forum automatically Right112
    Add a ranks to your forum automatically Ape_b110
    Add a ranks to your forum automatically Ape1010

    كونان2000 and S@MeH like this post

    كونان2000
    كونان2000
    Forumember


    Male Posts : 194
    Reputation : 88
    Language : Arabic

    Add a ranks to your forum automatically Empty Re: Add a ranks to your forum automatically

    Post by كونان2000 March 27th 2024, 1:11 am

    Ape wrote:Hi can this be used on all versions of our forums ?

    If now then you must state this in your first post.
    hi Ape
    Yes, it works on all versions of the forum

    My first post has been edited Dawa

    Ape, SLGray and S@MeH like this post

    TonnyKamper
    TonnyKamper
    Active Poster


    Female Posts : 1049
    Reputation : 78
    Language : Dutch/English
    Location : DSF Admin

    Add a ranks to your forum automatically Empty Re: Add a ranks to your forum automatically

    Post by TonnyKamper March 27th 2024, 11:57 am

    Very nice job  Very good

    كونان2000 likes this post

    كونان2000
    كونان2000
    Forumember


    Male Posts : 194
    Reputation : 88
    Language : Arabic

    Add a ranks to your forum automatically Empty Re: Add a ranks to your forum automatically

    Post by كونان2000 March 27th 2024, 10:15 pm

    Thanks @TonnyKamper ^^
    I'm glad you liked it Add a ranks to your forum automatically 1f600

    TonnyKamper likes this post