Zblogphp comes with a complete set of js framework comment interfaces
//Verification rules for comment fields. The submitted content must have a test field zbp.options.comment.inputs.test = { required: true, getter: function () { return 'ZBPJF' }, validator: function (text, callback) { if (text !== 'ZBPJF') { callback(new Error('No ZBPJF!')) } else { //Null means no problem callback(null) } } } //Hanging interface //Get comment data zbp.plugin.on("comment.get", "ZBPJFExample", function (postId, page) { Console. log ('Start trying to comment on data ') }) //Get comment data zbp.plugin.on("comment.got", "ZBPJFExample", function (formData, data, textStatus, jqXhr) { Console. log ('Get comment data ') console.log(data) }) //The comment start interface can only read and modify formData zbp.plugin.on("comment.post.start", "ZBPJFExample", function (formData) { Console. log ('Start commenting! ') }) //Comment on the interface in verification zbp.plugin.on("comment.post.validate", "ZBPJFExample", function (formData) { Console. log ('Comments are being verified! ') }) //Comment verification failure interface zbp.plugin.on('comment.post.validate.error', 'ZBPJFExample', function (error, formData) { Console. log ('Comment verification failed: '+error. code) }) //Comment Verification Successful Interface zbp.plugin.on('comment.post.validate.success', 'ZBPJFExample', function (formData) { Console. log ('Comments verified successfully! ') }) //Comment sent successfully interface zbp.plugin.on('comment.post.success', 'ZBPJFExample', function (formData, data, textStatus, jqXhr) { Console. log ('Comments sent successfully! ') Console.log ("System returned data:"); console.log(data) }) //Comment sending failure interface zbp.plugin.on('comment.post.error', 'ZBPJFExample', function (error, formData, data, textStatus, jqXhr) { Console. log ('Comment sending failed, error: '+error. code) console.log(error) }) //Comment sending end interface //Whether successful or failed, the end of comment sending will be triggered zbp.plugin.on('comment.post.done', 'ZBPJFExample', function (error, formData, data, textStatus, jqXhr) { Console. log ('End of sending comments') }) //Comment reply interface, which may be invalid in the theme used for the old version //In addition, you can unbind system related events through zbp. plugin. unbind ("comment. reply", "system default"). zbp.plugin.on("comment.reply.start", "ZBPJFExample", function (id) { Console. log ("reply comment ID:"+id); }); //If the comment reply interface is cancelled, it may be invalid in the theme used for the old version. If the system is unbound, the event may be invalid. //Themes may be required zbp.plugin.on("comment.reply.cancel", "ZBPJFExample", function (id) { Console.log ("Cancel reply comment"); });
Can't find a tutorial that can solve your problem?
-
Charging zblogphp template The 9th zblog enterprise theme of Tianxing Studio has its own form to submit email reminders, etc zero 2019-12-11 eleven thousand two hundred and four Price: four hundred and sixty-eight Online purchase -
Charging zblogphp template Tianxing Studio ppt download template is suitable for sites with resources to sell vips one 2019-10-03 nine thousand eight hundred and nineteen Price: one hundred and ninety-nine Online purchase -
Wordpress template Tianxing Studio wordpress download station theme is applicable to software/app/game and other download stations zero 2022-05-06 five thousand four hundred and thirty-two Price: three hundred and fifty-five Online purchase -
Charging zblogphp template Tianxing Studio zblogphp enterprise theme 6 Self configurable atmosphere zblog enterprise theme two 2018-06-26 forty-four thousand eight hundred and eighty Price: two hundred and fifty-eight Online purchase
Related recommendations
-
The zblogphp hook interface inserts the specified content into the article body 07-14 -
In 2020, version 1.6 of zblog will finally go online 03-26 -
The call tags of the total number of articles and comments called by zblogphp 03-16 -
Discussion on setting tags for zblogphp comments 08-04 -
Zblog 1.5 officially released: Z-BlogPHP 1.5 Zero Released! 10-31 -
Zblogphp determines whether the user logs in 10-21 -
Zblogphp obtains articles of multiple categories and sorts them according to the specified requirements (the latest hot reviews) 04-18 -
Can ZBLOG PHP use PHP 7? 01-19 -
Zblogphp's Pits: Why are sub classified articles not displayed under the parent category? 06-15 -
Precautions for the use of Z-BlogPHP on HiChina free virtual host 06-12 -
Zblogphp image immobilizer code Other files are also available 05-20 -
Advanced Tutorial: jq Color Palette Added in the Background of zblogphp 02-28 -
Zblogphp calls the method with the most comments for the latest and hottest articles 02-03 -
Zblogphp pseudo static rule (URL configuration) case description 01-07 -
The latest method of setting 404 pages by zblogphp 12-31 -
Reprint: zblogphp common problems and solutions 12-10
welcome you Comment: Cancel Reply
-
Zblog enterprise theme -
Zblog image theme -
Zblog resource topic -
Zblog CMS topic -
Wordpress template -
Zblog video theme -
Zblog Taobao guest theme -
Zblog navigation topic
Select a theme?
-
Latest articles -
Hot article ranking -
Most Comments
-
one Shopping activity on the official website of Tianxing Studio: unlimited number of times and amount of 20% discount coupons 04-17 -
two Tianxing Studio zblog pure blog theme vue3+applet dual version 03-19 -
three Error causes and solutions of introducing vant into vue3 project 03-12 -
four Tianxing Studio zblog encyclopedia theme can be matched with member plug-ins to realize knowledge payment profitability 03-06 -
five How does zblog intercept a summary with a specified number of words? Introduction to the custom interception method of zblog summary 02-29 -
six Tianxing Studio 2023 Double 11 Event: 50% discount coupons 11-05 -
seven Tencent Cloud 2023 Double 11 Activity: 2H2G3M lightweight server 88 new users for one year 11-05 -
eight AliCloud 2023 Double 11 Activity: 2-core 2G3M bandwidth ECS 99 yuan/year! 10-31 -
nine Tianxing Studio zblog free login paid reading plug-in supports Alipay WeChat payment Hupi Pepper payment 10-09
-
Label aggregation -
×1 Release time ×2 Mid-Autumn Festival ×1 Emlog free theme ×1 2023 Spring Festival ×1 Zblog search template ×1 Data optimization ×1 Zblogphp call column ×1 Your user name does not exist ×1 Zblog background template ×1 Zblogasp Free Theme ×1 Zblog host ×2 copyright protection ×1 unknown error ×1 Classified filtering ×2 Zblog image template ×1 Advertising ×2 Zblog toolbar ×1 struggle ×1 Zblogphp backup ×1 Immediate arrival
Latest comments
-
Tianxing Studio 03-21 Yes, it will be repaired in the next version Commented on: Tianxing Studio zblog pure blog theme vue3+applet dual version -
visitor 03-20 This template has multiple side-by-side pictures. No matter which picture you click, the first picture will be displayed. There is no carousel button, and you can only manually close it. System: win7+Firefox Commented on: Tianxing Studio zblog pure blog theme vue3+applet dual version -
Tianxing Studio 01-19 I don't understand. Do you want to create categories in batches? This is not considered by the theme of plug-ins Commented on: Tianxing Studio zblog cms theme charging version supports extreme personalized configuration -
visitor 01-18 It is too troublesome to classify and set one by one. Can you add classification settings in the theme settings. Commented on: Tianxing Studio zblog cms theme charging version supports extreme personalized configuration -
Tianxing Studio 01-16 I don't quite understand your requirements. Please contact our online qq2076496616 to provide the order number to specify your requirements Commented on: Tianxing Studio zblog cms theme charging version supports extreme personalized configuration