Jump to content

phpBB forum background


Recommended Posts

Okay i found out how to get it working, add all this to index_body.tpl

<div id="breadcrumb">
<table border="0" cellpadding="0" cellspacing="0" width="99%">
<tr>
<td align="left" width="100%">
<div style="padding: 7px 0 7px 0;">
<div id="breadcrumbself"><a href="{U_INDEX}">{L_INDEX}</a></div>
</div>
</td>
<!-- BEGIN switch_user_logged_in -->
<td nowrap="nowrap" style="padding: 3px 0 3px 0">
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a>

<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>
</td>
<!-- END switch_user_logged_in -->
<!-- BEGIN switch_user_logged_out -->
<td nowrap="nowrap" style="padding:0" align="right">
<form method="post" action="{S_LOGIN_ACTION}" style="margin:0;padding:0">
<table cellpadding="0" cellspacing="4" border="0" align="right">
<tr>
<td><input type="text" name="username" size="10" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>
<td><input type="password" name="password" size="10" maxlength="32" value="Password" onfocus="this.value=''" /></td>
<td>
<input type="submit" name="login" value="{L_LOGIN}" />
<!-- BEGIN switch_allow_autologin -->
<input style="display:none;" type="checkbox" name="autologin" checked="checked" />
<!-- END switch_allow_autologin -->
</td>
</tr>
</table>
</form>
</td>
<!-- END switch_user_logged_out -->
</tr>
</table>
</div>

<script type="text/javascript">
var oldload = window.onload;
window.onload = function(e ) {altrows("forumslist");
if(typeof(oldload) == "function") oldload(e );}
</script>

<table border="0" cellpadding="5" cellspacing="0" width="100%">
<thead>
<tr>
<td class="aquag"> </td>
<td class="aquag" width="75%" align="left">{L_FORUM}</td>
<td class="aquag borderleft" width="24%" align="right" nowrap="nowrap">{L_LASTPOST}</td>
<td class="aquag borderleft" align="center">{L_TOPICS}</td>
<td class="aquag borderleft" align="center">{L_POSTS}</td>
</tr>
</thead>
<tbody id="forumslist">
<!-- BEGIN catrow -->
<tr>
<td class="tcat" colspan="5">++ <a href="{catrow.U_VIEWCAT}">{catrow.CAT_DESC}</a></td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td align="center"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td align="left">
<div class="ftitle"><a href="{catrow.forumrow.U_VIEWFORUM}"><b>{catrow.forumrow.FORUM_NAME}</b></a></div>
<div>{catrow.forumrow.FORUM_DESC} <span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></div>
</td>
<td align="right" class="borderleft">{catrow.forumrow.LAST_POST}</td>
<td align="center" class="borderleft" style="font-size:18px;">{catrow.forumrow.TOPICS}</td>
<td align="center" class="borderleft" style="font-size:18px;">{catrow.forumrow.POSTS}</td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</tbody>
<tbody>
<tr>
<td nowrap="nowrap" class="pin1 bordertop" align="center" colspan="5">
<table cellpadding="0" cellspacing="0" border="0" align="center" style="margin:0 auto 0 auto">
<tr>
<td><img src="templates/AquaSoft/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>
<td width="200" align="left" nowrap="nowrap">  {L_NEW_POSTS}</td>
<td><img src="templates/AquaSoft/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>
<td width="200" align="left" nowrap="nowrap">  {L_NO_NEW_POSTS}</td>
<td><img src="templates/AquaSoft/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>
<td width="200" align="left" nowrap="nowrap">  {L_FORUM_LOCKED}</td>
</tr>
</table>
</td>
</tr>
</tbody>

<tbody>
<tr>
<td class="tcat" colspan="5"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></td>
</tr>
<tr class="alt2">
<td align="center"><img src="templates/AquaSoft/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
<td align="left" colspan="4">
{TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]

{LOGGED_IN_USER_LIST}
</td>
</tr>
<tr class="alt2">
<td class="bordertop" align="center"><img src="templates/AquaSoft/images/stats.gif" alt="Stats" /></td>
<td class="bordertop" align="left" colspan="4">
{TOTAL_POSTS}

{TOTAL_USERS}; {NEWEST_USER}

{RECORD_USERS}
</td>
</tr>
</tbody>

</table>

<div class="pin1 bordertop" style="padding: 0 8px 0 8px">
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tr>
<td align="left" nowrap="nowrap"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></td>
<td align="right" nowrap="nowrap"><b><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></b></td>
</tr>
</table>
</div>

Link to post
Okay i found out how to get it working, add all this to index_body.tpl

<div id="breadcrumb">

<table border="0" cellpadding="0" cellspacing="0" width="99%">

<tr>

<td align="left" width="100%">

<div style="padding: 7px 0 7px 0;">

