Milyutin Code Article Reposter for VK

外掛說明

Milyutin Code Article Reposter for VK is a powerful WordPress plugin that automatically publishes your articles to a VKontakte group.

  • Automatic publishing – triggers when you publish a post.
  • Two sources for the short summary:
    • Yandex GPT – generates a concise preview using a neural network (requires API key and Folder ID).
    • First paragraph (excerpt) – uses the first paragraph of the article. Free and simple.
  • Image upload – automatically finds and uploads the featured image, Gutenberg block image, or the first image from the content. Supports HTTP API with CURL fallback for reliability.
  • Manual publishing – each post editor has a “Publish now” button for manual sending. If the post is already published, you can re-publish it with a fresh image and text.
  • Auto‑update on post changes – when you update an existing published post (title, content, or featured image), the plugin automatically removes the old VK post and creates a new one with the updated content and image.
  • Smart logging – all actions are logged to a separate log file, viewable in the admin area.
  • Fully translatable – all strings are ready for translation.

External services

This plugin uses the following external services:

  1. VKontakte API – used for publishing posts, uploading photos, and retrieving group information.

    • Data sent: post title, content, excerpt, featured image, access token.
    • When: during automatic or manual post publication, and during post updates.
    • Terms of Service: https://vk.com/terms
    • Privacy Policy: https://vk.com/privacy
  2. Yandex GPT API – used for generating article summaries (optional, only when enabled in settings).

    • Data sent: article content (first 3000 characters), API key, Folder ID.
    • When: during publication if Yandex GPT is selected as the summary source.
    • Terms of Service: https://yandex.ru/legal/cloud_termsofuse
    • Privacy Policy: https://yandex.ru/legal/confidential

安裝方式

  1. Upload the plugin folder to /wp-content/plugins/ or install via “Add New” in the WordPress admin.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Go to “Milyutin Code Article Reposter for VK” in the left admin menu.
  4. Fill in the fields:
    • Group ID: numeric ID of your VK group (e.g., 123456789).
    • Access token: get a token via vkhost.github.io (choose Kate Mobile, permissions wall, photos, groups, offline).
  5. Choose the summary source (Yandex GPT or first paragraph).
  6. Click “Save Settings”.

常見問題集

Do I have to pay for Yandex GPT?

Yes, Yandex GPT is a paid service, but they offer a free trial grant. If you prefer not to pay, select the “First paragraph” mode.

Can I publish to multiple groups?

Not yet, but we plan to add this feature in the future.

What if the image does not upload?

The plugin now uses a hybrid upload method: first tries WordPress HTTP API, then falls back to CURL if needed. Check that your post has a featured image or an image in the content. Also ensure your VK token has photos permission.

Where can I see the plugin logs?

There is a “Logs” submenu under the plugin menu, where all events are displayed.

How does the auto-update work?

When you update a post that has already been published to VK, the plugin checks if the title, content, or featured image changed. If so, it deletes the old VK post and creates a new one with the updated data. This ensures the image is also refreshed.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Milyutin Code Article Reposter for VK〉的開發相關工作。

參與者

〈Milyutin Code Article Reposter for VK〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Milyutin Code Article Reposter for VK〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

  • Added auto‑update of VK posts when the WordPress post is updated (title, content, or featured image changes) – uses wall.delete + wall.post.
  • Improved image upload reliability with hybrid approach: HTTP API + CURL fallback.
  • Fixed internationalization issues (proper escaping and text domains).
  • Replaced inline scripts/styles with proper enqueuing.
  • Added “Publish again” button in the meta box for already published posts.
  • Updated Yandex Terms/Privacy links to working URLs.
  • Russian translation for all user‑facing strings.
  • General code improvements and security hardening.

1.0.0

  • Initial stable release.