AcFun&BiliBili statistical plug-in WordPress version released
Effect picture (click the picture to jump to preview)
Plug in Features
-
compatible AcFun And Bilibili Dual site, single station data or all data can be displayed. -
Provide based on wp-ajax To access the API and return json standard data, which is conducive to front-end secondary development. -
Provide daily cache function to speed up access. -
Use the official WordPress request API instead of curl for good compatibility. -
Front and back separation, paging based on java scrpit and other functions.
Plug in download
instructions
-
Download the plug-in zip, upload and enable it. -
Find the plug-in background page in WordPress background ->Settings ->AB fan chasing page.
-
Fill in the corresponding account information (if you only use a site, you can only fill in the site information). -
Select the onstage display drama category (ACFUN, bilibili or co display). -
Modify other options as needed, and then click Save. -
Create a new page or article and use short code in the editor ab_bangumi Introduction of fan chasing list. -
Publish or preview the page.
common problem
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. -
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
-
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. -
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
-
This plug-in is for learning purposes only. -
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. -
AiliCili Blow the bottle~ -
You lose when you get serious.