Nested albums info on main gallery page

Agatka
Agatka's picture

Joined: 2002-10-19
Posts: 140
Posted: Wed, 2002-11-27 01:25

HI all,

I have seen it on many galleries but cannot find any post about it, or at least not the one that would explain how to do that.

Next to the highlighted foto and the album info, I'd like to have a list of nested albums.

Thanks in advance for your help.

Agatka :smile:

 
Gaile

Joined: 2002-07-20
Posts: 1301
Posted: Wed, 2002-11-27 02:23

Hi

Run config.php again - it's line 55:
----------
$gallery->app->showAlbumTree = "yes";
----------

Right now yours probably says "no".

Regards,

Gaile

 
Agatka
Agatka's picture

Joined: 2002-10-19
Posts: 140
Posted: Wed, 2002-11-27 02:48

Thanks a lot Gaile :smile:.

Do you know how I can add, let say a bullet in front of each line listing the nested albums? Don't know where I could actually format the appereance of the sub-albums tree.

Thanks

Agatka

 
Agatka
Agatka's picture

Joined: 2002-10-19
Posts: 140
Posted: Wed, 2002-11-27 03:03

Nevermind :smile:)

I got it. :smile:

http://galeria.agatka.net

 
drazin

Joined: 2002-11-23
Posts: 144
Posted: Mon, 2002-12-02 19:01

how did you do that i love the look of your gallery

 
Agatka
Agatka's picture

Joined: 2002-10-19
Posts: 140
Posted: Tue, 2002-12-03 00:05

Hi drazin,

How did I do what? The little bullets in fron of the nested album? I inserted the picture in fron of the link to the nested albums.

If you want to customize your look of that section you have to do it in util.php. The code that is responsible for that part starts somewhere around line 1141. Here is what my customized code looks like:

echo "<div style="margin: 0px 0px 0px 8px">";
echo "<table border="0" cellpadding="0" cellspacing="0" width="100%">";
echo "<tr>";
echo "<td width="10">";
echo "<img border="0" src="http://www.jambra.com/images/dotka.jpg" align="top" hspace="3">";
echo "</td>";
echo "<td>";
echo "<span class=fineprint>";
echo "<a href="";
echo makeAlbumUrl($myName);
echo "">$val2 $val3</a>n";
printChildren($myName,$depth+1);
echo "</td>";
echo "<tr>";
echo "<td>";
echo "<img border="0" src="http://www.jambra.com/images/spacer.gif" height="5" align="top">";
echo "</td>";
echo "</tr>";
echo "</tr>";
echo "</table>";
echo "</span>";
echo "</div>";

I basically created a table with two colums. The left column contains my bullet and the right the code that prints the nested album. I did it that way, so that the bullet is centered in front of the album title.

Good luck :smile:

Agatka