Not signed in (Sign In)

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

    • CommentAuthorushanka
    • CommentTimeAug 21st 2007
     
    I am trying to make up link from my Gallery main page to another page on my site.
    I suspect something should be done with gallery.css and plog-functions.php files.
    Can somebody share light - how can i make it works.
    Thanks for any suggestions.
    • CommentAuthorushanka
    • CommentTimeAug 22nd 2007
     
    To be more precise i want to link plogger gallery with main page on my site. The integration into index.php is very well described on documentation page, but i have index.html extension and it doesn't work.

    I have looked through all posts and didn't find similar issue.

    Thanks in advance.
    • CommentAuthorjammindice
    • CommentTimeAug 22nd 2007
     
    where do you want this link to be? if you look at the theme files (plogger/themes/default/gallery.php) you should be able to add the link directly into that file, or into one of the other places (like in the breadcrumbs function or some other place).

    where are you trying to put the link? and is it going to be a picture link or text link?
    • CommentAuthorushanka
    • CommentTimeAug 22nd 2007
     
    Thanks for reply.
    Either way. First one- to put my logo or image just above the wrapper on main gallery page and if you lick on it it brings you to main page of the site.
    Or it could be just a button "Home" somewhere on the main gallery page to link it with site main page.
    Which ever way is easier to implement.
    Thanks
    • CommentAuthorjammindice
    • CommentTimeAug 23rd 2007 edited
     
    ok here it is...

    you want to modify the header.php file in whatever theme your using, i'm going to show you the default theme and if you're using another that's up to you.

    find the line that looks like this:
    <table id="header-table" width="100%"><tr><td>'.generate_header().

    it's near the top like line 7 (for me) and change it to something like this:
    <table id="header-table" width="100%"><tr>
    <td colspan=2><a href="http://www.yourdomain.com/homepage.html"><img src="http://www.yourdomain.com/images/linktoyourimage.jpg"></a>
    </td></tr><tr><td>'.generate_header().

    change the two links to the appropriate locations and VIOLA!!

    you can now have your visitors LICK (though you might want them to click instead ;) ) the picture link and be taken to your home page.
    • CommentAuthorushanka
    • CommentTimeAug 24th 2007
     
    Thanks for the tip jammindice,

    i made changes in default theme header as you showed me, but the image doesn't show up and i have gallery name now CLICKABLE, and it links to homepage.

    I like a bit more lucid theme, so i made same changes in there. And i got same result. You can check it here:
    http://ushankahat.com/plogger/index.html.

    Can i somehow insert image or banner just above the main wrapper on main gallery page or button "back home"?
    Because gallery name suppose to link to the galllery, it should not lead to homepage.

    Thanks for your time.
    • CommentAuthorjammindice
    • CommentTimeAug 24th 2007
     
    well what it was supposed to do was create an extra row in the first table and put your picture an link in the first row... i will take a look at the lucid theme and see if i can find out what's going on.
    • CommentAuthorjammindice
    • CommentTimeAug 24th 2007
     
    <td colspan=2><a href="http://ushankahat.com/index.html"><img src="www.ushankahat.com/images/privet_ushanka.gif></a>

    this line is where you are having all of you're problems... missed a " at the end of the src declaration... add the " and you should be good to go.
    • CommentAuthorushanka
    • CommentTimeAug 24th 2007
     
    i forgot to mention, if i add " at the end (_ushanka.gif") the gallery name becomes non-clickable. And no image shows up.
    Same happens in default theme.
    • CommentAuthorjammindice
    • CommentTimeAug 24th 2007 edited
     
    That's the way it's supposed to be, because you're supposed to have the breadcrumbs links doing that...

    if you add another anchor tag farther down for the gallery it should work but these headings aren't ment to be clickable by default

    thats why you see a "collections" all the way up in the top left corner...

    oh and by the way you need to specify http:// on any image src link or a href= link or it assumes the current directory of the website... so add http:// in the src of your image and it should show up.
    Thankful People: ushanka
    • CommentAuthorushanka
    • CommentTimeAug 24th 2007
     
    THANKS A LOT!
    It works now!
    So I have header.php lucid themes now:
    <?php

    plogger_init();


    // Output highest level container division
    print '<div id="wrapper">
    <table id="header-table" width="100%"><tr>
    <td colspan=2><a href="http://mysite.com/index.html"><img src="http://mysite.com/images/myimage.gif"></a>
    </td></tr><tr><td>'.generate_header().



    print '<div id="main_container">
    '.plogger_download_selected_form_start().'
    <div id="breadcrumbs">
    <div id="download-selected">'.plogger_print_button().plogger_download_selected_button().'</div>
    <div>'.generate_breadcrumb().'</div>
    </div>';


    ?>
    It shows my logo-banner-button on main gallery page linked to my home page.

    Thanks jammindice again.

    Actually, when i was looking for the best gallery suits my small site i narrowed 4 from the Google search: Gallery 2, Coppermine Gallery, PHPAlbum and Plogger. I have tried to install and configure every one, but the best one is Plogger.

    Thanks guys!