slideshow possibility not in photos a. folders, only sidebar

Coucerbaum
Coucerbaum's picture

Joined: 2005-01-16
Posts: 13
Posted: Sun, 2005-01-16 00:59

hi peoples,

first, my english is very bad, i'm german.
second, you made a very fantastic gallery - GREAT !!!

i have some question: i want only display the slideshow ability in the left sidebar, and not in the folders and photos - it's too much for my users :-).
can you give me some solution, please, or must i edit the slideshow properties like in that thread?

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=24869&highlight=slideshow

thx, couci

----

Gallery URL (optional): http://www.daniel-meissner.de/gallery2
Gallery version: 2.0 alpha 4
Webserver (with version): apache
Datatabase (with version): mysql
PHP version (eg 4.2.1): 4
phpinfo URL (optional):
Graphics Toolkit(s): netbpm
Operating system: 1&1 , i think linux intel server
Web browser/version: firefox 1.0 / ie 6

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-01-18 03:25

You can modify modules/slideshow/slideshow.inc and in the getItemLinks method and change the foreach to this:

        foreach ($items as $item) {
            if (!GalleryUtilities::isA($item, 'GalleryAlbumItem'))
                continue;
            }
            $links[$item->getId()][] =
                array('text' => $this->translate('view slideshow'),
                      'params' => array(
                        'view' => 'slideshow:Slideshow',
                        'itemId' => $item->getId()));
        }
 
Coucerbaum
Coucerbaum's picture

Joined: 2005-01-16
Posts: 13
Posted: Tue, 2005-01-18 10:19

hi bharat,

thanks for your fast answer. but i have a problem, i cannot find this method in the file /gallery2/modules/slideshow/slideshow.inc. there is no method named getItemLinks. (i saw, you wrote the slideshow module, respect and thanks for your help)
in teh next i post my slideshow.inc for better understanding...

[edit: copy of slideshow.inc deleted (bharat)]

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2005-01-19 02:10

Oops, my bad I meant to say gallery2/modules/slideshow/module.inc ! sorry for the confusion.