Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorpandianbe
    • CommentTimeAug 28th 2008 edited
     
    Hi,

    I Need Create Links for Albums from collection View like http://www.xxxxxx.com/gallery/
    How can i achieve this ?

    Please help me with code ?

    Thanks in Advance

    Pandian
    • CommentAuthorpandianbe
    • CommentTimeAug 28th 2008 edited
     
    HI Sidtheduck,

    Please help me!!!

    i need look like this....http://www.xxxxxx.com/gallery/

    Create links in colletion view.Which theme i need to use and what about the code for this change?

    Thanks !!
    Pandian
    •  
      CommentAuthorsidtheduck
    • CommentTimeAug 29th 2008
     
    pandianbe,

    What is the link to your site again? I need to see where to place this code for your theme.
    • CommentAuthorpandianbe
    • CommentTimeSep 2nd 2008 edited
     
    Hi Sidtheduck,

    I am maintaining this site http://www.xxxxxl.com/photogallery/

    I need to create this look like this http://www.xxxxx.com/gallery/

    I need to place the albums link near the photos of collection view.

    Please refer the above sites.

    Thanks !!!
    Pandian
    •  
      CommentAuthorsidtheduck
    • CommentTimeSep 2nd 2008 edited
     
    Try this pandianbe,

    Open your 'collections.php' in the default theme folder (which I think you are using) and look for the following lines:
    print plogger_get_collection_name().' <br/>';
    print '<div class="meta-header">(';

    Between those two lines add the following code so it looks like this:
    print plogger_get_collection_name().' <br/>';

    // BEGIN album link output
    $album_links = array();
    plogger_init_albums(array(
    'from' => 0,
    'limit' => 1000,
    'collection_id' => plogger_get_collection_id(),
    'sortby' => 'id',
    'sortdir' => 'DESC'));
    if(plogger_has_albums()) {
    while(plogger_has_albums()){
    plogger_load_album();
    $album_links[] = '<a href="'.plogger_get_album_url().'">'.plogger_get_album_name().'</a>';
    }
    }
    echo implode('&nbsp;|&nbsp;', $album_links);
    // END album link output

    print '<div class="meta-header">(';


    That should do it for you.
    • CommentAuthorpandianbe
    • CommentTimeSep 2nd 2008 edited
     
    Hi,

    Thats Great.But i need to create links for respective albums links in front of one collection's Picture.

    But here http://www.xxxxx.com/photogallery we have create links for all albums in all collection's view Picture.

    Please refer this links as http://www.xxxxx.com/gallery/

    Please help to get respective albums links only in front of respective collection's Picture.

    Thanks a lot!!!
    Pandian
    •  
      CommentAuthorsidtheduck
    • CommentTimeSep 2nd 2008 edited
     
    Oops! I forgot to clear out the $album_links array. I've edited my code above. Look for the second line of my new code:
    $album_links = array();
    • CommentAuthorpandianbe
    • CommentTimeSep 2nd 2008 edited
     
    sidtheduck,

    Thank you so much.I am using only one picture in collection view.

    it is very ugly to see .Please refer the link http://www.stillstamil.com/photogallery

    Now i have the links below only the Picture.but i need left side Picture and right albums links look likes http://www.stillsindia.com/gallery

    one more thing i need to sort this albums links as alphabetical order by Album name not by id.

    Please help me

    Pandian
    •  
      CommentAuthorkimparsell
    • CommentTimeSep 3rd 2008
     
    Pandian -

    To sort the links alphabetically, you need to change
    'sortby' => 'id',
    'sortdir' => 'DESC'));

    to
    'sortby' => 'name',
    'sortdir' => 'ASC'));

    With regard to your layout issues, the other site is using a table to accomplish that gallery design, rather than a layout using divs. You'll need to play around with your template to try and get things lined up the way you want them.
    • CommentAuthorpandianbe
    • CommentTimeSep 3rd 2008 edited
     
    sidtheduck,

    Little bit confusion with code part to restructure the view. Please help me.

    i need to restructure my view.

    Please help me !!! how to include this in tables

    Thanks !!
    Pandian
    • CommentAuthorpandianbe
    • CommentTimeNov 8th 2008
     
    Now i implement this in Home Page. i am getting the link like http://www.homepage.com?level=album&id=5 instead of http://www.homepage.com/gallery?level=album&id=5.

    Please have a look into this code:

    $albumurl= plogger_get_album_url();
    $albumurl= str_replace("http://www.homepage.com.com/","http://www.homepage.com/gallery/",$albumurl);
    $album_links[] = ''.plogger_get_album_name().'';

    its not working for me in homepage ?????? (But work in http://www.homepage.com/gallery/)

    and I need SEO Urls.

    Thanks
    Pandian
    • CommentAuthorpanjabi
    • CommentTimeNov 8th 2008
     
    pandianbe I really like your gallery, can you please tell me how you used the "-" in the album URLS instead of "_"

    eg: http://www.stillstamil.com/photogallery/tamil-actress-gallery/aishwarya-rai/

    Thanks