<div id="breadcrumbself"><a href="{U_INDEX}">{L_INDEX}</a></div>

</div>

</td>

<!-- BEGIN switch_user_logged_in -->

<td nowrap="nowrap" style="padding: 3px 0 3px 0">

<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a>


<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>

</td>

<!-- END switch_user_logged_in -->

<!-- BEGIN switch_user_logged_out -->

<td nowrap="nowrap" style="padding:0" align="right">

<form method="post" action="{S_LOGIN_ACTION}" style="margin:0;padding:0">

<table cellpadding="0" cellspacing="4" border="0" align="right">

<tr>

<td><input type="text" name="username" size="10" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>

<td><input type="password" name="password" size="10" maxlength="32" value="Password" onfocus="this.value=''" /></td>

<td>

<input type="submit" name="login" value="{L_LOGIN}" />

<!-- BEGIN switch_allow_autologin -->

<input style="display:none;" type="checkbox" name="autologin" checked="checked" />

<!-- END switch_allow_autologin -->

</td>

</tr>

</table>

</form>

</td>

<!-- END switch_user_logged_out -->

</tr>

</table>

</div>



<script type="text/javascript">

var oldload = window.onload;

window.onload = function(e ) {altrows("forumslist");

if(typeof(oldload) == "function") oldload(e );}

</script>



<table border="0" cellpadding="5" cellspacing="0" width="100%">

<thead>

<tr>

<td class="aquag"> </td>

<td class="aquag" width="75%" align="left">{L_FORUM}</td>

<td class="aquag borderleft" width="24%" align="right" nowrap="nowrap">{L_LASTPOST}</td>

<td class="aquag borderleft" align="center">{L_TOPICS}</td>

<td class="aquag borderleft" align="center">{L_POSTS}</td>

</tr>

</thead>

<tbody id="forumslist">

<!-- BEGIN catrow -->

<tr>

<td class="tcat" colspan="5">++ <a href="{catrow.U_VIEWCAT}">{catrow.CAT_DESC}</a></td>

</tr>

<!-- BEGIN forumrow -->

<tr>

<td align="center"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>

<td align="left">

<div class="ftitle"><a href="{catrow.forumrow.U_VIEWFORUM}"><b>{catrow.forumrow.FORUM_NAME}</b></a></div>

<div>{catrow.forumrow.FORUM_DESC} <span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></div>

</td>

<td align="right" class="borderleft">{catrow.forumrow.LAST_POST}</td>

<td align="center" class="borderleft" style="font-size:18px;">{catrow.forumrow.TOPICS}</td>

<td align="center" class="borderleft" style="font-size:18px;">{catrow.forumrow.POSTS}</td>

</tr>

<!-- END forumrow -->

<!-- END catrow -->

</tbody>

<tbody>

<tr>

<td nowrap="nowrap" class="pin1 bordertop" align="center" colspan="5">

<table cellpadding="0" cellspacing="0" border="0" align="center" style="margin:0 auto 0 auto">

<tr>

<td><img src="templates/AquaSoft/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>

<td width="200" align="left" nowrap="nowrap">  {L_NEW_POSTS}</td>

<td><img src="templates/AquaSoft/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>

<td width="200" align="left" nowrap="nowrap">  {L_NO_NEW_POSTS}</td>

<td><img src="templates/AquaSoft/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>

<td width="200" align="left" nowrap="nowrap">  {L_FORUM_LOCKED}</td>

</tr>

</table>

</td>

</tr>

</tbody>



<tbody>

<tr>

<td class="tcat" colspan="5"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></td>

</tr>

<tr class="alt2">

<td align="center"><img src="templates/AquaSoft/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>

<td align="left" colspan="4">

{TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]


{LOGGED_IN_USER_LIST}

</td>

</tr>

<tr class="alt2">

<td class="bordertop" align="center"><img src="templates/AquaSoft/images/stats.gif" alt="Stats" /></td>

<td class="bordertop" align="left" colspan="4">

{TOTAL_POSTS}


{TOTAL_USERS}; {NEWEST_USER}


{RECORD_USERS}

</td>

</tr>

</tbody>



</table>



<div class="pin1 bordertop" style="padding: 0 8px 0 8px">

<table border="0" cellspacing="0" cellpadding="4" width="100%">

<tr>

<td align="left" nowrap="nowrap"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></td>

<td align="right" nowrap="nowrap"><b><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></b></td>

</tr>

</table>

</div>

I've tried that, however when i add all of the code above my whole board goes away.

here is how my index_body.tpl looks right now

<div id="breadcrumb">

<table border="0" cellpadding="0" cellspacing="0" width="99%">

<tr>

<td align="left" width="100%">

<div style="padding: 7px 0 7px 0;">

