Topic-icon This VK tag still no longer works on my website

The topic has been locked.
Support Specialist
3 years 11 months ago #66339 by mel
The tag only renders when you're logged in with a VK.com user, by their design (not ours). Can you verify that you are logged in with a VK.com user? I just tested this on my test site with the new release and it worked as expected. Can you provide a link to your page with the behavior?

-Melissa
The topic has been locked.
3 years 11 months ago #66343 by alechu
Instead of a widget, I see this code:

<div class="custom" >
<p>
<div class="sourcecoast subscribe vk sc_vksubscribe"><div id="vk_subscribe"></div><script type="text/javascript">VK.Widgets.Subscribe('vk_subscribe', {width: 350,mode: 1,soft: 1}, );</script></div></p>
</div>

The topic has been locked.
3 years 11 months ago #66344 by alechu
I see that this widget is not shown for those who are not logged in via VK. This is very bad.

Will other VK widgets work if the user is not logged in via VK?
The topic has been locked.
Support Specialist
3 years 11 months ago - 3 years 11 months ago #66346 by mel
From above, it doesn't appear to have a user, group, etc to subscribe to. The field for that is empty. Can you provide details on how you've configured the widget parameters please?

VK.Widgets.Subscribe('vk_subscribe', {width: 350,mode: 1,soft: 1}, );


Besides the link to the Page or Group, the code seems to match vk's page on how to configure the widget. All we can do is match what they recommend in their developer documentation. We have no control over whether you need to be logged in or not for the widget to render.

-Melissa
Last edit: 3 years 11 months ago by mel.
The topic has been locked.
3 years 11 months ago - 3 years 11 months ago #66352 by alechu
I used this code for a widget on my site:
{SCVkSubscribe type=group link=https://vk.com/my_page display=1 mode=1 width=350}

I was able to see the VK widget only after I clicked on the login via the VK on my website. It is even strange that without a "login via VK" this widget is not displayed. Even the fact that in another browser tab I had a VK site open and I was logged in to VK, but I did not see a widget on my site until I logged in to my site through VK. When I was authorized on my site without using the VK (via login and password), I did not see this widget. This is a very strange behavior.

When I went to my site without a VK login, I did not see the VK widget, and in the site code I saw this:
<div class="custom"  >
        <p>
        <div class="sourcecoast subscribe vk sc_vksubscribe"><div id="vk_subscribe"></div><script type="text/javascript">VK.Widgets.Subscribe('vk_subscribe', {width: 350,mode: 1,soft: 1}, );</script></div></p>
    </div>
Last edit: 3 years 11 months ago by alechu.
The topic has been locked.
Support Specialist
3 years 11 months ago #66363 by alzander
This behavior is determined by VK and it makes sense. There are some widgets like this for other social networks as well. You can't subscribe unless you are authenticated with VK. It doesn't matter if they are authenticated on your website through Joomla, it must be through VK. That can be in another tab on VK.com or by using the Login with VK button on your site.

In either of those cases, a special cookie will be placed in your browser indicating to the widget that you are logged into VK somehow. We can't create that cookie on our own and don't have any way to force the Subscribe widget to show if the cookie isn't set.

I hope the above helps explain things,

Thanks,
Alex
The topic has been locked.