vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Mini Mods - FAQ phrases everywhere! (https://vborg.vbsupport.ru/showthread.php?t=177894)

Lea Verou 05-02-2008 09:00 PM

FAQ phrases everywhere!
 
I wanted to have various help texts in a lot of places in my site but didn't want to put them raw in the template or create new phrases for them. Help texts are mostly suited for the FAQ, aren't they?
So, what I did is add them in the FAQ and made this little product that enables all faq phrases in certain scripts you define via a setting in the admincp.
Then you can use the arrays $faqtexts[varname] for the text and $faqtitles[varname] for the title.
I haven't tested it a lot, so its beta. I only tested it with very simple FAQ items.
Its also unsupported, as I don't have the time or energy to support hacks at the moment.
I just thought someone might find it useful, so I decided to share it. :)

It adds one query to each page you want it on.

You can find the THIS_SCRIPT names of files in the first lines. Most of the times its the same as the filename without the ".php".

Veronica Vain 05-03-2008 04:30 AM

great hack

wsdeluxe 05-03-2008 08:31 AM

Screenshots? Demo?

Lea Verou 05-03-2008 03:47 PM

Quote:

Originally Posted by wsdeluxe (Post 1506631)
Screenshots? Demo?

Due to the nature of the hack, a screenshot or demo wouldn't be of much use.
If you don't understand what it does after reading the first post, you probably don't need it anyway. :)

Veronica thanks! It seems that it was a good idea to release it after all, since 6 people needed it :)

RedGTiVR6 06-30-2008 03:19 PM

anyone have any ideas about how to get this to show up in a post?


All times are GMT. The time now is 05:25 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.01458 seconds
  • Memory Usage 1,711KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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