Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Ajax] Best Answer Details »»
[Ajax] Best Answer
Version: 1.9, by emath emath is offline
Developer Last Online: Jul 2022 Show Printable Version Email this Page

Category: Board Optimization - Version: 4.2.x Rating:
Released: 04-27-2016 Last Update: 07-01-2016 Installs: 17
DB Changes Uses Plugins
Re-useable Code Additional Files Translations  
No support by the author.

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 ##
  • Allow to select/unselect post as 'best answer'
  • Best answer is bumped ( duplicated ) to the top
  • Best answer post has an indication 'best answer' on top of the post
  • [SOLVED] prefix is added to threads with best answer, this will not replace any exiting prefix.
  • Can be configured to apply for specific forums only
  • By default, only the one who opened the thread can select/unselect a post as best answer
  • Pemissions allowing select as 'best answer' can be add for specific user groups
  • on/off configuration

## HOW TO INSTALL ##
  1. upload the content of the upload folder into your forum root directory
  2. import the XML file as new product
  3. go to settings -> options -> best answer and configure the product as u wish

## 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

Download Now

File Type: zip best answerV1.9.zip (37.8 KB, 75 views)

Screenshots

File Type: jpg select.JPG (14.0 KB, 0 views)
File Type: jpg thread_solved.JPG (31.1 KB, 0 views)
File Type: jpg unselect_and_post_indication.JPG (15.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
MarkFL, S!p, TheLastSuperman

Comments
  #12  
Old 05-05-2016, 09:36 PM
mysimsek mysimsek is offline
 
Join Date: Dec 2010
Location: Turkey
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

unfortunately, it doesn't look a thing in postbit
Reply With Quote
  #13  
Old 05-06-2016, 05:16 AM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did u set the usergroups and forum ids in the configuration ?

see pm..
Reply With Quote
  #14  
Old 05-07-2016, 09:44 AM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

V1.3

- bug fix : change exection order of plugin from 1 to 5
Reply With Quote
  #15  
Old 05-12-2016, 06:46 AM
dpixi dpixi is offline
 
Join Date: May 2016
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

what do i have to enter in "allowed user groups to select best answer" ids?

i dont get the "best answer" button to show up beside posts
Reply With Quote
  #16  
Old 05-12-2016, 11:30 AM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dpixi View Post
Hi,

what do i have to enter in "allowed user groups to select best answer" ids?

i dont get the "best answer" button to show up beside posts
The numbers of the user groups,separated by comma, that will have a permissions to select a post as best answer ( except the user who opened the thread ). Usually u will insert here the admins usergroup ids

The number of the usergroups can be seen in admin panel -> user groups -> manage usergroups
Reply With Quote
  #17  
Old 06-02-2016, 03:59 PM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've updated the docs a bit
Reply With Quote
  #18  
Old 06-09-2016, 08:18 AM
TeckTP TeckTP is offline
 
Join Date: Jun 2012
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi.
I installed plugin, but I totally do not know what to do next.
I imported the XML file, in the Admin Panel > Options > Best Answer l is visible option.
I set up groups with commas ex: 2,4,5
I do not know how to set up a forum ID if it is to be ex: 2-Help

Where embed CSS? Sorry for asking, but really this plug is very necessary to us
Reply With Quote
  #19  
Old 06-10-2016, 05:22 AM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TeckTP View Post
Hi.
I installed plugin, but I totally do not know what to do next.
I imported the XML file, in the Admin Panel > Options > Best Answer l is visible option.
I set up groups with commas ex: 2,4,5
I do not know how to set up a forum ID if it is to be ex: 2-Help

Where embed CSS? Sorry for asking, but really this plug is very necessary to us
hey,

to find your forum ids read here :

http://www.vbulletin.com/forum/forum...-id-of-a-forum

it should be just a number, no text .

regard the CSS, anywhere that applies on the showthread/showforum is ok, for example, you can add it in your additional.css file.

let me know if you still have issues or they are resolved
Reply With Quote
  #20  
Old 06-10-2016, 08:17 AM
TeckTP TeckTP is offline
 
Join Date: Jun 2012
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by emath View Post

let me know if you still have issues or they are resolved
Unable to start the plug.
I send screenshots how it looks on the server and in the panel
Attachment 155122

Attachment 155123

Attachment 155124

Attachment 155125

Attachment 155126

Attachment 155127

Attachment 155128
Reply With Quote
Благодарность от:
mysimsek
  #21  
Old 06-10-2016, 09:33 AM
emath emath is offline
 
Join Date: Sep 2008
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TeckTP View Post
Unable to start the plug.
I send screenshots how it looks on the server and in the panel
see pm
Reply With Quote
Благодарность от:
TeckTP
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05846 seconds
  • Memory Usage 2,347KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (5)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete