Album search results to be displayed as the albums from a category Album search results to be displayed as the albums from a category
 

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

Album search results to be displayed as the albums from a category

Started by Sweetener, October 23, 2019, 03:08:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sweetener

 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

Sweetener

What I mean is that this is the code for albums in a category

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

<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