MyBB Community Forums

Full Version: Expander Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay, so I'm custom coding my index page with a sidebar and adding tables and such, and the expander that i have circled in the attached image [attachment=20676] does not work. I want to use an expander on everything i create on the index page, so this is a major problem for me. Sad I have included the code I'm using for the index page so you can see what I'm using and you can advise me on what to change:

Quote:<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$ps_header_index}
{$welcomeguest}
<div class="sidebar" style="float: left;width: 19%;">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="theadmain"><strong>
<div class="expcolimage">
<img src="images/blackevo4/collapse.gif" id="search_img" class="expander" />
</a></div>
<div>
Search The Site
</div>
</strong></td>

</tr>
<tr>
<td class="trow1">
{$sbsearch}
</td>
</tr>
</table><br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="theadmain"><strong>
Welcome Guest
</strong></td>
</tr>
<tr>
<td class="trow1">
<span class="smalltext">{$lang->guest_welcome_registration}</span><br />
<br />
<form action="member.php" method="post">
<input type="hidden" name="action" value="do_login" />
<span class="smalltext"><strong>{$lang->quick_login}</strong></span>
<input type="text" class="textbox" name="username" title="{$lang->login_username}" value="{$lang->login_username}" onfocus="if(this.value == '{$lang->login_username}') { this.value=''; }" onblur="if(this.value=='') { this.value='{$lang->login_username}'; }" /><br />
<input type="password" class="textbox" name="password" title="{$lang->login_password}" value="{$lang->login_password}" onfocus="if(this.value == '{$lang->login_password}') { this.value=''; }" onblur="if(this.value=='') { this.value='{$lang->login_password}'; }" /><br />
{$gobutton}
</form>
<a href="member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">{$lang->index_logout}</a> |

</td>
</tr>
</table><br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="theadmain"><strong>
Advertising Space #1
</strong></td>
</tr>
<tr>
<td class="trow1">
<center><a href="http://reflectionsdirect.com/forums/"><img src="http://reflectionsdirect.com/forums/images/advertise.jpg"></a></center>
</tr>
</table><br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="theadmain"><strong>
Advertising Space #2
</strong></td>
</tr>
<tr>
<td class="trow1">
<center><a href="http://reflectionsdirect.com/forums/"><img src="http://reflectionsdirect.com/forums/images/advertise.jpg"></a></center>
</tr>
</table><br />
</div>
<div class="forums" style="float: right;width: 80%;">
{$forums}
</div>
<br style="clear: both" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="theadmain"><strong>
<center>Forum stats</center>
</strong></td>
</tr>
<tr>
<td class="trow1">
{$ps_footer_index}
</td>
</tr>
</table>
{$boardstats}

<dl class="forum_legend smalltext">
<dt><img src="{$theme['imgdir']}/on.gif" alt="{$lang->new_posts}" title="{$lang->new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->new_posts}</dd>

<dt><img src="{$theme['imgdir']}/off.gif" alt="{$lang->no_new_posts}" title="{$lang->no_new_posts}" style="vertical-align: middle; padding-bottom: 4px;" /></dt>
<dd>{$lang->no_new_posts}</dd>

<dt><img src="{$theme['imgdir']}/offlock.gif" alt="{$lang->forum_locked}" title="{$lang->forum_locked}" style="vertical-align: middle;" /></dt>
<dd>{$lang->forum_locked}</dd>
</dl>
<br style="clear: both" />
{$footer}
</body>
</html>

also, the login box for guests on the sidebar isn't working, i used the coding from the header_welcomeblock_guest template. what is the correct coding to create a login box?

Url: http://www.reflectionsdirect.com/forums

Thank You For All Your Help,
~Rs