https://next-level-arcade.com


Results 1 to 2 of 2
  1. #1
    Administrator stangger5's Avatar

    Join Date
    Nov 2005
    Posts
    1,634
    Thanks
    666
    Thanked 621 Times in 321 Posts

    Username HTML Markup for v3Arcade Champions

    html username color for the side box ,,v3Arcade Champions..
    v3Arcade Mod Version: 2.0.3A..

    Need to edit includes/v3arcade_functions.php

    Fine: // ##### Update Champion Cache #####
    Replace just the Update Champion Cache code with this:

    Code:
    // ##### Update Champion Cache ################################################
    function build_arcade_champ_cache()
    {
        global $vbulletin;
    
        if (!$vbulletin->options['arcadechamps'])
        {
            return;
        }
    
        $cache = array();
        $getchamps = $vbulletin->db->query_read("
            SELECT games.highscorerid, user.username, user.userid, user.usergroupid
            FROM " . TABLE_PREFIX . "v3arcade_games AS games
            INNER JOIN " . TABLE_PREFIX . "user AS user ON (games.highscorerid = user.userid)
        ");
    
        while ($champs = $vbulletin->db->fetch_array($getchamps))
        {
                    $champss['username'] = fetch_musername($champs);
            $cache[$champs['highscorerid']]['count']++;
            $cache[$champs['highscorerid']]['username'] = $champss['username'];
            $cache[$champs['highscorerid']]['userid'] = $champs['highscorerid'];
        }
        $vbulletin->db->free_result($getchamps);
        uasort($cache, 'order_scores');
    //    $cache = array_slice($cache, 0, $vbulletin->options['arcadechamps']);
        $ccount = 0;
        $arcadechamps = '';
        foreach (array_keys($cache) AS $suserid)
        {
            $ccount++;
    
            if ($cache[$suserid]['count'] == $lastcount)
            {
                $rank = $lastrank;
            }
            else
            {
                $rank = $ccount;
                $lastcount = $cache[$suserid]['count'];
                $lastrank = $rank;
            }
            $cache[$suserid]['rank'] = $rank . ordinal($rank);
        }
        build_datastore('v3a_champs', serialize($cache), 1);
        return $cache;
    }

    Important
    :It will update the user color after someone gets a high score.
    Attached Images Attached Images

  2. The Following 3 Users Say Thank You to stangger5 For This Useful Post:

    junkyman (01-24-2021), lagrace (01-24-2021), Sectional (01-29-2021)

  3. #2
    Game Downloader lagrace's Avatar

    Join Date
    Jan 2018
    Posts
    12
    Thanks
    17
    Thanked 3 Times in 3 Posts
    hello and thank you for sharing

  4. The Following User Says Thank You to lagrace For This Useful Post:

    stangger5  (01-24-2021)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Link Exchange - Affiliates/Friends