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
Cel Question & Answers Forums (QA-Forums) Details »»
Cel Question & Answers Forums (QA-Forums)
Version: 4.1.002, by cellarius cellarius is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.1.4 Rating:
Released: 06-20-2011 Last Update: 06-21-2011 Installs: 10
Uses Plugins Template Edits
Translations  
No support by the author.

This Minimod has been requested on vbulletin-germany.com.

What does it do?
This Addon allows you to have Question and Answer Forums. It changes the statistics that are shown in forumbit.
Normally, vBulletin shows the total number of posts in a forum, i.e. evey post in a forum is counted. If you have a question/answers forum, this addon changes the phrase "Posts" to "Replies" and the phrase "Threads" to "Questions". It also subtracts the first posts from the total of posts inside a forum, so the statistics show only replies.
See screenshots:
There are the forumbits of two forums in the screenshots. In the first screenshot, the addon is activated for the upper one, in the second screenshot it is deactivated.


Installation


Install the product file in your Product Manager. Done.


Template edits

If you want to replace the phrases "Threads" and "Posts", you need to do the following template edits (if you're using Andreas' Template Modification System, you can skip this):

In template forumhome_forumbit_level2_post search for
Code:
{vb:rawphrase threads}
replace with
Code:
<vb:if condition="$forum[cel_replycount]">{vb:rawphrase cel_replycount_replacethreads}<vb:else />{vb:rawphrase threads}</vb:if>
Directly below in the same template, replace
Code:
{vb:rawphrase posts}
with
Code:
<vb:if condition="$forum[cel_replycount]">{vb:rawphrase cel_replycount_replaceposts}<vb:else />{vb:rawphrase posts}</vb:if>



Configuration

Under AdminCP -> Settings -> Options -> Cel Question & Answer Forums you can
  • set the addon to work for all forums, then exclude single forums by forumid
  • set the addon to work on single forums only defined by forumid
  • set whether you want to replace the phrases "Threads" and "Posts" in the relevant forums
In the Phrase Manager, you can edit the phrases "cel_replycount_replaceposts" and "cel_replycount_replacethreads" to your liking or to translate them.


Version history:
4.1.002: Added functionality to replace phrases
4.1.001: Release



### Don't forget to click install! ###
(No support if you don't)

Download Now

File Type: zip cel_qa-4-1-002.zip (2.3 KB, 42 views)

Screenshots

File Type: png active.PNG (18.9 KB, 0 views)
File Type: png inactive.PNG (18.7 KB, 0 views)
File Type: png admincp.PNG (66.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
birre, MrD

Comments
  #2  
Old 06-21-2011, 09:10 AM
Methok Methok is offline
 
Join Date: May 2011
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Brilliant, Thank you!
Reply With Quote
  #3  
Old 06-21-2011, 02:25 PM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please images
Reply With Quote
  #4  
Old 06-22-2011, 05:41 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What would you expect to see on an image? You see the normal forumbit, just the numbers are different. There's no real visual change involved.
Reply With Quote
  #5  
Old 06-22-2011, 06:57 AM
hayaldunya hayaldunya is offline
 
Join Date: Mar 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but please add screen shot
Reply With Quote
  #6  
Old 06-22-2011, 07:28 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Feel free to read the thread you're answering to.
Quote:
Originally Posted by cellarius View Post
What would you expect to see on an image? You see the normal forumbit, just the numbers are different. There's no real visual change involved.
Just look at your forumbit and imagine a lower number of posts listed.
Reply With Quote
  #7  
Old 06-22-2011, 07:37 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, for all those with limited imagination, two Screenshots added. Inactive, and active. Not much to be seen, though...
Reply With Quote
  #8  
Old 06-22-2011, 08:42 AM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New version: 4.1.002
  • new name: Cel Question and Answers Forums
  • added ability to replace phrases "Threads" and "Posts" in forumbit
  • fully phrased: The standard replacements "Questions" and "Answers" can easily be changed and translated
Reply With Quote
  #9  
Old 06-25-2011, 02:03 PM
cloferba cloferba is offline
 
Join Date: Apr 2009
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why dont an option to disable those stadistics?
Reply With Quote
  #10  
Old 06-25-2011, 09:37 PM
cellarius's Avatar
cellarius cellarius is offline
 
Join Date: Aug 2005
Posts: 1,987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can use the condition provided in the template changes to remove the statistics for the forums you have selected completely.
Reply With Quote
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 01:53 PM.


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.04986 seconds
  • Memory Usage 2,320KB
  • Queries Executed 24 (?)
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_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete