Quote:
Originally Posted by Lynne
Please give us a URL to view the page. My guess is the HTML did show up, but your CSS is causing it to not do what you want.
Search this article for discussions on the problems using <li> on this page and the CSS you need to add to fix it.
|
Thank you for responding. My site is not operational yet, so it's turned off, but here is a screenshot of it:
This is my relevant .php code (forgive me if it's hilariously wrong

) :
Code:
// ###### YOUR CUSTOM CODE GOES HERE #####
$pagetitle = '';
$message = 'Hello world';
$var_name = '<h1>My Title</h1>My text<ul>
<li>Cameras</li>
<ul>
<li><a href"cameras.html">DSLRs</a></li>
<li>Point & Shoot</li>
</ul>
<li>Lenses</li>
<li>Etc.</li>
</ul>
More text.
<a href="mailto:myemail">My Email</a>';
// ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
$templater = vB_Template::create('IMAGE_HOSTING');
$templater->register_page_templates();
$templater->register('navbar', $navbar);
$templater->register('pagetitle', $pagetitle);
$templater->register('message', $message);
$templater->register('var_name', $var_name);
print_output($templater->render());
?>
This is my template:
Code:
{vb:stylevar htmldoctype}
<html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
<head>
<title>{vb:raw vboptions.bbtitle} - {vb:raw Macro Image Hosting}</title>
{vb:raw headinclude}
{vb:raw headinclude_bottom}
</head>
<body>
{vb:raw header}
{vb:raw navbar}
<div id="Macro Image Hosting">
<h1>{vb:raw pagetitle}</h1>
</div>
<h2 class="blockhead">Macro Image Hosting</h2>
<div class="blockbody">
<div class="blockrow">
{vb:raw message}
{vb:raw var_name}
</div>
</div>
{vb:raw footer}
</body>
</html>
Again, forgive me if it is all hilariously wrong, but I am a rank beginner
Jack