laveit / mybb-plugin-mark-best-answer-in-thread Goto Github PK
View Code? Open in Web Editor NEWAllow the thread author to choose the best answer!
Allow the thread author to choose the best answer!
You can use the following variables in postbit, if you have activated the plugin. (Templates & Styles -> Templates -> your Theme -> Post Bit Templates -> postbit) Show all "best answers" a user has received = {$post['countsba']} Show "Mark as best answer"-button = {$post['button_ba']} Show the "Delete"-button = {$post['button_del_ba']} <div class> for the background-color-change: {$post['ts_class']} Important (!!!): This plugin was written for the default theme of MyBB. The variables in the standard theme are automatically set in the postbit template. You may have to set the variables manually in your individual template!
Now only author of the thread can mark a best answer in the thread. I would like to have this option to extend this to for example moderators, administrators etc.
If there is a best answer in the thread, display a button with text -> jump to the best answer. If not, no button displayed.
Now the text is displayed instead of a button - mark as the best answer. Why? Better to hide the button and display this text in an own variable for better usage in templates and theme.
As title says + template for customization
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.