Previous Thread
Next Thread
Print Thread
Rate Thread
#234186 01/26/2003 2:40 PM
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
What is it?: An English FAQ that uses a template.

Why should I care?: If you've installed the table wrapper mod the FAQ page won't match the look and feel of the rest of your site.

Props to Omegatron for spotting a way to structure the script to make it more compatable with different servers

Example: Da FAQ

Props to Omegatron for finding an error in my original template! The attachment has been updated

Instructions: Backing up is good, not backing up is bad...

Copy the faq_english.php file to your threads directory, after you back up the original...

Copy the faq_english.tmpl file to your /templates/default directory.

Footnote: I looked at the faq_big5.php file and my eyes crossed. I may tackle the other FAQs later, but since most of my visitors speak some form of english I'm holding off on porting the rest. If / when I do I'll post the complete mod here.

Enjoy
Attachments
66320-FAQ.zip (0 Bytes, 10 downloads)

Last edited by Dalantech; 01/28/2003 12:44 AM.
Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
This has been mentioned elsewhere that the FAQ files need some sort of make over just like this. Thanks for all the effort you put into it!

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
LOL!

I asked for it over at the Info Pop Threads support forum, but I didn't want to wait so I went ahead and did the conversion for the English FAQ. I will probably do the others later, I just hope I get to use my own versions for a while before Rick converts them

Oh, and it stll needs some work. There should be bookmarks to take you back to the top of the page at every Q and A block.

Last edited by Dalantech; 01/26/2003 2:59 PM.
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Now you need to grab my 'real time graemlins" mod from the other forum and work that bit of code into here, so it would display the accurate graemlins.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Just a note on this mod. Must be something about my server I guess. I installed this and it would not show the tablewrappers. Here is your file guts

// Require the library
require ("./main.inc.php");

// -------------
// Get the input
$Cat = get_input("Cat","get");

// ---------------------
// Grab the tablewrapper
$html = new html;
list($tbopen,$tbclose) = $html -> table_wrapper();

// ---------------------
// Send the page to them
$html = new html;
$html -> send_header("FAQ (Frequently Asked Questions)",$Cat,0,0,0,0,"");

$phpurl = $config['phpurl'];

//------------------
// Send the template and footer.

include("$thispath/templates/$tempstyle/faq_english.tmpl");


$html -> send_footer();

I hade to change the order a bit to get tablewrappers to show.

// Require the library. Edit the path to the
// main.inc.php file if necessary.
require ("./main.inc.php");
// ---------------------
// Send the page to them

$html = new html;
$html -> send_header("FAQ (Frequently Asked Questions)",$Cat,0,$user);

// ---------------------
// Grab the tablewrapper
list($tbopen,$tbclose) = $html -> table_wrapper();

$phpurl = $config['phpurl'];

//------------------
// Send the template and footer.

include("$thispath/templates/$tempstyle/faq_english.tmpl");


$html -> send_footer();

Sponsored Links
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Yup, some of mine show broken links since I don't have some of the defaults

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Hmmm... not sure why it didn't like $html = new html; being used twice, but moving the table wrappers code after the first $html = new html; works.

Both work on my site, so I'm going to change the zip file to your version.

Thanks for posting the fix!

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Cool. I noticed that right away since the only difference was the tablewrappers call not being after the html call.

I was thinking of doing this one and you beat me to it.
I was playing around with this one the other day.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I wish you had beat me to it -it was a pain!

I was playing around with this yesterday and blew it up, but I really wanted to see it work so I made a second attempt

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Don't worry I am going to help out I have german and french done. I am going to do spanish next!

Here is your english template with a few minor changes for XHTML Compliance. I also noted that the usertitle file is not read either. Must be because it is in the template. I changed it to a link. If someone knows how to get it to list that would be cool. Anyway you can download this file and compare it to yours and see the changes I made.
Attachments
66360-faq_english.txt (0 Bytes, 64 downloads)

Sponsored Links
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Very cool! I'll update the first post with your attachment

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
There is somethign else that you might want to do with your own files: I changed the email address hyperlink in my copy of the english FAQ to the contact form hyperlink. If you have Josh's contact form mod installed then it's a good idea to get the email addy out of the FAQ (one less place for spam crawlers to get an email address from).

Until Josh's mod becomes a standard part of Threads (nudge, nudge Rick ) we'll have to leave the email address hyperlink and variables in the FAQs that we release

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
good idea. Gonna go take care of it.

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
I installed this hack, but have an error in the FAQ that relates to User Titles. That entry now reads:

Here is the list of the standard titles and # of posts to achieve them:

readfile("/htdocs/mydomain.com/ubbthreads/filters/usertitles");


I checked the file it references, and it does exist, and it does contain the user titles. Why is it not being displayed?

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I commented on this in a prior post to Dalantech.

Find the

<pre>

readfile("/htdocs/mydomain.com/ubbthreads/filters/usertitles");

</pre>

and replace with

<pre>

template;

readfile("{$config['path']}/filters/usertitles");

echo <<<template

</pre>

or if you like a few posts back I have the template posted that is XHTML compliant as well. Just download that TXT file and rename it.

Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
<< or if you like a few posts back I have the template posted that is XHTML compliant as well. Just download that TXT file and rename it. >>

Ah, sorry for the confusion. I saw the comments about changes being made, and thought the original post had the updated download.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
He was going to include the update but we do get busy at times

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
Sorry

The original post has been updated.

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
No need to be sorry.

Me thinks it cool that us old timers are beginning to understand enough to solve some minor problems and help answer peoples problems.

It must be a miraculous day if I can look at a few lines of code and see where the mistake is.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
LOL!

Just glad I'm not so old that I think it's a miraculous day when I wake up breathing

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL

Or have to wear a diaper again.

Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
I wasn't gonna go there...

Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
LOL


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)