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: adding column titles in starttable in anycontent.php  (Read 3967 times)

0 Members and 1 Guest are viewing this topic.

ausdlk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
adding column titles in starttable in anycontent.php
« on: January 01, 2007, 06:22:37 am »

I've found how to create columns in the anycontent section of my web site (www.david-keenan.com) but I cannot see how to add titles to each of the columns. Using starttable() is can get a title into the first (left-most column) but how do I add titles to the other column(s)?
« Last Edit: January 03, 2007, 12:41:20 am by Nibbler »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: adding column titles in starttable in anycontent.php
« Reply #1 on: January 01, 2007, 06:48:28 am »

Add your title manually with html
Logged
‍I don't answer to PM with support question
Please post your issue to related board

ausdlk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: adding column titles in starttable in anycontent.php
« Reply #2 on: January 01, 2007, 10:29:56 pm »

>Add your title manually with html

Can you (or someone) point me to some sample code?

Dave.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: adding column titles in starttable in anycontent.php
« Reply #3 on: January 02, 2007, 05:54:02 am »

something like this:
Code: [Select]
<?php
/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2006 Coppermine Dev Team
  v1.1 originally written by Gregory DEMAR

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
  ********************************************
  Coppermine version: 1.4.8
  $Source$
  $Revision: 3116 $
  $Author: gaugau $
  $Date: 2006-06-08 00:11:54 +0200 (Do, 08 Jun 2006) $
**********************************************/

/**
* Coppermine Photo Gallery 1.4.6 anycontent.php
*
* This file file gets included in the index.php if you set the option in admin
* can be used to display any content from any program, it is always to be edited
* according to tastes and then used
*
* @copyright 2002,2005 Gregory DEMAR, Coppermine Dev Team
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License V2
* @package Coppermine
* @version $Id: anycontent.php 3116 2006-06-07 22:11:54Z gaugau $
*/

if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');

starttable("100%");

?>

<tr>
    <td class="tableh1" colspan="1">first title</td>
    <td class="tableh1" colspan="1">2nd title</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" >
        And this is 2nd content block
    </td>
</tr>
<?php
endtable
();

?>

Logged
‍I don't answer to PM with support question
Please post your issue to related board

ausdlk

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: adding column titles in starttable in anycontent.php
« Reply #4 on: January 03, 2007, 12:32:36 am »

Thanks.

This issue may be closed as "Solved".
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.