While trying to keep the questions within the correct mod category, I have another question that pertains to this mod. What I'm trying to figure out how to do is probably very simple, and I've actually tried looking through the 5,000+ threads, so if I missed it, just point me to the correct one, as time is short.
What I want to do is basically move the index_body.tpl file (coding) to a "blank template" page. That way I can change the index_body.tpl to show other information, instead of the body of the forum.
Unless there is a way to create a new tpl page and have it called up when logged in instead of the index_body.tpl page. (until I hear how to do that, the following is what I'm trying to do):
What I tried doing was taking the index_body.tpl file and copy/paste it within a "new template page" through this mod, but when viewed you get the pleasures of seeing the php content instead of what needs to be seen.
examples of what is seen live on the new template page:
Code: Select all
{LAST_VISIT_DATE}
{PRIVATE_MESSAGE_INFO}
{L_INDEX}
{L_FORUM}
{catrow.CAT_DESC}
example of what it should show live on the new template page:
Code: Select all
You last visited on Thu Mar 13, 2008 11:15 am
You have no new messages
Sentinels MC Chat Room
Forum
Member Only Chit Chat
This is what the template.tpl looks like. It's when any new template page is created it automatically fills in the overall header and footer of the middle section of the site (example would be the index_body.tpl):
The
PAGE_CONTENT section is where the new template page is inserted so that all pages have the same stuff on the top and bottom of each new page.
Code: Select all
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="bodytable">
<tr>
<td width="44"><img src="templates/SLEMC_2008/images/L_R1_a.gif" width="44" height="27" /></td>
<td background="templates/SLEMC_2008/images/L_R1_b.gif"></td>
<td width="43"><img src="templates/SLEMC_2008/images/L_R1_c.gif" width="43" height="27" /></td>
</tr>
<tr>
<td width="44" background="templates/SLEMC_2008/images/L_R2_a.gif"></td>
<td background="templates/SLEMC_2008/images/L_body_bk.gif">
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr>
<td align="left" valign="bottom"><span class="gensmall">
<!-- BEGIN switch_user_logged_in -->
{LAST_VISIT_DATE}<br />
<a href="{U_PRIVATEMSGS}" class="viewlinks">{PRIVATE_MESSAGE_INFO}</a></span><br />
<!-- END switch_user_logged_in -->
<span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
<td align="right" valign="bottom" class="gensmall">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a>
<!-- END switch_user_logged_in -->
</td>
</tr>
</table>
{PAGE_CONTENT}
</td>
<td width="43" background="templates/SLEMC_2008/images/L_R2_c.gif"></td>
</tr>