how to add image slide show like tidy picture in a page?

i searched inside tidypicture but dont Know where they written that code ....

i can see this coding but dos'nt work?

if (elgg_get_plugin_setting('slideshow', 'tidypics') && $album->getSize() > 0) {
        $offset = (int)get_input('offset', 0);
        $url = $album->getURL() . "?limit=64&offset=$offset&view=rss";
        $url = elgg_format_url($url);
        $slideshow_link = "javascript:PicLensLite.start({maxScale:0, feedUrl:'$url'})";
        elgg_register_menu_item('title', array('name' => 'slideshow',
                                                'href' => $slideshow_link,
                                                'text' => "<img src=\"".elgg_get_site_url() ."mod/tidypics/graphics/slideshow.png\" alt=\"".elgg_echo('album:slideshow')."\">",
                                                'title' => elgg_echo('album:slideshow'),
                                                'class' => 'elgg-button elgg-button-action',
                                                'priority' => 300));
}

can any one suggest a solution ?

  • Slideshow with images of your own choice (i.e. no images of Tidypics)? Then it's not that easy to achieve. First, you will have to load the PicLensLite JS library for the slideshow to work (in the Tidypics plugin the loading is done in the pagehandler function). Then you also need to provide the images to be shown in the slideshow by an rss view (for Tidypics this is done by $url = $album->getURL() . "?limit=64&offset=$offset&view=rss"). The code you posted above is basically only the code to display the button to start the slideshow.

  • i know its for the image ... wat i required is i need to call the slideshow in a static page .... for viewing the pictures.....

    is that possible?

  • I can view all the user image using the path

    /photos/siteimagesowner/$user->guid

    but i need to make a slide show ...

  • Or tell me how can i make image slider . that is enough

  • @iionly can u tell how can we do tat

    Then you also need to provide the images to be shown in the slideshow by an rss view (for Tidypics this is done by $url = $album->getURL() . "?limit=64&offset=$offset&view=rss").

  • this function only list the values

    $limit = (int)get_input('limit', 20);

    echo elgg_list_entities(array(
        'type' => 'object',
        'subtype' => 'image',
        'container_guid' => $vars['entity']->getGUID(),
        'limit' => $limit,
        'full_view' => false,
    ));

    But in static page $vars['entity']->getGUID() not working can u tell how can we get the container id

     

  • i used a variable for $pic

    but i can see the image small....... is there any solution to change the image to large....

    if i set full_view => true.comment and other things are displaying

  • The feed url for the slideshow depends on what selection of images you want to include in the slideshow (images of a specific album, latest images uploaded etc.). If you want to display the latest images take a look in mod/tidypics/pages/lists/siteimagesall.php.

  • @iionly

    $limit = (int)get_input('limit', 20);

    echo elgg_list_entities(array(
        'type' => 'object',
        'subtype' => 'image',
        'owner_guid' =>$pic,
        'limit' => $limit,
        'full_view' => false,
        'list_type' => 'gallery',
        'gallery_class' => 'tidypics-gallery'
        ));

    using this i can a view the imge of a particular user . wat i required is .. how to view that in imageslider .

    can u explain it ?

  • I don't fully understand if you are trying to show the images using the Tidypics slideshow script or if you want to display the images with some other image slider script.

    For images of a user take a look at mod/tidypics/pages/lists/siteimageowner.php. You can try to add the user guid to the feed url when calling the slideshow

    $url = elgg_get_site_url() . "photos/siteimagesowner?guid=$pic&limit=64&offset=$offset&view=rss";
    $url = elgg_format_url($url);
    $slideshow_link = "javascript:PicLensLite.start({maxScale:0, feedUrl:'$url'})";
    elgg_register_menu_item('title', array('name' => 'slideshow',
                                                    'href' => $slideshow_link,
                                                    'text' => "<img src=\"".elgg_get_site_url() ."mod/tidypics/graphics/slideshow.png\" alt=\"".elgg_echo('album:slideshow')."\">",
                                                    'title' => elgg_echo('album:slideshow'),
                                                    'link_class' => 'elgg-button elgg-button-action'));

    Don't know if this will work though.