smf_1-1_rc2 theme problem smf_1-1_rc2 theme problem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

smf_1-1_rc2 theme problem

Started by akhoman, June 03, 2006, 10:47:17 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

akhoman

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.

Joachim Müller

!-- 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.

akhoman

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 :)


Joachim Müller

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:starttable("100%", "Welcome");will result in<table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">
        <tr>
                <td class="tableh1" colspan="1">Welcome</td>
        </tr>
        <tr>
, butstarttable("100%", "Welcome", 2);will result in<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...

akhoman