Jump to content
  • Sign Up

Search the Community

Showing results for tags 'like'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Development
    • HTML Coding
    • JavaScript
    • PHP
    • CMS
    • Database
    • Web Server
    • Web-site Development
    • Internet Marketing, SEO
  • Library
    • Tricks and solutions
    • Books
  • Commercial services
    • Freelance
    • Job
    • Goods and Services
  • Our Forum
    • Flame
    • Contests
    • Feedback and Ideas

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Web site


Telegram


Signal


Viber


Skype


From


Interests

Found 2 results

  1. 3d_max_9

    API vk

    Всем добра столкнулся с такой проблемой. Нужно подключить виджет vk "Мне нравится" то есть на страничке их будет много для каждого товара свой. пока делаю так: js class function VKApiLike(option){ this.option = $.extend({ apiId: '', postId: '', postDivId: '', widthButtonLike: 210, heightButtonLike: 18, pageTitleLike: '', pageDescriptionLike: '', type: 'full', pageUrl: '', pageImage: '', verb: 0, onlyWidgets: true, addButtonLike: 'tooltip-like', likePost: 'actionBox' },option); this.vkInit = function(){ VK.init({ apiId: XXXXX, onlyWidgets: true }); }; this.addWidget = function(){ var self = this; VK.Widgets.Like(self.option.postDivId, { width: self.option.widthButtonLike, height: self.option.heightButtonLike, type: self.option.type, pageTitle: self.option.pageTitleLike, pageDescription: self.option.pageDescriptionLike, pageUrl: self.option.pageUrl, pageImage: self.option.pageImage, verb: self.option.verb }, self.option.postId); }; this.addLikePost = function(id) { var self = this; VK.Observer.subscribe("widgets.like.liked", function f(e) { console.log(id); }); }; this.init = function(){ this.vkInit(); this.addWidget(); return this; }; return this;инициализация самого виджета мне нравиться var vkLike_1 = new VKApiLike({ postDivId: 'vk_like', width: 210, height: 24, type: 'button', pageTitle: 'Brand 2', pageDescription: 'Brand 2 description', pageUrl: 'http://test.test.com/1', pageImage: '/resources/images/test1.png', verb: 1, postId: 321 }).init(); vkLike_1.addLikePost('321');var vkLike_2 = new VKApiLike({ postDivId: 'vk_like2', width: 210, height: 24, type: 'full', pageTitle: 'Brand 2', pageDescription: 'Brand 2 description', pageUrl: 'http://test.test.com/2', pageImage: '/resources/images/test2.png', verb: 0, postId: 322 }).init(); vkLike_2.addLikePost('322');.........если человек лайкнул наступает событие "widgets.like.liked" но это событие срабатывает для всех виджетов на странице this.addLikePost = function(id) { var self = this; VK.Observer.subscribe("widgets.like.liked", function f(e) { console.log(id); }); };Вопрос вот в чем. Как мне отследить какой именно товар лайкнул юзер, (ккаой postId)? в event приходит только количество лайков.
  2. Доброго. Как заставить контакт цеплять изображение к поделиться ссылкой?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy