vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Cel Question & Answers Forums (QA-Forums) (https://vborg.vbsupport.ru/showthread.php?t=265574)

cellarius 06-20-2011 10:00 PM

Cel Question & Answers Forums (QA-Forums)
 
1 Attachment(s)
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)

Methok 06-21-2011 09:10 AM

Brilliant, Thank you!

Manoel J?nior 06-21-2011 02:25 PM

Please images

cellarius 06-22-2011 05:41 AM

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.

hayaldunya 06-22-2011 06:57 AM

Thanks, but please add screen shot

cellarius 06-22-2011 07:28 AM

Feel free to read the thread you're answering to.
Quote:

Originally Posted by cellarius (Post 2211195)
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.

cellarius 06-22-2011 07:37 AM

OK, for all those with limited imagination, two Screenshots added. Inactive, and active. Not much to be seen, though...

cellarius 06-22-2011 08:42 AM

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

cloferba 06-25-2011 02:03 PM

why dont an option to disable those stadistics?

cellarius 06-25-2011 09:37 PM

You can use the condition provided in the template changes to remove the statistics for the forums you have selected completely.


All times are GMT. The time now is 03:16 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
  • Page Generation 0.00983 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete