Xenforo Guides Remove UIX footer

LMAO2550

SN Donator
SN Donator
Since Audentio, now known as Themehouse their latest updates from the UI.X addon. There is a new footer at the bottom of your page.
Here is a little guide on how to remove it.

To begin with, we go to the following location of your xenforo website:
/library/Audentio/UIX/Listener/
In there you will find a file called CodeEvent.php
Open it and go to line 90.
You will see following code:
PHP:
public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
    {
        if ($hookName == 'uix_copyright') {
            try {
                $copyright = XenForo_Application::get('adstylecopyright');
            } catch (Zend_Exception $e) {
                $xenOptions = XenForo_Application::getOptions();

                $affiliateChunk = '';
                if ($xenOptions->uix_affiliateId) {
                    $affiliateChunk = '/discount/'.$xenOptions->uix_affiliateId;
                }
                $contents .= '<div class="thCopyrightNoticeStyle">Theme designed by <a href="https://www.themehouse.com/xenforo/themes" title="Premium XenForo Themes" rel="nofollow" target="_blank">ThemeHouse</a>.</div>';
                XenForo_Application::set('adstylecopyright', true);
            }
        }
    }
Remove that, then save the file and reload your page. You will see that the footer is completely removed from your website.

Editing the footer can be done by just letting the code stand on the same spot and edit line 102:
PHP:
$contents .= '<div class="thCopyrightNoticeStyle">Theme designed by <a href="https://www.themehouse.com/xenforo/themes" title="Premium XenForo Themes" rel="nofollow" target="_blank">ThemeHouse</a>.</div>';

Have fun.
 
Top