Not signed in (Sign In)

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

Please sign in or apply for membership to remove the ads
  1.  
    Hi guys,

    Seen some really really good posts from SidTheDuck but I still can't get anything to happen on site I makeing for a friend.

    http://www.kingofhosting.co.uk/timandkath/gallery.php
    the script works fine at:
    http://kingofhosting.co.uk/timandkath/plogger/

    Could you let me know how to first.... display the gallery on the gallery.php and the secondly how to make layout changes.

    Thanks

    P.S. a guy called Mike said he had a commented file - is there anything like this available?
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 19th 2008
     
    chris_elevate,

    What is your code in http://www.kingofhosting.co.uk/timandkath/gallery.php to include the script? You should be using plogger/index.php as an example, NOT plogger/gallery.php. You can find this in the documentation (albeit limited at this point) too.

    In your http://www.kingofhosting.co.uk/timandkath/gallery.php, you should have:
    <?php require("plogger/gallery.php"); ?>as the first line of your code and:<?php the_gallery_head(); ?>in the head tags and:<?php the_gallery(); ?> where you want the pictures to show up.

    Is this what you have? For some reason, your gallery.php file cannot find the plog-functions.php file so it can't recognize the plogger_init() function.
  2.  
    Excellent!!!

    Thanks Sid!!!

    Can you take me through how to make changes now to the:
    http://kingofhosting.co.uk/timandkath/gallery.php

    In order to make it look integrated with the site?

    Thanks so much!!! You are a star!!!
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 19th 2008
     
    glad you got it working!

    For integrating it into your website, I would start with the 'default' theme instead of the 'air' theme like you have (since 'air' uses some images in the theme). Then, just modify the 'gallery.css' file to suit your needs (colors, width, borders, etc.)!
  3.  
    Wicked!! Thanks.

    How can I add/remove elements and move stuff around etc? I mean things like the search function and some of the footer elements?

    There are some examples of integration which look really great!
    Like this one:
    http://www.hahmed.com/blog/plogger/

    Also how can I simply make the script fit the page I've got it running in?
    http://www.kingofhosting.co.uk/timandkath/gallery.php

    P.S. I've changed the theme.... is this the one you're referring to?

    Thanks
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 19th 2008 edited
     
    Yes, that is the theme I am referring to. Now to edit that theme ('default').

    To remove the search, open 'header.php' and find:
    '</td><td id="jump-search-container">'.generate_jump_menu() . generate_search_box().'</td></tr></table>';remove the generate_search_box() like so:'</td><td id="jump-search-container">'.generate_jump_menu().'</td></tr></table>';

    And to make plogger fit the window you're in (although it looks like with the new theme it is already doing that), just change the width of #main_container in the gallery.css to whatever you want (100%, actual pixels, etc.).
  4.  
    Thanks Sid,

    That's worked a treat... and to remove the RSS feed at the bottom? Do you know how to do this?

    I also seem to have a ! that's appeared in the gallery now??? Any idea where this has come from?

    And lastly the CSS seems to be styling my whole page now i.e. http://www.kingofhosting.co.uk/timandkath/ seems to be using my original style.css file and

    http://kingofhosting.co.uk/timandkath/gallery.php seems to using the plogger style.css file. Any idea why??

    Thanks again!!!
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 21st 2008
     
    Posted By: chris_elevate... and to remove the RSS feed at the bottom? Do you know how to do this?
    This is in 'footer.php'. Just remove:<td id="rss-tag-container">'.plogger_rss_feed_button().'</td>

    Posted By: chris_elevateI also seem to have a ! that's appeared in the gallery now??? Any idea where this has come from?
    I don't know where this is coming from. It seems to be happening right at the bottom of 'header.php'. I would check there first to see if anything was mis-typed there.

    Posted By: chris_elevateAnd lastly the CSS seems to be styling my whole page now i.e. http://www.kingofhosting.co.uk/timandkath/ seems to be using my original style.css file and http://kingofhosting.co.uk/timandkath/gallery.php seems to using the plogger style.css file. Any idea why??
    This is how it is supposed to be working. Whenever you go to a plogger image (even embedded), it pulls the style.css from the plogger theme you are using (since you probably don't have all the plogger image layout CSS in your main style.css file). Just check to see if you have any overlap on your CSS styles (it looks like you are just having some troubles with the links in the div box with the #nav id).
  5.  
    Thanks Sid!

    Right I simply left in:
    '</td><td id="jump-search-container"></td></tr></table>';
    and this got rid of the 1! lol

    Any idea why the album displays so far down the page?

    As for the CSS do you mean use one CSS file for the site and integrate them both together?

    i.e. rename some of the div tags if it's getting confused?

    Thanks
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 21st 2008 edited
     
    Posted By: chris_elevateAny idea why the album displays so far down the page?
    Padding somewhere?



    Posted By: chris_elevate
    As for the CSS do you mean use one CSS file for the site and integrate them both together?
    i.e. rename some of the div tags if it's getting confused?
    I think the css is getting confused by divs with the same id (i.e. #wrapper id is defined twice, once around the navigation links from the rest of the site and another around the Plogger output). This is what is causing the text to be different than the rest of the site.

    Basically, ids should only be used once, classes multiple times (to correctly validate for W3C). Also, if you have a class or id defined in your overall site css file, remove it from the gallery css file if you want them to look the same. That's all. :D
  6.  
    Would the padding be in gallery.css? Which div tag will it be in? Any idea?

    So you would run 2 CSS files or avoid this?

    Do you know any good tutorials for using CSS in DreamWeaver CS3 - I used to use CSS a while ago but it was when DreamWeaver was pretty naff and couldn't handle it very well. I understand DreamWeaver now has built in CSS features which all you to change it really well?

    Thanks
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 21st 2008 edited
     
    You can use 2 CSS files no problem! I don't have any good tuts on CSS for Dreamweaver, but if you just edit the gallery.css to remove the font stylings from the #wrapper div, everything should work out swimmingly! You can use any text editor to change CSS, but it helps to have a program with colored stylings (easier to see if you forgot something). Like you said, I think Dreamweaver has a built in colorizer for editing files so you should be able to use that.

    Open 'gallery.css' and delete or comment out:#wrapper {
    font-family: Verdana, "Trebuchet MS", Geneva, Arial, Helvetica, SunSans-Regular, sans-serif;
    font-size: 10pt;
    }
  7.  
    Awesome!!! - Done it and it works a treat!

    Dude you're good!!! Who are you? Where you from? you should get a job doing this!!

    Not sure if you saw this... I added it after the post....

    Would the padding be in gallery.css? Which div tag will it be in? Any idea?

    Thanks

    Oh and any idea which bit styles the Tim and Kath header bit?

    Thanks
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 21st 2008
     
    Posted By: chris_elevateAwesome!!! - Done it and it works a treat!
    Great!

    Posted By: chris_elevateDude you're good!!! Who are you? Where you from? you should get a job doing this!!
    Thanks! I'm from Seattle, but I already have a day job! :P

    Posted By: chris_elevateWould the padding be in gallery.css? Which div tag will it be in? Any idea?
    I guess this may not be padding. From the looks of it, there is head CSS in your pages for#apDiv2 {
    position:absolute;
    left:50px;
    top:265px;
    width:700px;
    height:195px;
    z-index:2;
    }
    This starts the galelry down 265px from the top. I really don't think that it is too far down the page though. It looks nice!

    Posted By: chris_elevateOh and any idea which bit styles the Tim and Kath header bit?
    This would be the #gallery-name in your gallery.css. Just add something like "font-size: 1.2em;" to that CSS to get it smaller than it currently is (currently is the default size for header tag 1 - which is the largest header tag).
  8.  
    Thanks again Sid,

    I'm sure I'll find some other problems I need help with... thanks so much for your help getting me this far.
    I was getting stressed as I couldn't get the thing working!!!

    Do you think losing the link back to plogger would be a bad idea?
    •  
      CommentAuthorsidtheduck
    • CommentTimeApr 21st 2008 edited
     
    Posted By: chris_elevateDo you think losing the link back to plogger would be a bad idea?
    That is up to you, but it is always better to leave it or to make a small donation for the development team's work (for recognition of some sort for the time people have put in).
  9.  
    Cheers =)