VK widget hack for GameCMS
About this content

Hello everyone, because of the frequent questions about how to do it, help, etc., I decided to make life easier for myself and help you. This is the method I used to hide the VK widget (you can also hide other things from authorized users so they won't be bothered by them).
There is a VK widget that pops up on its own after a certain amount of time, etc.; everyone's settings are different.
Edit the file: "/cs-developer.ru/templates/your template/tpl/bottom.tpl"
Insert anywhere after ('</div>'):
</div> (закрывающейся тег, вставляем после него)
{if(!is_auth())}
<script type="text/jаvascript" src="https://vk.com/js/api/openapi.js?160"></script>
<!-- VK Widget -->
<div id="vk_community_messages"></div>
<script type="text/jаvascript">
VK.Widgets.CommunityMessages("vk_community_messages", (id сообщества), {expandTimeout: "время в секундах",widgetPosition: "left",tooltipButtonText: "Есть вопрос?"});
</script>
{/if}
Comments (0)