View Full Version : Add Glossary To Faq
Princeton
07-12-2005, 10:00 PM
A simple modification that adds a glossary to the FAQ.
A must have feature if you use words on your site that people may not understand.
It's actually just a template modification but I have provided the queries to create Glossary sections, etc--so, I am not sure if it's ok to place this here.
INSTRUCTIONS:
Modify database
Modify templates
TIP:
I recommend renaming the FAQ to HELP CENTER.
Click the INSTALL button (to your right) if you want to be informed of updates.
JD210
07-13-2005, 08:34 PM
Looks good, something I could put to good use. Clicks install.
Princeton
07-13-2005, 08:35 PM
To add timestamp to faq, please visit the ADD DATE/TIME TO EACH FAQ addon
if you have the ADD DATE/TIME TO EACH FAQ addon installed already do the following:
run this query: (add TABLE_PREFIX if you use one)
ALTER TABLE `faq` DROP `dateline`;
thereafter, run the queries found on the ADD DATE/TIME TO EACH FAQ addon
Corriewf
07-13-2005, 08:38 PM
Again another hack I needed. Thanks for coding something for the 3.0.x users.
bigcurt
07-13-2005, 08:39 PM
This is going to hurt CINQ cause if I am not mistaken he is the EXACT same hack, except I believe he is selling it :(
Either way, it is a nice hack
Princeton
07-13-2005, 08:41 PM
Again another hack I needed. Thanks for coding something for the 3.0.x users.
if you installed the ADD DATE/TIME TO FAQ addon you will need to remove the dateline field temporarily ... you can then use the query provided in ADD DATE/TIME TO FAQ to add and update the 'dateline' field
Princeton
07-13-2005, 08:43 PM
This is going to hurt CINQ cause if I am not mistaken he is the EXACT same hack, except I believe he is selling it :(
Either way, it is a nice hack
no, actually this is just a simple modification...
I believe his 'Glossary' may have more features.
bigcurt
07-13-2005, 08:44 PM
Oh ok, I was just wondering cause I saw it on his site, either way very nice princeton
JD210
07-13-2005, 11:07 PM
Question: I installed the queries and the templates, but when I go into my faq page I don't see anything different than before, so, what do I need to do?
Princeton
07-13-2005, 11:36 PM
Question: I installed the queries and the templates, but when I go into my faq page I don't see anything different than before, so, what do I need to do?
If installed correctly you should see a section called 'Web Terms' along with the alphabet (view attachment on first post).
Can you provide a URL?
go to http://www.yourdomain.com/faq.php?faq=gtp_glossary and see if it will come up ... if it doesn't than there's nothing in the database
JD210
07-14-2005, 12:09 AM
<a href="http://www.gothicgaming.com/forum/portal.php" target="_blank">Vast Frontier</a> Here is the link to the main page.
Princeton
07-14-2005, 12:12 AM
Vast Frontier (http://www.gothicgaming.com/forum/portal.php) Here is the link to the main page.
something wrong with template(s)
this section is viewable: http://www.gothicgaming.com/forum/faq.php?faq=gtp_glossary
can you post your faqbit template?
JD210
07-14-2005, 12:21 AM
<a name="faq_$faq[faqname]"></a>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat"><if condition="$show['faqsublinks']"><a href="faq.php?$session[sessionurl]faq=$faq[faqname]">$faq[title]</a><else />$faq[title]</if></td>
</tr>
<if condition="$show['faqtext']">
<tr>
<td class="alt1">$faq[text]</td>
</tr>
</if>
<if condition="$show['faqsublinks']">
<tr>
<td class="alt2"><if condition="$DISABLE"><ul>$faqsublinks</ul></if>
<if condition="$faq[faqname]==gtp_glossary">
<p class="cen">$faqsublinks</p>
<else />
<ul>$faqsublinks</ul>
</if></td>
</tr>
</if>
</table>
<br />
yoyoyoyo
07-14-2005, 12:27 AM
This is going to hurt CINQ cause if I am not mistaken he is the EXACT same hack, except I believe he is selling it :(
It is free on his site, as is his articles hack. He does not sell any hacks, though he accepts donations. But as Princeton said, this is much different, and I actually have both installed now :D Cinq's is a tooltips kind of thing that appears each time a glossary word is entered in to any post.
Princeton
07-14-2005, 12:28 AM
JD210,
check the display order ... make sure it is NOT 0
JD210
07-14-2005, 12:38 AM
Display order is not 0
Princeton
07-14-2005, 12:48 AM
without access to the site I'm am just guessing at your setup (3.0.3)
revert the faqbit template and see if it comes up
JD210
07-14-2005, 12:55 AM
reverted. Same thing comes up, no difference.
Princeton
07-14-2005, 12:59 AM
if you can't find the problem ... contact me via private message and I'll see what I can do
JD210
07-14-2005, 01:06 AM
Okay, I will see what I can do, if not you will be getting an IM from me. Thanks.
Edit: Fixed thanks to Princeton. Thanks again.
COBRAws
07-14-2005, 03:48 AM
if you installed the ADD DATE/TIME TO FAQ addon you will need to remove the dateline field temporarily ... you can then use the query provided in ADD DATE/TIME TO FAQ to add and update the 'dateline' field
both hacks deserve credit! But as soon as I read this, Im not sure what to do. What do I need to disable and where for these 2 to be compatible?
Thank you in advance.
Princeton
07-14-2005, 12:49 PM
both hacks deserve credit! But as soon as I read this, Im not sure what to do. What do I need to disable and where for these 2 to be compatible?
Thank you in advance.
run this query: (add TABLE_PREFIX if you use one)
ALTER TABLE `faq` DROP `dateline`;
thereafter, run the queries found on the ADD DATE/TIME addon
yoyoyoyo
07-14-2005, 01:46 PM
I just noticed that your layout in your screenshot and mine look different. How do I get the A - Z area centered like yours?
Princeton
07-14-2005, 01:53 PM
I just noticed that your layout in your screenshot and mine look different. How do I get the A - Z area centered like yours?
add this to your stylesheet
.cen{text-align:center}
COBRAws
07-14-2005, 04:28 PM
up and running, thanks m8!
/me installs
GrendelKhan{TSU
08-01-2005, 08:24 AM
any word on this for 3.5 rc1?
(hint hint nudge nudge ;) :p) :D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.