Advanced search  

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

Pages: [1]   Go Down

Author Topic: smf_1-1_rc2 theme problem  (Read 3209 times)

0 Members and 1 Guest are viewing this topic.

akhoman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
smf_1-1_rc2 theme problem
« 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.
« Last Edit: June 03, 2006, 01:44:00 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: smf_1-1_rc2 theme problem
« Reply #1 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.
Logged

akhoman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: smf_1-1_rc2 theme problem
« Reply #2 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 :)

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: smf_1-1_rc2 theme problem
« Reply #3 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...
Logged

akhoman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: smf_1-1_rc2 theme problem
« Reply #4 on: June 03, 2006, 01:37:17 pm »

 ;D
Thank you GauGau :) :)
Logged
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 19 queries.