- Joined
- Jul 6, 2019
- Messages
- 87
- Points
- 28
Reputation:
do you know how to remove this branding on the Real Time chat add-on? https://enxf.net/resources/bs-real-time-chat.1777/
Reputation:
Reputation:
Reputation:
to Edit template: real_time_chat_macros delete line 16
View attachment 32142
or use Template modifications
View attachment 32143
View attachment 32144
Reputation:
do you know how to remove this branding on the Real Time chat add-on? https://enxf.net/resources/bs-real-time-chat.1777/
View attachment 32137
Reputation:
do you know how to remove this branding on the Real Time chat add-on? https://enxf.net/resources/bs-real-time-chat.1777/
View attachment 32137
return '<a href="https://devsell.io/?utm_source=' . urlencode($domain) . '&utm_medium=chat_addon&utm_campaign=product_branding" target="_blank" rel="nofollow" class="chat-copyright">Add-on by 021</a>';
return ;
class Listener
{
public static function renderCopyright()
{
if (\XF::config('bsRemoveCopyright'))
{
return '';
}
$request = \XF::app()->request();
if (! ($domain = $request->getServer('HTTP_HOST')))
{
$boardUrl = \XF::options()->boardUrl;
$urlParts = parse_url($boardUrl);
if ($urlParts['host'])
{
$domain = $urlParts['host'];
}
else
{
$domain = $boardUrl;
}
}
return '<a href="https://devsell.io/?utm_source=' . urlencode($domain) . '&utm_medium=chat_addon&utm_campaign=product_branding" target="_blank" rel="nofollow" class="chat-copyright">Add-on by 021</a>';
}
Reputation:
best way to remove perm from code, before you install
\upload\src\addons\BS\RealTimeChat\Listener.php
Line 35
PHP:return '<a href="https://devsell.io/?utm_source=' . urlencode($domain) . '&utm_medium=chat_addon&utm_campaign=product_branding" target="_blank" rel="nofollow" class="chat-copyright">Add-on by 021</a>';
change it to
PHP:return ;
Second Way
\src\config.php
$config['bsRemoveCopyright'] = true;
but Addon not NULLED
PHP:class Listener { public static function renderCopyright() { if (\XF::config('bsRemoveCopyright')) { return ''; } $request = \XF::app()->request(); if (! ($domain = $request->getServer('HTTP_HOST'))) { $boardUrl = \XF::options()->boardUrl; $urlParts = parse_url($boardUrl); if ($urlParts['host']) { $domain = $urlParts['host']; } else { $domain = $boardUrl; } } return '<a href="https://devsell.io/?utm_source=' . urlencode($domain) . '&utm_medium=chat_addon&utm_campaign=product_branding" target="_blank" rel="nofollow" class="chat-copyright">Add-on by 021</a>'; }