modifying template album display modifying template album display
 

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

Main Menu

modifying template album display

Started by energy0m, November 19, 2005, 07:32:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

energy0m

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 ...


        <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 ... 


<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 !!! 

Tranz

#1
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.

energy0m

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