• While creating requests or asking for support in the existing XenForo threads please maintain XenForo support policy strictly.

  • You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

DragonByte Credits - Branding Removal Guide

Could you please share dragonbyte credits v5.3.1?
src\addons\DBTech\Credits\Template\Callback\Copyright.php

Code:
<?php

namespace DBTech\Credits\Template\Callback;

class Copyright
{
    /**
     * @return string
     */
    public static function getCopyrightText(): string
    {
        /** @var \XF\App $app */
        $app = \XF::app();
        
        $branding = $app->offsetExists('dbtech_branding') ? $app->dbtech_branding : [];
        
        if (!count($branding) OR !is_array($branding))
        {
            // We had nothing left, another DBTech mod would have done it
            return '';
        }
        
        $brandingVariables = [
            'utm_source'         => str_replace('www.', '', htmlspecialchars(isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'CLI')),
            'utm_content'         => 'footer',
        ];
        
        // Create this long string
        $html = '<div>
            Parts of this site powered by <a class="u-concealed" rel="nofollow noopener" href="https://www.dragonbyte-tech.com/store/categories/xenforo.5/?utm_source=' . $brandingVariables['utm_source'] . '&utm_campaign=site&utm_medium=footer&utm_content=' . $brandingVariables['utm_content'] . '" target="_blank">XenForo add-ons from DragonByte&#8482;</a>
            &copy;2011-' . date('Y') . ' <a class="u-concealed" rel="nofollow noopener" href="https://www.dragonbyte-tech.com/?utm_source=' . $brandingVariables['utm_source'] . '&utm_campaign=site&utm_medium=footer&utm_content=' . $brandingVariables['utm_content'] . '" target="_blank">DragonByte Technologies Ltd.</a>
            (<a class="u-concealed" rel="nofollow noopener" href="https://www.dragonbyte-tech.com/store/details/?products=' . implode(',', $branding) . '&utm_source=' . $brandingVariables['utm_source'] . '&utm_campaign=product&utm_medium=footer&utm_content=' . $brandingVariables['utm_content'] . '" target="_blank">Details</a>)
        </div>';
        
        // Make sure we null this out
        $app->dbtech_branding = [];
        
        return $html;
    }
}

replace with:

Code:
<?php

namespace DBTech\Credits\Template\Callback;

class Copyright
{
    /**
     * @return string
     */
    public static function getCopyrightText(): string
    {
        /** @var \XF\App $app */
        $app = \XF::app();
        
        $branding = $app->offsetExists('dbtech_branding') ? $app->dbtech_branding : [];
        
        if (!count($branding) OR !is_array($branding))
        {
            // We had nothing left, another DBTech mod would have done it
            return '';
        }
        
        $brandingVariables = [
            'utm_source'         => str_replace('www.', '', htmlspecialchars(isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'CLI')),
            'utm_content'         => 'footer',
        ];
        
        // Create this long string
        $html = '';
        
        // Make sure we null this out
        $app->dbtech_branding = [];
        
        return $html;
    }
}
 
  • Like
Reactions: gundelpfanne
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock