Catalog News Guides Community For contributors
Everything for CS 1.6 / CSS / CS:GO servers - Plugins | Builds | Models | Maps » Web add-ons » GameCMS » VK widget hack for GameCMS

VK widget hack for GameCMS

07.11.2020, 16:19adminViews: 3 759Comments: 0
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}


Similar content

Comments (0)

Add comment

Leave a comment

New content by email

Subscription with email confirmation. No more than one email per day. Unsubscribe via the link in any email.

Join the community

Register · Reset password