Forum Moderators: open

Message Too Old, No Replies

phpbb problem. modifying tables in "groupcp info body.tpl"

         

steven420

5:56 am on Jul 23, 2007 (gmt 0)

10+ Year Member



Hi, I have been having problems modifying the tables in this template. The changes I am trying to do have worked fine on other templates but for some reason they aren't working here. What I am trying to do is just alter the look of the tables by adding rounded corners. When I make these mods and I am not logged in the page displays the tables without the bottom (corner pics, bottom border). When I am logged in The group information table displays properly but the private message table gets messed up (The bottom left corner pic gets pushed right as if there was a column added, the bottom border is only partially there and the bottom right corner gets pushed out of the table). Please help I have been trying to figure this out but have had no luck. Below is the code for the private message table. Thanks in advance:

<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td width="10" height="10"><img src="top_left_corner.gif" width="20" height="18"></td>
<td class="boarder_top" background="hspace_background.gif"><span class="title_txt">{L_PM}</span></td>
<td class="boarder_top" background="space_background.gif"><span class="title_txt">{L_USERNAME}</span></td>
<td class="boarder_top" background="space_background.gif"><span class="title_txt">{L_POSTS}</span></td>
<td class="boarder_top" background="space_background.gif"><span class="title_txt">{L_FROM}</span></td>
<td class="boarder_top" background="space_background.gif"><span class="title_txt">{L_EMAIL}</span></td>
<td class="boarder_top" background="space_background.gif"><span class="title_txt">{L_WEBSITE}</span></td>
<td class="boarder_top" background="space_background.gif"><span class="title_txt">{L_SELECT}</span></td>
<td width="10" height="10"><img src="top_right_corner.gif" width="20" height="18"></td>
</tr>
<tr>
<td rowspan="6" class="boarder_left">&nbsp;</td>
<td colspan="7"><span class="cattitle">{L_GROUP_MODERATOR}</span></td>
<td rowspan="6" class="boarder_right">&nbsp;</td>
</tr>
<tr>
<td align="center"> {MOD_PM_IMG} </td>
<td align="center"><span class="gen"><a href="{U_MOD_VIEWPROFILE}" class="gen">{MOD_USERNAME}</a></span></td>
<td align="center" valign="middle"><span class="gen">{MOD_POSTS}</span></td>
<td align="center" valign="middle"><span class="gen">{MOD_FROM}</span></td>
<td align="center" valign="middle"><span class="gen">{MOD_EMAIL_IMG}</span></td>
<td align="center">{MOD_WWW_IMG}</td>
<td align="center">&nbsp; </td>
</tr>
<tr>
<td colspan="7"><span class="cattitle">{L_GROUP_MEMBERS}</span></td>
</tr>
<!-- BEGIN member_row -->
<tr>
<td class="{member_row.ROW_CLASS}" align="center"> {member_row.PM_IMG} </td>
<td class="{member_row.ROW_CLASS}" align="center"><span class="gen"><a href="{member_row.U_VIEWPROFILE}" class="gen">{member_row.USERNAME}</a></span></td>
<td class="{member_row.ROW_CLASS}" align="center"><span class="gen">{member_row.POSTS}</span></td>
<td class="{member_row.ROW_CLASS}" align="center"><span class="gen"> {member_row.FROM}
</span></td>
<td class="{member_row.ROW_CLASS}" align="center" valign="middle"><span class="gen">{member_row.EMAIL_IMG}</span></td>
<td class="{member_row.ROW_CLASS}" align="center"> {member_row.WWW_IMG}</td>
<td class="{member_row.ROW_CLASS}" align="center">
<!-- BEGIN switch_mod_option -->
<input type="checkbox" name="members[]" value="{member_row.USER_ID}" />
<!-- END switch_mod_option -->
</td>
</tr>
<!-- END member_row -->
<!-- BEGIN switch_no_members -->
<tr>
<td colspan="7" align="center"><span class="gen">{L_NO_MEMBERS}</span></td>
</tr>
<!-- END switch_no_members -->
<!-- BEGIN switch_hidden_group -->
<tr>
<td colspan="7" align="center"><span class="gen">{L_HIDDEN_MEMBERS}</span></td>
</tr>
<!-- END switch_hidden_group -->
<!-- BEGIN switch_mod_option -->
<tr>
<td width="10" height="10"><img src="corner_left_bottom.jpg" width="20" height="18"></td>
<td colspan="7" class="boarder_bottom">&nbsp;</td>
<td width="10" height="10"><img src="corner_right_bottom.jpg" width="20" height="18"></td>
</tr>
</table>

thecoalman

8:33 am on Jul 23, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This is a template switch:

<!-- BEGIN switch_mod_option -->

Anything between it and this:

<!-- END switch_mod_option -->

will only be included for those with correct permissions to view it such as an admin or or the group moderator.

As far as the extra column check the amount of cells in the rows. You must have extra one somewhere.

steven420

5:16 pm on Jul 23, 2007 (gmt 0)

10+ Year Member



Thanks thecoalman. turns out that the problem was in the rowspan of the side columns. Thanks for giving me a little insight into those switches they've been a bit of a mystery to me :)