wpg2 gallery album tree

souper

Joined: 2007-11-05
Posts: 10
Posted: Mon, 2007-11-12 21:07

i have a site i am working on here:
www.route108.com

i updated wordpress, wpg2, and gallery2 toward the end of october.

i had been using this code in the side bar phpcode widget to get the album tree to show up and it had been working.

Quote:
<?php @readfile('http://www.route108.com/wp/wp-gallery2.php&g2_view=albumselect.Navigation'); ?>

i get nothing for content now.

also with the wpg2Tree widget i get broken formatting of the links. ( see link above ) and once a link is clicked 'undefined' is returned.

i have the relative links to the dtree.js and dtree.css in my wpg2header.php file. the album tree seems to work fine in gallery2 stand alone...?

any ideas.

thanks.

BTW - i have searched for input thats been posted previously but none of the fixes has worked.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2007-11-12 21:39

Is that the widget displaying on your site now, as the wp-gallery2.php is no longer supported in wpg2 3.0

If it is, then I can see one issue with the widget, it looks like the BBCODE which you have in your titles is not being rendered correctly, I believer we have a bugticket open against this already..

However When I click on the links they work fine.

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

 
souper

Joined: 2007-11-05
Posts: 10
Posted: Tue, 2007-11-13 00:06

no it wasn't the widget being used when you looked earlier. i did change it to the included widget now though, and the output is the same.

once you got into the embeded gallery the album tree didn't bunk up? ie: not load - or say undefined' where the tree was supposed to go?

i also get the bad formatting inside of the wpg2 image insert applet. though i have'nt ( as far as i know ) changed or added any BBcode to anything but forum posts ;}

should the php @readfile look something like this? instead of wp-gallery2.php as the file

Quote:
<?php @readfile('http://www.route108.com/wp/?page_id=29&g2_view=albumselect.Navigation'); ?>

i have no URL rewrites active.

when the embedded page loads - i get a javascript error ( dtree undefined ). IE7 on win vista.

thanks again. if i didnt have a shaved head i'd be pulling my hair out by the wad...

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-11-13 02:14

You do not need to add @readfile in order to get the WPG2 Album Tree Widget to work.. Please read -> http://codex.gallery2.org/Integration:WPG2_Operations_-_Sidebar

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

 
souper

Joined: 2007-11-05
Posts: 10
Posted: Tue, 2007-11-13 17:00
ozgreg wrote:
You do not need to add @readfile in order to get the WPG2 Album Tree Widget to work.. Please read -> http://codex.gallery2.org/Integration:WPG2_Operations_-_Sidebar

i've tried that code as well, and get the same results.

as far as wp-gallery2.php not being supported. the image search i have in the sidebar is using wp-gallery2.php to generate the results, and it seems to work fine.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-11-13 21:45

Can you please add the albumtree wpg2 widget so I can see the results first hand.. thanks

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

 
souper

Joined: 2007-11-05
Posts: 10
Posted: Sat, 2007-11-17 20:27

i added the default wpg2 album tree widget to the side bar. i've tried a few other things in the mean time, and cant' get it to work.

the tree shows up on the main page, but if you click one of the links - the link will open up to the embedded gallery2 page, but the tree returns 'undefined' and only shows the expand/collapse links.

the other things thats making me wonder is if you look close at the parent of the tree the URL is reffering to wp-gallery2.php.

i also tried reuploading the dtree.js file thinking maybe it gor corrupted originally - but that didn't change anything.

i also have no clue where those BBcode tags are coming from... funky.

is there any other means to get the gallery2 albums listed in the wordpress sidebar? besides manually adding links.

i appreciate your time !
tim

 
souper

Joined: 2007-11-05
Posts: 10
Posted: Sat, 2007-11-17 20:30

i got the 'undefined ' error to stop - i think - by turning off the albumselect block in gallery2 standalone. so now it's just a matter of formatting.

 
souper

Joined: 2007-11-05
Posts: 10
Posted: Sat, 2007-11-17 20:44

i think i figured it out. it had to do with the gallery2 upgrade.

the titles of the albums got bunked up with the BBcode tags somehow, but only some of them. not sure how that happened... and thankfully i don't have 1000 albums ;}

thanks again !!!