AcFun&BiliBili statistical plug-in WordPress version released

Last year I wrote Bangumi I didn't expect that some people were using the statistics plug-in. Some users said that tracking statistics needs to click on data on third-party websites, which is very tedious. So I wrote this tracking statistics display plug-in compatible with AcFun (Station A) and Bilibili (Station B).

Effect picture (click the picture to jump to preview)

Plug in Features

  1. compatible AcFun And Bilibili Dual site, single station data or all data can be displayed.
  2. Provide based on wp-ajax To access the API and return json standard data, which is conducive to front-end secondary development.
  3. Provide daily cache function to speed up access.
  4. Use the official WordPress request API instead of curl for good compatibility.
  5. Front and back separation, paging based on java scrpit and other functions.

Plug in download

Plug ins are free of charge, but some APIs are not obtained through official channels. To avoid related risks, plug-ins are temporarily placed in the QQ group.
Group joining: 313732000

instructions

  1. Download the plug-in zip, upload and enable it.
  2. Find the plug-in background page in WordPress background ->Settings ->AB fan chasing page.
  3. Fill in the corresponding account information (if you only use a site, you can only fill in the site information).
  4. Select the onstage display drama category (ACFUN, bilibili or co display).
  5. Modify other options as needed, and then click Save.
  6. Create a new page or article and use short code in the editor ab_bangumi Introduction of fan chasing list.
  7. Publish or preview the page.

common problem

  1. Bilibili's drama pictures are not displayed?
    By default, Bili Bili anti-theft chain blocks non Bili and non empty refer access. Plug in can insert compatible code for you. Just check this option:
    The new version has solved this problem by default. Please download the latest version.

  2. Keep going round and round without loading drama content?
    If you use the ajax theme, please check the ajax compatible and callback plug-in initialization code in the ajax callback of your theme:

Modification description

  1. How to modify the front end style?
    The plug-in directory contains css Folder, which can be modified according to the dom level of the webpage css The style file in the folder.
  2. How do I replace the front end style?
    Plug ins are provided based on wp-ajax Access API of. Through this API, you can obtain the unified json Data. The json data contains Success or not Get Data List error message Paging information The customized front end can update the page according to these data. The API address of the plug-in is as follows:

     //Your blog link/wp admin/admin ajax. php? action=GetABBangumiData

    The returned data format is as follows:

     { success:true or false data:[] or null error:"" or string singleItemNum:6 singleNavNum:3 }

statement

  1. This plug-in is for learning purposes only.
  2. It is allowed to modify and use it for its own use (for learning purposes). In order to avoid some infringement risks, it is prohibited to modify and distribute it again.
  3. AiliCili Blow the bottle~
  4. You lose when you get serious.
Zimiao haunting blog (azimiao. com) All rights reserved. Please note the link when reprinting: https://www.azimiao.com/5947.html
Welcome to the Zimiao haunting blog exchange group: three hundred and thirteen million seven hundred and thirty-two thousand

Comment

*

*

Comment area

  1. Mulsd 03-19 11:27 reply

    The wall crack requires a plug-in available for hexo (manual dog head

  2. roughly 03-20 11:33 reply

    thank you! Although I don't need to insert videos, I know from your information that WordPress has its own HTTP request API!

  3. xinxin 08-21 15:15 reply

    Boss, strongly request a typecho plug-in 😀