![]() |
[Ajax] Best Answer
1 Attachment(s)
This is a quite simple and effective mod to select a post as Best Answer .
see readme file before installing . Donations are always welcome :) ------------------------------------------------ ## Features ##
## HOW TO INSTALL ##
## Style - css ## The mod doesn't come with any particular css with it, as each forum has its own style. With that said, all of the mod related html elements were attached to class so adding css is easy . In addition, there is example.css file which can be used for those who want the css i wrote . just add it to additional.css or wherever u like this css to be . ## Compatability ## was tested over vB4.2.2 nad vB4.2.3 but should work with any vB4.x . use this at your own risk, always backup your database before installing any new mod ! ## Changelog ## V1.9 - bug fix, handle deleted posts V1.8 - bug fix : show best answer only in first page - bug fix : first post in second page could not be selected as 'best answer' - bug fix in plugins ( add global $vbulletin; at top of each plugin ) - verified that works with 4.2.3 V1.3 - bug fix : change exection order of plugin from 1 to 5 V1.2 - changed loading script from 'async' to 'defer' - add uninstall code ## license ## MIT license ## Q & A ## How can i find my forum ids ? read here : http://www.vbulletin.com/forum/forum...-id-of-a-forum |
I don't understand the changes to the database
|
I just mentioned what database changes there is, I've removed that section .
|
Using 4.1.0 myself. Upon installing it took almost 5 minutes to open single topic.
Uninstalled. |
Quote:
By topic u meant thread ? And did the installation went good ? Please provide a link to your forum ( if u have a test forum, PM it to me and I will check it, I don't have a vb4.1 and I cannot reproduce it over 4.2) |
Hello fellow math enthusiast! :D
You could remove the need for editing the "SHOWTHREAD" template by adding a plugin hooked at "parse_templates" with the following Plugin PHP Code: PHP Code:
Adding the version number parameter (which you should increment anytime you change that .js file when you upload an update of this product here) will ensure the new version is loaded by browsers, rather than using the cached older version which browsers will do unless the cache is cleared. Manual template edits will keep some folks from trying a product (hacking templates is rightfully frowned upon by many, and in addition template hacks have to be done for each active style), and so I wanted to offer a little help to remove that need. :) |
yeah i know, I've also could use showthread_below_posts template hook,
I didn't find it right to add a hook for script src tag, because then it will be 'hidden' and some like to bundle and minify all their javascript files, but i guess you are right. I've added async attirbute to the script tag so it won't block any content . The product has been updated and now no template edits are needed . Thanks . |
unfortunately it did not work
|
Quote:
|
mysimsek, maybe the update will fix your issue
## Changelog ## V1.2 - changed loading script from 'async' to 'defer' - add uninstall code |
All times are GMT. The time now is 01:39 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|