Author Topic: To add album title below ssi random tumb pic  (Read 7747 times)

0 Members and 1 Guest are viewing this topic.

Offline kimncris

  • album.pl User
  • *
  • Posts: 7
  • Karma: +1/-0
To add album title below ssi random tumb pic
« on: March 19, 2006, 17:10:45 »
hey everyone,

I wanted my random pic to display the album name as well as the picture, so I added this code and changed my ssi call to say "ssi=3;"


Code: [Select]
                      # show album title if ssi=3
if ($::ssi eq 3)
{
$object_html.="<center>from album <br/> <a href=\"$::albumprog?album=$::middle$temp\">  $::middle </a>  \n </center>";
}


before

Code: [Select]
# Close table
if ($mode)
{
$object_html.="</td></tr></table>\n";
}
# Close page
if ($::ssi eq 2)
{
$object_html.="</body></html>\n";
}
it works!

-cris
« Last Edit: March 19, 2006, 17:15:12 by kimncris »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: To add album title below ssi random tumb pic
« Reply #1 on: March 20, 2006, 12:16:13 »
Nice work, thanks for the tip Cris!

Offline kimncris

  • album.pl User
  • *
  • Posts: 7
  • Karma: +1/-0
Re: To add album title below ssi random tumb pic
« Reply #2 on: March 20, 2006, 15:16:09 »
no prob,

Do you know off-hand, which variable I would use to display the album "Title" instead of the folder file system name?

-cris

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: To add album title below ssi random tumb pic
« Reply #3 on: March 22, 2006, 15:11:39 »
Try $::shortdesc, it might do the trick.