forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: hama on November 20, 2004, 11:29:57 pm

Title: Editing anycontent.php
Post by: hama on November 20, 2004, 11:29:57 pm
I try to edit the anycontent.php because I need two columns (50 % each) with different code.

I searched the forum and did a google search with "starttable / endtable" ...

Code: [Select]
<?php
starttable
("100%""Welcome");

?>

<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></tr>
<?php
endtable
();

?>


Please give me a little hint.  :)

Title: Re: Editing anycontent.php
Post by: hama on November 20, 2004, 11:45:55 pm

That's the reason why I need two columns (4 radio stations at right, 4 at left):

--> http://www.dorfschule.ch/copper/index.php --> at the bottom, anycontent.php sound :-)

 ;)
Title: Re: Editing anycontent.php
Post by: hama on November 21, 2004, 02:09:31 am

Aargh, nearly a whole night to find out how to build two columns .... The good thing, I learned (in my opinion) a lot ...

But now, how can I code that the blue title of the anycontent (Sound) goes from left to right?  


<?php

starttable("100%", "Sound :-)");

?>

    <tr><td class="tableb" width=50%>
    Jeder Link öffnet ein separates Gallery-Fenster, im neuen Fenster einfach auf Play drücken (eignet sich nur für TEP oder ADSL). - Viel Vergnügen!
    <ul>
    <li><a href="http://www.dorfschule.ch/copper/index1.htm" target="_blank">Radio 24</a> (64 KBit/s)</li>
    <li><a href="http://www.dorfschule.ch/copper/index2.htm" target="_blank">Radio DJ</a> (64 KBit/s)</li>
    <li><a href="http://www.dorfschule.ch/copper/index3.htm" target="_blank">Radio 105</a> (40 KBit/s)</li>
    <li><a href="http://www.dorfschule.ch/copper/index4.htm" target="_blank">Radio DRS 1</a> (40 KBit/s)</li>
    <li><a href="http://www.dorfschule.ch/copper/index5.htm" target="_blank">Radio DRS 3</a> (40 KBit/s)</li>
    <li><a href="http://www.dorfschule.ch/copper/index6.htm" target="_blank">Radio Virus</a> (40 KBit/s)</li>
    <li><a href="http://www.dorfschule.ch/copper/index7.htm" target="_blank">Radio Pilatus</a> (48 KBit/s)</li>  
    <li><a href="http://www.dorfschule.ch/copper/index8.htm" target="_blank">Radio Sunshine</a> (40 KBit/s)</li>
    </ul>
    </td>
    <td class="tableb" width="50%">
    Jeder Link öffnet ein separates Gallery-Fenster, im neuen Fenster einfach auf Play drücken (eignet sich nur für TEP oder ADSL). - Viel Vergnügen!    
    <ul>
    <li><a href="http://www.dorfschule.ch/copper/index1.htm" target="_blank">Radio 24</a> (64 KBit/s)</li>
    </ul>
    </td></tr>
<?php
endtable();

?>


Thanks

hama
Title: Re: Editing anycontent.php
Post by: Nibbler on November 21, 2004, 02:23:28 am
starttable("100%", "Sound :-)", 2);

last argument for starttable is number of columns to span the title over.
Title: Re: Editing anycontent.php
Post by: hama on November 21, 2004, 02:29:52 am

Great, great, great!

Yeah, I can go to bed (at the moment I'm so tired about this <tr>, <td>, </td>, </tr>, ...).  ::)

Good night and have a nice weekend!

 :) :D :)

solved

Title: Re: Editing anycontent.php
Post by: Joachim Müller on November 21, 2004, 07:51:15 am
you just found out about html's <td> command, congrats ::)

Joachim
Title: Re: Editing anycontent.php
Post by: hama on November 21, 2004, 11:14:14 am

@GauGau: I know you laugh a little bit about what I found out ...  :) ... but I'm happy that I found it out.

Anyway, thanks for this great support forum. It's really for profs and beginners!

And some of you profs could be good teachers ... If you're looking for a job or a stage in nice switzerland (http://www.engelberg.ch/en/index.php) ... Call me.  8)

One other thing I found out: A website without a coppermine gallery is nothing!
Title: Re: Editing anycontent.php
Post by: Joachim Müller on November 22, 2004, 07:38:35 am
hehe, although I'd quite like the landscape in Switzerland (and the wages), I'd rather not work as a teacher. Did so before, but found out that I wasn't meant to be a teacher - I don't have enough patience... ;)

Joachim