PDA

View Full Version : Mini Mods - FAQ phrases everywhere!


Lea Verou
05-02-2008, 10:00 PM
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, 05:30 AM
great hack

wsdeluxe
05-03-2008, 09:31 AM
Screenshots? Demo?

Lea Verou
05-03-2008, 04:47 PM
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, 04:19 PM
anyone have any ideas about how to get this to show up in a post?