forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: akhoman on June 03, 2006, 10:47:17 am

Title: smf_1-1_rc2 theme problem
Post by: akhoman on June 03, 2006, 10:47:17 am
Hi All,


I am using theme "smf_1-1_rc2" on cpg 1.4.6 and am having a problem.
I hope all of you can help me  :)
I modified the contents of anycontent.php and another column to the TR

However, when I render the page, the first row's colspan is 1 (See html below). And its not spanning to the number of TD I have in the 2nd row.

How could I modify the colspan of for that?
Coudl someone direct me to the correct file?



<!-- Start standard table -->
<table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td class="tableh1" colspan="1">Welcome</td>
        </tr>


<tr>

<td class="tableb" >
This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown here
</td>

<td class="tableb" >
This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown here
</td>

</tr>
</table>
<!-- End standard table -->



Thank you very very much guys.
Title: Re: smf_1-1_rc2 theme problem
Post by: Joachim Müller on June 03, 2006, 10:53:50 am
Code: [Select]
!-- Start standard table -->
<table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td class="tableh1" colspan="2">Welcome</td>
        </tr>
        <tr>
                <td class="tableb" >
                This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown here
                </td>
                <td class="tableb" >
                This is for any content block - just a test - Edit the file "anycontent.php" to change what is shown here
                </td>
        </tr>
</table>
<!-- End standard table -->
Take a look at your favorite html reference for the proper use of the colspan attribute.
Title: Re: smf_1-1_rc2 theme problem
Post by: akhoman on June 03, 2006, 11:25:33 am
Hi GauGau.

Thanks very much for the quick reply.

I know that you just have to modify the colspan="2" line.
But my problem is actually trying to find where that line is generated.
Because its not in the anycontent.php.
Could you please direct me to it?



Thanks :)

Title: Re: smf_1-1_rc2 theme problem
Post by: Joachim Müller on June 03, 2006, 12:33:04 pm
Post the actual content of your anyconten.php file.
There are parameters you can hand over to the function starttable: width, title, colspan.

This means:
Code: [Select]
starttable("100%", "Welcome");will result in
Code: [Select]
<table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td class="tableh1" colspan="1">Welcome</td>
        </tr>
        <tr>
, but
Code: [Select]
starttable("100%", "Welcome", 2);will result in
Code: [Select]
<table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td class="tableh1" colspan="2">Welcome</td>
        </tr>
        <tr>
You get the idea I bet...
Title: Re: smf_1-1_rc2 theme problem
Post by: akhoman on June 03, 2006, 01:37:17 pm
 ;D
Thank you GauGau :) :)