wpg2_make_html_album_tree() output messed up

davidedw

Joined: 2007-06-10
Posts: 19
Posted: Wed, 2008-03-26 06:42

Hi, I'm in the process of setting up my wordpress blog (http://davidedwardsphotos.com/blog) that is using WPG2. I've got the wpg2_make_html_album_tree() code in the sidebar file:

                </li>
                <li>Album tree...</li>
                <li><?php print wpg2_make_html_album_tree(); ?></li>
		</ul>

It was working nicely yesterday, but today it's all messed up:

[img]http://davidedwardsphotos.com/images/wpg2_make_html_album_tree.jpg[/img]

As I've been playing with the WP CSS files, I suspect I may have messed up something to do with WPG2. Here's a firebug display of the output:

[img]http://davidedwardsphotos.com/images/wpg2_make_html_album_tree2.jpg[/img]

Can anyone advise what I've done, or what I need to do to fix it?

Thanks.

My gallery: http://davidedwardsphotos.com/gallery
My karate photos: http://davidedwardsphotos.com/bushidokan

 
davidedw

Joined: 2007-06-10
Posts: 19
Posted: Wed, 2008-03-26 08:57

Ooops, found it. The images in the tree view, such as the folder icons, default back to the style.css img tag. I had changed...

img {
	border: #ccc 1px solid;
	padding: 3px;
}

to...

img {
	/* border: #ccc 1px solid; */
	padding: 3px;
        margin: 2px 2px 2px 0px;
        clear: left;
        float: left;
}

for some static images I'd put in a page. This threw off the display of the tree view. :-(

To allow me to play with the img settings in style.css, I've overridden the options in wpg2.css...

.dtree img {
	border: 0px;
	vertical-align: middle;
        /* added the following to overwrite the img tag in style.css */
        /* DAE 26.03.08 */
        padding: 0px;
        margin: 0px;
        float: none;
}

It seems to work ok.

David.

My blog: http://davidedwardsphotos.com/blog
My gallery: http://davidedwardsphotos.com/gallery
My karate photos: http://davidedwardsphotos.com/bushidokan

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-03-26 21:57

Well done.. FYI if you have a wpg2.css file in your theme directory, when you validate WPG2, WPG2 will instead use the wpg2.css from your theme directory thus you can make all the changes you want without it effecting you when new versions are released..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo