Announcement

Collapse
No announcement yet.

$childforumbits help....

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • $childforumbits help....

    i've been trying to wrap a table around the catagories and wrap a seperate table around the subforums of the catagories. if there was a way to edit the $childforumbits as a whole it might be easier.... but i'm guessing there are 4 templates that control that variable?

    the top of my tables look like this

    Code:
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr>
     	<td class="top_left_corner"></td>
     		<td class="var_top_middle"></td>
     	<td class="top_right_corner"></td>
     </tr>
     </table>
     
     <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr>
     	<td class="var_side_left"></td>
     	<td class="quickstyle_fill">




    The content is here....



    and then i end the table....


    Code:
    </td>
     
     
     	<td class="var_side_right"></td>
     
     </tr>
     </table>
     
     
     <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr>
     	<td class="var_bottom_left_corner"></td>
     	<td class="var_bottom_middle"></td>
     	<td class="var_bottom_right_corner"></td>




    so far i've had... very little success making this work editing the 4 forumhome_forumbit_level templates.

    i'd appreciate any help i can get with this.... maybe theres something i'm missing here....like a way to edit the $childforumbits?

  • #2
    $childforumbits is built from the forumhome_forumbit templates. If a forum has subforms then $childforumbits will equal the HTML to display those subforums.

    When surrounding something with a table like that you probably want to keep everything in the same table, at least that's the way I would usually do it. And adding width and height attributes will help it to keep its shape:

    Code:
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
     <tr>
     	<td width="10" height="10" class="top_left_corner"></td>
     		<td height="10" class="var_top_middle"></td>
     	<td width="10" height="10" class="top_right_corner"></td>
     </tr>
    
     <tr>
     	<td width="10" class="var_side_left"></td>
     	<td class="quickstyle_fill">
    Content.

    Code:
    </td>
     
     
     	<td width="10" class="var_side_right"></td>
     
     </tr>
    
     <tr>
     	<td width="10" height="10" class="var_bottom_left_corner"></td>
     	<td height="10" class="var_bottom_middle"></td>
     	<td width="10" height="10" class="var_bottom_right_corner"></td>
     </tr>
    </table>
    That's the general idea. Getting something like this to work can take a lot of tweaking. www.vbulletintemplates.com is a good resource for stuff like this.

    Comment


    • #3
      well i was using css to define the height and width of those images

      example:
      Code:
      .top_left_corner { background-image: url('./images/styles/default/top_left_corner.jpg'); width: 39px; height: 14px }
      i guess you answered my question though about childforums being built from those other templates.... thats what was making it hard..... i didn't know exactly where to start / end my tables....

      guess i'll just have to keep messing with it....

      thanks jake..

      Comment

      Related Topics

      Collapse

      Working...
      X