Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Editing anycontent.php  (Read 4887 times)

0 Members and 1 Guest are viewing this topic.

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Editing anycontent.php
« 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.  :)

« Last Edit: November 21, 2004, 02:58:57 am by TranzNDance »
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Editing anycontent.php
« Reply #1 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 :-)

 ;)
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Editing anycontent.php
« Reply #2 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
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Nibbler

  • Guest
Re: Editing anycontent.php
« Reply #3 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.
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Editing anycontent.php
« Reply #4 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

Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Editing anycontent.php
« Reply #5 on: November 21, 2004, 07:51:15 am »

you just found out about html's <td> command, congrats ::)

Joachim
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: Editing anycontent.php
« Reply #6 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!
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Editing anycontent.php
« Reply #7 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
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.