Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adding FAQ entries via a product or plugin
RedTyger's Avatar
RedTyger
Join Date: Nov 2006
Posts: 1,310

 

UK
Show Printable Version Email this Page Subscription
RedTyger RedTyger is offline 05-02-2007, 10:00 PM

I could find no information about this anywhere, so hopefully I will be the last frustrated searcher on the subject of how to add the the FAQ using a product or plugin. Here's the syntax.

Code:
<phrases>
<phrasetype name="FAQ Title" fieldname="faqtitle">
          <phrase name="my_faq_entry1"><![CDATA[My FAQ Entry 1 Title]]></phrase>
          <phrase name="my_faq_entry2"><![CDATA[My FAQ Entry 2 Title]]></phrase>
</phrasetype>
<phrasetype name="FAQ Text" fieldname="faqtext">
          <phrase name="my_faq_entry1"><![CDATA[My FAQ Entry 1 Text]]></phrase>
          <phrase name="my_faq_entry2"><![CDATA[My FAQ Entry 2 Text]]></phrase>
</phrasetype>
</phrases>

<faqentries>
          <faq faqname="my_faq_entry1" faqparent="vb_read_and_post" displayorder="999" />
          <faq faqname="my_faq_entry2" faqparent="vb_read_and_post" displayorder="999" />
</faqentries>

The faqparent field determines where your entries show up in relation to the default FAQ library. If you want to add to an existing FAQ section, you can find out what to put in this field by editing an FAQ entry using the FAQ Manager in the AdminCP. The id you need to use is displayed in the title at the top of the page. The value given in the example means that the custom FAQ entries will appear at the bottom of the list of "Reading and Posting Messages" FAQs.

If you want to add a complete new section then give your FAQ entry's faqparent the value faqroot. In this sense I mean section as a block of FAQ entries on the FAQ index page. The default contains one section titled "vBulletin FAQ" with three subsections. Using faqroot will add another entirely new "vBulletin FAQ"-style block.

A display order of 1 doesn't actually place it at the top (actually third place, in the example at least) so it's best to use a high number and head for the bottom of the list consistently.

And that's all folks.

Quote:
Originally Posted by Princeton View Post
this is done automatically by vbulletin ...
you will need to create a product (Project Manager) and in debug mode add your FAQ items

once you are finished, you can download your product
Reply With Quote
  #2  
Old 05-04-2007, 07:54 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is done automatically by vbulletin ...
you will need to create a product (Project Manager) and in debug mode add your FAQ items

once you are finished, you can download your product
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 05:59 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.03309 seconds
  • Memory Usage 2,195KB
  • Queries Executed 15 (?)
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
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (2)post_thanks_box
  • (2)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit_info
  • (1)postbit
  • (2)postbit_onlinestatus
  • (2)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete