Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Feb 2001
Posts: 2,268
Junior Member
Junior Member
Offline
Joined: Feb 2001
Posts: 2,268
What does it do? It allows you to use a "Threads like" template for you generic header.

Why would you care?: Because you can take advantage of the new $tbopen and $tbclose variables in Threads 6.2...

Who gets the props?: Me (But I also have to give a nod to JustDave )

Here is the script for your Generic Header:

Code
 <br /> <br /> <? <br /> <br />$html = new html; <br /> <br />// Grab the tablewrapper <br />list($tbopen,$tbclose) = $html -> table_wrapper(); <br /> <br />// Send the template <br />include("$thispath/templates/$tempstyle/header.tmpl"); <br /> <br />?> <br /> <br /> 


You also have to create a header.tmpl file and copy it to your ubbthreads/templates/default/ directory. Here is a simplified version of my header.tmpl file:

Code
 <br /> <? <br />echo <<<template <br /> <br />$tbopen <br /> <br /><tr> <br /><td class="darktable"> <br /><table border="0" cellpadding="0" cellspacing="0"> <br /> <br /><tr> <br />  <td class="logo-left"><img border="0" src="http://www.yourdomain.com/logo-clear.gif" width="250" height="60" /> <br /></td> <br /> <br /><td class="logo" width="100%" align="right"> <br /></td> <br /> <br /></tr> <br /> <br /></table> <br /></td> <br /></tr> <br /> <br />$tbclose <br /> <br /><br /> <br /> <br />template; <br />?> <br /> <br /> 


Since the last html tag in the tbopen.tmpl file is a table, all you have to do in your header.tmpl file after $tbopen is start out with a tr and a td tag.

The benefit to doing your header this way: If you ever change the tbopen or tbclose template files your header will automatically change...

P.S. Try this out on a forum header first. I have a test forum that I use to test new designs that only admins and mods can see.

Last edited by Dalantech; 01/21/2003 8:29 AM.
Sponsored Links
Entire Thread
Subject Posted By Posted
[6.2] Generic Header template mod Dalantech 01/11/2003 4:54 PM
Re: Generic Header templte mod JustDave 01/11/2003 5:44 PM
Re: Generic Header templte mod Dalantech 01/11/2003 5:49 PM
Re: Generic Header template mod Dalantech 01/21/2003 9:04 AM
Re: Generic Header template mod omegatron 01/21/2003 1:20 PM
Re: Generic Header template mod Dalantech 01/21/2003 2:08 PM
Re: Generic Header template mod JustDave 01/21/2003 2:33 PM
Re: Generic Header template mod Dalantech 01/21/2003 3:29 PM
Re: Generic Header templte mod Dalantech 01/21/2003 6:51 PM
Re: Generic Header templte mod omegatron 01/21/2003 10:47 PM
Re: Generic Header templte mod Dalantech 01/21/2003 11:52 PM
Re: [6.2] Generic Header template mod Mudpuppy 01/25/2003 5:40 AM
Re: [6.2] Generic Header template mod Dalantech 01/25/2003 9:13 AM
Re: [6.2] Generic Header template mod RandyJG 04/28/2003 9:16 AM
Re: [6.2] Generic Header template mod Dalantech 04/28/2003 10:30 AM
Re: [6.2] Generic Header template mod Dalantech 04/28/2003 10:59 AM

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:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,824
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 2813
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 5
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
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-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)