{"id":3925,"date":"2023-02-17T11:47:46","date_gmt":"2023-02-17T08:47:46","guid":{"rendered":"https:\/\/www.microimpuls.com\/docs\/smarty\/extra\/%d0%ba%d0%b0%d0%ba-%d0%bd%d0%b0%d1%81%d1%82%d1%80%d0%be%d0%b8%d1%82%d1%8c-%d0%b7%d0%b0%d0%bc%d0%be%d1%87%d0%ba%d0%b8-%d0%bd%d0%b0-%d0%ba%d0%b0%d0%bd%d0%b0%d0%bb%d0%b0%d1%85"},"modified":"2023-02-17T14:50:14","modified_gmt":"2023-02-17T11:50:14","slug":"how-to-config-locks-on-the-channels","status":"publish","type":"docs","link":"https:\/\/microimpuls.com\/en\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels","title":{"rendered":"How to set up locks on the channels?"},"content":{"rendered":"<p>Channels with locks are needed to show the subscriber that there are channels in the service that he can subscribe to in addition to those for which he already has a subscription. Or with the help of locks, you can seem to the user that his subscription to the service has ended in this case, the user will be allowed to enter the application and he will see his entire list of channels blocked (this case is very useful, since the application does not just knock out the user, but gives him the opportunity to surf the interface in search of a payment method).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"720\" src=\"https:\/\/www.microimpuls.com\/wp-content\/uploads\/2023\/02\/2-\u0422\u0412-5.png\" alt=\"\" class=\"wp-image-3929\"\/><figcaption>Channel \u00abMatch TV\u00bb with lock in Sibseti interface<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Locks for inactive accounts<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Create a tariff package \u00ab For inactive accounts \u00bb with options (the rest of the options can be left by default):<ul><li>Default-connected<\/li><li>Cost \u2014 0<\/li><li>Hidden<\/li><li>Access type \u2014 displaying content in the list without triggering<\/li><li>Available only for inactive accounts<\/li><\/ul><\/li><li>We attach this tariff to all channels through mass editing<\/li><li>Also hang it through mass editing or Billing API script to all current subscribers (new it will connect automatically when registering)<\/li><li>Ready \u2014 when deactivating the account, this package will be available to the subscriber, which will show him all possible channels, but with locks and without the ability to run<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Locks for showing channels that can be connected<\/h3>\n\n\n\n<ol class=\"wp-block-list\" id=\"block-7870e1d4-78bf-430b-bfeb-cad22c095e77\"><li>Create a tariff package \u00ab Locks \u00bb with options (the rest of the options can be left by default):<ul><li>Default-connected<\/li><li>Cost \u2014 0<\/li><li>Hidden<\/li><li>Access type \u2014 displaying content in the list without triggering<\/li><\/ul><\/li><li>We attach this tariff to all channels through mass editing<\/li><li>Also hang it through mass editing or Billing API script to all current subscribers (new it will connect automatically when registering)<\/li><li>Ready \u2014 subscribers will see in the list not only channels that are included in the connected, but in general all available.<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">How to add a flow plug for a channel with a lock?<\/h3>\n\n\n\n<p>On the channel page in the block \u00abBroadcast options\u00bb you should prescribe a link to the stream-stub, and in client.js include the option <code><a href=\"https:\/\/micro.im\/docs\/smarty\/portal-and-apps-settings\/futuristic-settings#%D0%B2%D0%BE%D1%81%D0%BF%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BF%D0%BE%D1%82%D0%BE%D0%BA%D0%BE%D0%B2-%D0%B7%D0%B0%D0%B3%D0%BB%D1%83%D1%88%D0%B5%D0%BA-%D0%B4%D0%BB%D1%8F-%D0%BA%D0%B0%D0%BD%D0%B0%D0%BB%D0%BE%D0%B2-%D1%81-%D0%B7%D0%B0%D0%BC%D0%BE%D1%87%D0%BA%D0%B0%D0%BC%D0%B8\" data-type=\"URL\" data-id=\"https:\/\/micro.im\/docs\/smarty\/portal-and-apps-settings\/futuristic-settings#%D0%B2%D0%BE%D1%81%D0%BF%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%B5%D0%B4%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BF%D0%BE%D1%82%D0%BE%D0%BA%D0%BE%D0%B2-%D0%B7%D0%B0%D0%B3%D0%BB%D1%83%D1%88%D0%B5%D0%BA-%D0%B4%D0%BB%D1%8F-%D0%BA%D0%B0%D0%BD%D0%B0%D0%BB%D0%BE%D0%B2-%D1%81-%D0%B7%D0%B0%D0%BC%D0%BE%D1%87%D0%BA%D0%B0%D0%BC%D0%B8\">request_url_for_locked_channels<\/a><\/code><\/p>\n\n\n\n<p>In addition to the stream-stub, you can also prescribe a url for the channel on the banner-stub, which will be displayed on top of the stream-stub (the banner is displayed only if there is a stream-stub).<\/p>","protected":false},"featured_media":0,"parent":1253,"menu_order":6,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_links_to":"","_links_to_target":""},"doc_tag":[],"class_list":["post-3925","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u0430\u043c\u043e\u0447\u043a\u0438 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430\u0445?<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/microimpuls.com\/en\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u0430\u043c\u043e\u0447\u043a\u0438 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430\u0445?\" \/>\n<meta property=\"og:description\" content=\"\u041a\u0430\u043d\u0430\u043b\u044b \u0441 \u0437\u0430\u043c\u043e\u0447\u043a\u0430\u043c\u0438 \u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0443, \u0447\u0442\u043e \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u0435\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0435\u0449\u0451 \u043f\u043e\u043c\u0438\u043c\u043e \u0442\u0435\u0445, \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443 \u043d\u0435\u0433\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c. \u041b\u0438\u0431\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u043c\u043e\u0447\u043a\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u0447\u0442\u043e \u0435\u0433\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c &#8212; \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0443\u0441\u0442\u0438\u0442 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u043e\u043d \u0443\u0432\u0438\u0434\u0438\u0442 \u0432\u0435\u0441\u044c \u0441\u0432\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u043d\u0430\u043b\u043e\u0432 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/microimpuls.com\/en\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels\/\" \/>\n<meta property=\"og:site_name\" content=\"Microimpuls\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-17T11:50:14+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/microimpuls.com\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels\",\"url\":\"https:\/\/microimpuls.com\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels\",\"name\":\"\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u0430\u043c\u043e\u0447\u043a\u0438 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430\u0445?\",\"isPartOf\":{\"@id\":\"https:\/\/micro.im\/#website\"},\"datePublished\":\"2023-02-17T08:47:46+00:00\",\"dateModified\":\"2023-02-17T11:50:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/microimpuls.com\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/microimpuls.com\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/microimpuls.com\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/micro.im\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Smarty\",\"item\":\"https:\/\/microimpuls.com\/docs\/smarty\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"F.A.Q.\",\"item\":\"https:\/\/microimpuls.com\/docs\/smarty\/extra\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u0430\u043c\u043e\u0447\u043a\u0438 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430\u0445?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/micro.im\/#website\",\"url\":\"https:\/\/micro.im\/\",\"name\":\"Microimpuls\",\"description\":\"\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f OTT \u0438 IPTV\",\"publisher\":{\"@id\":\"https:\/\/micro.im\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/micro.im\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/micro.im\/#organization\",\"name\":\"Microimpuls\",\"url\":\"https:\/\/micro.im\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"contentUrl\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"width\":208,\"height\":219,\"caption\":\"Microimpuls\"},\"image\":{\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to set up locks on the channels?","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/microimpuls.com\/en\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels\/","og_locale":"en_US","og_type":"article","og_title":"\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u0430\u043c\u043e\u0447\u043a\u0438 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430\u0445?","og_description":"\u041a\u0430\u043d\u0430\u043b\u044b \u0441 \u0437\u0430\u043c\u043e\u0447\u043a\u0430\u043c\u0438 \u043d\u0443\u0436\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0430\u0431\u043e\u043d\u0435\u043d\u0442\u0443, \u0447\u0442\u043e \u0432 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 \u0435\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u044b, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0435\u0449\u0451 \u043f\u043e\u043c\u0438\u043c\u043e \u0442\u0435\u0445, \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443 \u043d\u0435\u0433\u043e \u0443\u0436\u0435 \u0435\u0441\u0442\u044c. \u041b\u0438\u0431\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0437\u0430\u043c\u043e\u0447\u043a\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e, \u0447\u0442\u043e \u0435\u0433\u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430 \u043d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0430\u0441\u044c &#8212; \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u0443\u0441\u0442\u0438\u0442 \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u043e\u043d \u0443\u0432\u0438\u0434\u0438\u0442 \u0432\u0435\u0441\u044c \u0441\u0432\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u043d\u0430\u043b\u043e\u0432 [&hellip;]","og_url":"https:\/\/microimpuls.com\/en\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels\/","og_site_name":"Microimpuls","article_modified_time":"2023-02-17T11:50:14+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/microimpuls.com\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels","url":"https:\/\/microimpuls.com\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels","name":"How to set up locks on the channels?","isPartOf":{"@id":"https:\/\/micro.im\/#website"},"datePublished":"2023-02-17T08:47:46+00:00","dateModified":"2023-02-17T11:50:14+00:00","breadcrumb":{"@id":"https:\/\/microimpuls.com\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/microimpuls.com\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/microimpuls.com\/docs\/smarty\/extra\/how-to-config-locks-on-the-channels#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/micro.im\/"},{"@type":"ListItem","position":2,"name":"Smarty","item":"https:\/\/microimpuls.com\/docs\/smarty"},{"@type":"ListItem","position":3,"name":"F.A.Q.","item":"https:\/\/microimpuls.com\/docs\/smarty\/extra"},{"@type":"ListItem","position":4,"name":"\u041a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0437\u0430\u043c\u043e\u0447\u043a\u0438 \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0430\u0445?"}]},{"@type":"WebSite","@id":"https:\/\/micro.im\/#website","url":"https:\/\/micro.im\/","name":"Microimpulses","description":"Comprehensive solutions for OTT and IPTV","publisher":{"@id":"https:\/\/micro.im\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/micro.im\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/micro.im\/#organization","name":"Microimpulses","url":"https:\/\/micro.im\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/","url":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","contentUrl":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","width":208,"height":219,"caption":"Microimpuls"},"image":{"@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/3925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/comments?post=3925"}],"version-history":[{"count":3,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/3925\/revisions"}],"predecessor-version":[{"id":3932,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/3925\/revisions\/3932"}],"up":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/1253"}],"prev":[{"title":"How to Create Multiple TV Services in One Smarty","link":"https:\/\/microimpuls.com\/en\/docs\/smarty\/extra\/multiple-services-within-one-smarty","href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/7755"}],"wp:attachment":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/media?parent=3925"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/doc_tag?post=3925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}