forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: Sweetener on October 23, 2019, 03:08:03 pm

Title: Album search results to be displayed as the albums from a category
Post by: Sweetener on October 23, 2019, 03:08:03 pm
 It is kind of unnecessary to style the albums and the search.php for albums. And it would be amazing to have the same tables and config in the album search results that the one in the albums from a category
Title: Re: Album search results to be displayed as the albums from a category
Post by: Sweetener on October 23, 2019, 03:21:39 pm
What I mean is that this is the code for albums in a category

Code: [Select]
<tr class="tableb tableb_alternate">

    <td width="50%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td colspan="3" height="1" align="left" valign="top" class="tableh2">
                        <span class="alblink"><a href="thumbnails.php?album=2">Don't Call Me Up - Hayley Louisa Brown</a></span>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="">
                        <br>
                    </td>
                </tr>
                <tr>
                    <td align="center" valign="middle" class="thumbnails">
                        <img src="images/spacer.gif" width="52" height="1" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="">
                        <br>
                        <a href="thumbnails.php?album=2" class="albums"><img src="PICLINK" class="image thumbnail" width="50" height="50" border="0" alt="PICNAME.jpg">
                            <br>
                        </a>
                    </td>
                    <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="">
                    </td>
                    <td width="100%" valign="top" align="left" class="tableb tableb_alternate">

                        <p></p>
                        <p class="album_stat">8 files, last one added on Jul 22, 2019
                            <br>Album viewed 17 times</p>
                    </td>
                </tr>
            </tbody>
        </table>
    </td>
</tr>

And the  <td width="50%" valign="top"> is modified based on the user's configuration on how many columns do they want.

But in the search php it is like this:

Code: [Select]
<tr>
    <td colspan="3" height="1" valign="top" class="tableh2">
        <span class="alblink"><a href="thumbnails.php?album=1">ALBUMNAME</a></span>
    </td>
</tr>
<tr>
    <td colspan="3">
        <img src="images/spacer.gif" width="1" height="1" border="0" alt="">
        <br>
    </td>
</tr>
<tr>
    <td>
        <a href="thumbnails.php?album=1 ">
            <img src="PICLINK" class="image" width="50" height="33" border="0" alt="PICNAME.jpg">
        </a>
    </td>
    <td width="100%" valign="top">
        &nbsp; </td>
</tr>

Which doesnt include the tableb.tableb_alternate