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 is submitted with its own form, adding multilingual function suitable for foreign trade zero 2019-12-11 nineteen thousand nine hundred and thirty-nine 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 fifteen thousand two 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 sixteen thousand five hundred and sixty-three 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 fifty-one thousand seven hundred and seven 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
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 Tianxing Studio multilingual translation plug-in can automatically translate up to 12 languages for foreign trade sites 06-23 -
two Detailed steps and screenshots of Youdao Cloud Translation to obtain appid and seckey 06-22 -
three The asynchronous notification page after Alipay payment prompts "Payment signature verification failed, please contact the administrator! "Causes and solutions 05-08 -
four Screenshot of AliCloud OSS configuration item acquisition steps, including ID and Secret, regional node endpoint, storage space bucket and resource access domain name 04-14 -
five The cause and solution of verification code error is always prompted in the background of zblog login 03-01 -
six Zblog uses api to submit post data, prompting the reason and solution of 419 error 02-23 -
seven Tianxing Studio 2025 Spring Festival Holiday Announcement 01-25 -
eight Tutorial of setting "WeChat notification" function of Tianxing user center plug-in 11-09 -
nine Alibaba Cloud 2024 Double 11 Event is recommended to participate through the website link and give away vouchers on the website 11-05
-
Label aggregation -
×1 301 Jump ×1 Zblogasp Free Theme ×1 How to modify the zblog theme ×1 Unlimited pull-down ×2 Web special effects ×2 Dedecms installation theme ×1 WeChat 5.0 ×2 Jq special effect ×1 hacker ×1 Swiper ×1 World online merchants ×1 SSH deployment ×1 Get classification ID ×1 Embarrassment Encyclopedia ×4 Zblogphp Enterprise Template ×1 Zblogphp adaptation ×1 Template Preview ×3 Alipay ×1 File Rebuild ×1 Yunfeng W5
Latest comments
-
Tianxing Studio 02-08 No restrictions Commented on: Tianxing Studio zblog Taoke theme is suitable for promoting websites with content -
visitor 02-08 Do you think the users of zblog Taoke must be enterprises? Commented on: Tianxing Studio zblog Taoke theme is suitable for promoting websites with content -
kevel 11-09 Guys, throw away some demo stations other than the authors. I want to see your layout settings Commented on: Template of zblog navigation station of Tianxing Studio with news, pictures and Taoke module -
Interesting life 10-22 I have always wanted to develop the function of zblog. I don't know whether it is enough Commented on: Code of zblog calling the latest comment (the latest message) -
visitor 10-16 When publishing an article, how to change the default status, such as changing to the default approval status? Commented on: Zblog article management: zblog creates and publishes articles