Seperate categories

This forum is now closed. Please ask all styles-related questions in the phpBB 3.0 Styles Support & Discussion Forum.
Locked
Mini_Dragon
Registered User
Posts: 96
Joined: Sun Sep 19, 2004 2:12 pm

Seperate categories

Post by Mini_Dragon »

How would I make the categories seperate?

Srot of like IPB..

User avatar
bonelifer
Community Team Member
Community Team Member
Posts: 3492
Joined: Wed Oct 27, 2004 11:35 pm
Name: William
Contact:

Post by bonelifer »

Try this code:

Code: Select all

############################################################## 
## MOD Title: Split Categories On Index
## MOD Author: DanielT < scoi.mods@danielt.com > (Daniel Taylor) http://www.danielt.com 
## MOD Description: Splits up the category areas on your index page
## MOD Version: 1.0.2
## 
## Installation Level: easy
## Installation Time: ~1 Minutes 
## Files To Edit: index_body.tpl
## Included Files: n/a
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: n/a
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
############################################################## 
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> 
  <tr> 
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th> 
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th> 
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th> 
   <th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</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">&nbsp;</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>
#
#-----[ REPLACE WITH ]------------------------------------
#
<!-- BEGIN catrow --> 
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"> 
  <tr> 
   <th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th> 
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th> 
   <th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th> 
   <th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</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">&nbsp;</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 -->
  </table>
  <br /> 
  <!-- END catrow -->
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------
# EoM


Mini_Dragon
Registered User
Posts: 96
Joined: Sun Sep 19, 2004 2:12 pm

Post by Mini_Dragon »

Its wonderful! I love it!
But one question.
Can you have at the end of the last forum in a category a greay stip thing..
Not sure how to discribe it :/

Graham
Former Team Member
Posts: 8462
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK
Contact:

Post by Graham »

Yes.

Just put an extra table row in between these 2 lines

Code: Select all

<!-- END forumrow --> 
  </table> 
"So Long, and Thanks for All the Fish"

phpBB Useful Links: Knowledge Base | Userguide | Forum Search | MOD Database | Styles Database
My Links: Blog!

Mini_Dragon
Registered User
Posts: 96
Joined: Sun Sep 19, 2004 2:12 pm

Post by Mini_Dragon »

What is a table row? Is it just a </table>?

User avatar
Double_J
Former Team Member
Posts: 1243
Joined: Thu Nov 25, 2004 4:07 pm
Location: Netherlands
Contact:

Post by Double_J »

Code: Select all

<tr>
 <td>
  
 </td>
</tr>
and just place in it what you want to be in it and you can also set the height for the table row with height="4" in this case it will be 4 pixels

mikew
Registered User
Posts: 4
Joined: Tue Jun 14, 2005 11:55 am

Post by mikew »

i have tried using this mod it works ok however in the 2nd + 3rd catagories the topic posts and last posts columns are shorter than in the first column.


http://www.cr-designs.co.uk/forum
thats the example


Any help on this would be appreciated

Thatbitextra
Former Team Member
Posts: 7604
Joined: Mon Mar 21, 2005 5:04 am
Location: A place where something is or could be located; a site.
Contact:

Post by Thatbitextra »

That's because the Last Post column is a dynamic width. The problem should sort itself out once you get some posts in those forums.
Styles KB
My MODs: Choose Who to Accept PMs From (Prevents unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

mikew
Registered User
Posts: 4
Joined: Tue Jun 14, 2005 11:55 am

Post by mikew »

ty

Locked

Return to “[2.0.x] Styles Development & Discussion”