vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Add Glossary To Faq (https://vborg.vbsupport.ru/showthread.php?t=92129)

Princeton 07-12-2005 10:00 PM

Add Glossary To Faq
 
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:
  1. Modify database
  2. Modify templates

TIP:
  1. I recommend renaming the FAQ to HELP CENTER.
  2. 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)
[sql]ALTER TABLE `faq` DROP `dateline`;[/sql]
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

Quote:

Originally Posted by corriewf
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

Quote:

Originally Posted by bigcurt
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

Quote:

Originally Posted by JD210
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

Quote:

Originally Posted by JD210
Vast Frontier Here is the link to the main page.

something wrong with template(s)
this section is viewable: http://www.gothicgaming.com/forum/fa...q=gtp_glossary

can you post your faqbit template?

JD210 07-14-2005 12:21 AM

Code:

<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

Quote:

Originally Posted by bigcurt
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

Quote:

Originally Posted by princeton
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

Quote:

Originally Posted by COBRAws
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)
[sql]ALTER TABLE `faq` DROP `dateline`;[/sql]
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

Quote:

Originally Posted by yoyoyoyo
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
Code:

.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


All times are GMT. The time now is 02: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.01155 seconds
  • Memory Usage 1,768KB
  • 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
  • (2)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (26)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