<div id="breadcrumbself"><a href="{U_INDEX}">{L_INDEX}</a></div>

</div>

</td>

<!-- BEGIN switch_user_logged_in -->

<td nowrap="nowrap" style="padding: 3px 0 3px 0">

<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a>


<a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a>

</td>

<!-- END switch_user_logged_in -->

<!-- BEGIN switch_user_logged_out -->

<td nowrap="nowrap" style="padding:0" align="right">

<form method="post" action="{S_LOGIN_ACTION}" style="margin:0;padding:0">

<table cellpadding="0" cellspacing="4" border="0" align="right">

<tr>

<td><input type="text" name="username" size="10" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';" /></td>

<td><input type="password" name="password" size="10" maxlength="32" value="Password" onfocus="this.value=''" /></td>

<td>

<input type="submit" name="login" value="{L_LOGIN}" />

<!-- BEGIN switch_allow_autologin -->

<input style="display:none;" type="checkbox" name="autologin" checked="checked" />

<!-- END switch_allow_autologin -->

</td>

</tr>

</table>

</form>

</td>

<!-- END switch_user_logged_out -->

</tr>

</table>

</div>



<script type="text/javascript">

var oldload = window.onload;

window.onload = function(e ) {altrows("forumslist");

if(typeof(oldload) == "function") oldload(e );}

</script>



<table border="0" cellpadding="4" cellspacing="0" width="100%">

<thead>

<tr>

<td class="aquag"> </td>

<td class="aquag" width="75%" align="left">{L_FORUM}</td>

<td class="aquag borderleft" width="24%" align="center" nowrap="nowrap">{L_LASTPOST}</td>

<td class="aquag borderleft" align="center">{L_TOPICS}</td>

<td class="aquag borderleft" align="center">{L_POSTS}</td>

</tr>

</thead>

<!-- BEGIN catrow -->

<tbody>

<tr>

<td class="tcat" colspan="5"><a href="{catrow.U_VIEWCAT}">{catrow.CAT_DESC}</a></td>

</tr>

</tbody>

<tbody id="forumslist">

<!-- BEGIN forumrow -->

<tr>

<td align="center"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>

<td align="left">

<div class="ftitle"><a href="{catrow.forumrow.U_VIEWFORUM}"><b>{catrow.forumrow.FORUM_NAME}</b></a></div>

<div>{catrow.forumrow.FORUM_DESC} <span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></div>

</td>

<td align="right" class="borderleft">{catrow.forumrow.LAST_POST}</td>

<td align="center" class="borderleft">{catrow.forumrow.TOPICS}</td>

<td align="center" class="borderleft">{catrow.forumrow.POSTS}</td>

</tr>

<!-- END forumrow -->

<!-- END catrow -->

</tbody>

<tbody>

<tr>

<td nowrap="nowrap" class="pin1 bordertop" align="center" colspan="5">

<table cellpadding="0" cellspacing="0" border="0" align="center" style="margin:0 auto 0 auto">

<tr>

<td><img src="templates/AquaSoft/images/folder_new_big.gif" alt="{L_NEW_POSTS}"/></td>

<td width="200" align="left" nowrap="nowrap">  {L_NEW_POSTS}</td>

<td><img src="templates/AquaSoft/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" /></td>

<td width="200" align="left" nowrap="nowrap">  {L_NO_NEW_POSTS}</td>

<td><img src="templates/AquaSoft/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" /></td>

<td width="200" align="left" nowrap="nowrap">  {L_FORUM_LOCKED}</td>

</tr>

</table>

</td>

</tr>

</tbody>



<tbody>

<tr>

<td class="tcat" colspan="5"><a href="{U_VIEWONLINE}" class="cattitle">{L_WHO_IS_ONLINE}</a></td>

</tr>

<tr class="alt2">

<td align="center"><img src="templates/AquaSoft/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>

<td align="left" colspan="4">

{TOTAL_USERS_ONLINE}   [ {L_WHOSONLINE_ADMIN} ]   [ {L_WHOSONLINE_MOD} ]


{LOGGED_IN_USER_LIST}

</td>

</tr>

<tr class="alt2">

<td class="bordertop" align="center"><img src="templates/AquaSoft/images/stats.gif" alt="Stats" /></td>

<td class="bordertop" align="left" colspan="4">

{TOTAL_POSTS}


{TOTAL_USERS}; {NEWEST_USER}


{RECORD_USERS}

</td>

</tr>

</tbody>



</table>



<div class="pin1 bordertop" style="padding: 0 8px 0 8px">

<table border="0" cellspacing="0" cellpadding="4" width="100%">

<tr>

<td align="left" nowrap="nowrap"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></td>

<td align="right" nowrap="nowrap"><b><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a></b></td>

</tr>

</table>

</div>

Link to post
×
×
  • Create New...