forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: energy0m on November 19, 2005, 07:32:37 pm

Title: modifying template album display
Post by: energy0m on November 19, 2005, 07:32:37 pm
sooo i was looking at some sites on the web and i came across

http://photomatt.net/photos/log/

i uinderstand hes using Gallery instead of coppermine but i'd like to get coppermine to output he album list similar to that ... so i was working on the table that dies that in my theme.php which looks like this ...

Code: [Select]
        <table width="600" height="300" cellspacing="0" cellpadding="0">
        <tr>
                <td colspan="3" height="1" valign="top" class="tableh2">
                        <a href="{ALB_LINK_TGT}"><h4>{ALBUM_TITLE}</h4></a>
                </td>
        </tr>
        <tr>
                <td colspan="3" height="1" valign="top" class="tableh2">
                        {ADMIN_MENU}
                </td>
        </tr>
        <tr>
                <td colspan="3">
                        <img src="images/spacer.gif" width="1" height="1" alt="" /><br />
                </td>
        </tr>
        <tr height="100%">
                <td align="center" height="100%" valign="top" class="thumbnails">
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" class="image" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
                <td height="100%">
                        <img src="images/spacer.gif" width="1" height="1" alt="" />
                </td>
                <td width="100%" height="100%" valign="top" style="padding-left:5px; padding-right:5px;">

                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}</p>
                </td>
        </tr>
        </table>



i guess the main question i have is how do i seperate the upload dat out of the ALB_INFOS call so that i can have it display as its own item ....

what im trying to do is emulate the layout on the photomatt site ... heres what ive come up with so far ... 

Code: [Select]
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="100%" height="24" valign="top">{DATE TO GO HERE} </td>
  </tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td width="30" rowspan="2" valign="top"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="271" height="19" valign="top" class="this"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td width="531" rowspan="2" valign="top">{ALBUM_TITLE}</td>
    <td width="1"></td>
  </tr>
  <tr>
    <td rowspan="2" align="center" valign="middle"><a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br />
    </a></td>
    <td height="55"></td>
  </tr>
  <tr>
    <td height="111">&nbsp;</td>
    <td>                        <p>{ALB_DESC}</p>
    </td>
    <td></td>
  </tr>
  <tr>
    <td height="31">&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td></td>
  </tr>
</table>

where i have the {DATE TO GO HERE} ius obviously where i want that to display ... how can i achieve this?

also i noticed that on photomat he is formatting his data and having it ouput as a jpg... im assuming thats usiing GDimgmagick or something .. anyone know how to do this?

thanx for ya help !!! 
Title: Re: modifying template album display
Post by: Tranz on November 19, 2005, 07:44:13 pm
hmmm... looks more like a photoblog than a regular gallery. CPG 1.4 with minicms plug-in can support photoblogs, like http://photoblog.tu2.net. The difference is photomatt has links to albums rather than individual images. I'll discuss this in the plugin forum to see if it's possible to link to an album or image.

This is not to say that you shouldn't try doing what you are attempting. I just think it's a good idea to have the option to blog albums in additional to individual photos. Thanks for the idea.
Title: Re: modifying template album display
Post by: energy0m on November 22, 2005, 12:24:41 pm
right but how do i pull the DATE ADDED out of the {ALB_INFOS} function ?? and does anyone have any info on how to format the date using the GD image library to output it as a picture like the http://photomatt.net/photos/log/ site does