|
Text
|
| Separate Table For Separate Table For Categories |
|
 |
|
 |
|
| Author |
Message |
Symon
Guide Legend



Joined: 11 Jun 2006
Posts: 909
Location: Hampshire,England

Add Comment
Show Comments
|
Posted: Tue Jul 17, 2007 10:33 pm |
 |
|
Please remember to use the Editor account before making any template changes, If you have not made an editor account yet please read HERE
Secondly you must have all ready made a template you can edit.
If you have not done this please read HOWTODOIT
PLEASE read this post before you do any editing for this code.
http://howtodoit.myfreeforum.org/...component=content&topicid=673
Ok all that done now goto
admin panel -- 3. Styles -- Edit Templates/Logos
Now open up your template using the drop box marked Choose Template to Edit for example myff_howtodoit1 and using the top drop box called Choose Forum template/javascript/css File to Edit find
index_body.tpl
Now you need to find a block of code that will look something like this
| Code: | <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td class="rowpic" colspan="3" align="right"> </td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table> |
Now look for
| Code: | | <!-- BEGIN catrow --> |
And move it to the top so it could look like this
| Code: | <!-- BEGIN catrow -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr> |
Now find
| Code: | <!-- END forumrow -->
<!-- END catrow -->
</table> |
And move the
To be in the middle of the tags
| Code: | <!-- END forumrow -->
<!-- END catrow --> |
So it would look like this
| Code: | <!-- END forumrow -->
</table>
<!-- END catrow --> |
Before Look
After Look
If you wish their to be a gap in between the sections like shown below
Then simply add
Inbetween the And | Code: |
<!-- BEGIN forumrow --> |
So it would look like this
| Code: | </tr><br /><br />
<!-- BEGIN forumrow --> |
So the final code now could look like this
| Code: | <!-- BEGIN catrow -->
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<tr>
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td class="rowpic" colspan="3" align="right"> </td>
</tr><br /><br />
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</table>
<!-- END catrow --> |
And that is HOWTODOIT
|
|
| |
|
 |
|
|
|
 |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
HOWTODOIT was designed and built by Symon Field Creator Of ☆ ☆ FunnyWorld ☆
HOWTODOIT© Symon Field 2006,2007,2008 Powered by phpBB Group © 2001,2005.
|
|
|
|