Quote:
Originally Posted by CrumbDown
I have created a terms.php file, but how to add words in that file. Well...I can add words but the formatting is not working such as <li> </li>. Is there something Im missing?
|
First of all, it works! So it's tough to help without seeing your code. I will show you my approach. I put all of the content into the .php page so I can have the smallest number of templates (2) for doing dozens of pages. Here is the php code with simple content similar to what you want to send:
Code:
// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = 'My Page Title';
$bartitle = 'Bar Sub-Title';
$linkcss = '';
$linksjava = '';
$pagescript = '';
$introstuff = '<div class="article cms_clear restore postcontainer">
<div style="padding-top: 6px; padding-bottom: 6px;">Upon joining the website each user shall be classified by their experience level as follows:</div>
<div style="line-height: 140%; margin-left: 30px;">
<ul>
<li style="margin-bottom:5px;">0 to 5 forum posts: New User</li>
<li style="margin-bottom:5px;">5 to 100 forum posts: Proficient User</li>
<li style="margin-bottom:5px;">More than 100 forum posts: Expert User</li>
</ul>
</div>
<br />
</div>';
$graphix = '<div style="text-align: center;" ><A HREF="/index.php">
<IMG SRC="/pics/under_construction_02.jpg" ALT="Under Construction"></A>
</div>';
As a reminder you need to put this content on the page such as:
Code:
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater = vB_Template::create('TMGApage');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
//$templater->register('pagetitle', $pagetitle);
//$templater->register('bartitle', $bartitle);
$templater->register('linkcss', $linkcss);
$templater->register('linksjava', $linksjava);
$templater->register('pagaescript', $pagescript);
$templater->register('introstuff', $introstuff);
$templater->register('graphix', $graphix);
print_output($templater->render());