Not signed in (Sign In)

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

    • CommentAuthorbevw
    • CommentTimeApr 28th 2008
     
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 28th 2008 edited
     
    If you feel up to it, bevw, you can download and install the latest SVN trunk. I added more functionality to the generate_breadcrumbs() function as described here to easily modify the breadcrumbs.

    Basically, there are now 3 variables you can send to generate_breadcrumb($collections, $sep, $translate):

    • 1st variable, $collections allows you to quickly change the "Collections" text - defaults to "Collections" if nothing submitted

    • 2nd variable, $sep allows you to quickly change the separator - defaults to ' » '

    • 3rd variable, $translate allows the user to toggle translation of the $collections variable (whether the submitted text is typed in english or in the user's language) - defaults to true


    So, in your 'header.php' function, find the generate_breadcrumbs() function and modify it to your liking (separating the variables with (,) commas).

    1. If you want 'Collections' to be renamed 'My Pics', you would call the function: generate_breadcrumbs("My Pics");
      outputs-> My Pics » Collection Name » Album Name » Picture Name

    2. If you want to rename 'Collections' to 'Home' and change the separator from '»' to '|', you would call the function: generate_breadcrumbs("Home", " | ");
      outputs-> Home | Collection Name | Album Name | Picture Name

    3. If you don't want the 'Collections' text translated through the plog_tr() function, you would set the 3rd variable to false (no quotes): generate_breadcrumbs("Gålleri", "->", false);
      outputs-> Gålleri->Collection Name->Album Name->Picture Name

    • CommentAuthorbevw
    • CommentTimeApr 28th 2008
     
    Thanks I will try it.
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 28th 2008
     
    Let me know what you think too! :D
    • CommentAuthorbevw
    • CommentTimeApr 29th 2008
     
    Sidtheduck, I'm complete PHP neophyte, but I've done a lot of tinkering to my little site and I didn't want to mess with it too much. So I decided to upload only two files from the "trunk": header.php and the functions.php. I made the change to the header file, and everything works great. Thank you so much!

    Now, how would I go about changing the default photos for collections-- to have them not show a photo from the gallery but rather a unique descriptive graphic that will not be part of the gallery?

    I thought of doing some CSS that changes the display properties so these particular photos dont show, but I'm sure there is a more elegant way to do it...

    Is anyone working on this idea?

    Bev
    • CommentAuthorheenke
    • CommentTimeApr 21st 2009
     
    Hum hi again =) i wanna rename my "Collections" to something else. But i try to follow the first guide, as i dont use latest SVN. But it says i need to change acouple of lines in gallery.php ? My gallery.php doesnt contain that much rows :P hehe. hum :/ or might there be a easier way to rename it?
    • CommentAuthorheenke
    • CommentTimeApr 21st 2009 edited
     
    http://www.plogger.org/forum/discussion/1683/changing-the-word-collections/#Item_2

    This guide worked =)