andreaslinde.com

Sometimes interesting, sometimes boring

Integrating flickr Album into K2: Version 2

Nov 18th 2005
Internet
90 Comments
respond
trackback

This is an update for integrating flickr Albums into the Wordpress Mod K2. This version is based on falbum version 0.5.5 or version 0.5.6 with some adjustments. Installation is more easy than in my last description ;-)

Update: Added zip package for falbum version 0.5.6!

After downloading, installing and configuring falbum version 0.5.5/0.5.6 plugin, you can continue with the following steps.

1. Download the moficiations

Download version 0.5.5 zip file (for v0.5.5) or version 0.5.6 zip file (for v0.5.6; UPDATED 02.12.2005) of my modifications and extract it into your wordpress folder. It will replace the following original files of falbum v0.5.5/v0.5.6:

  • /wp-content/plugins/falbum/falbum-plugin.php
    Changes:
    1. Commented line 140 because it is corrupting the rewrite rule (v0.5.5)
    2. Commented line 147 and added a new rewrite rule in line 148 which will makes the photos page menu highlighted in the header all the time when using friendly urls (v0.5.5)
    3. Commented line 145+ 233 and added a new rewrite rule in line 146 + 235 which will makes the photos page menu highlighted in the header all the time when using friendly urls (v0.5.6)
  • /wp-content/plugins/falbum/falbum.php
    Changes:
    1. Load falbum_mod.php code in line 23. (v0.5.5 + v0.5.6)
  • /wp-content/plugins/falbum/falbum.css.php
    Changes:
    1. Commented line 140 so the text in the sidebar is not moved to the bottom of the page (v0.5.5 + v0.5.6)
  • /wp-content/themes/k2/falbum-wp.php
    Changes:
    1. Using the new falbum sidebar function instead of the default (v0.5.5 + v0.5.6)
    2. Can be used as a page template (v0.5.5 + v0.5.6)

The package also contains the following new file:

  • /wp-content/plugins/falbum/falbum_mod.php
    Content:
    1. Sidebar function to control what to display in the sidebar on the different pages.
    2. Function to display the album description which is used in the sidebar of the album main pages.

2. Get a “Photos” menu and page

Go into Wordpress Admin and create a new page and assign it to the template with the name “Photo Album Page template”. The page title and page slug can be assigned to “photos” (Same value you used in falbum configuration for the URL root value without the slashes). All other fields of the page entry do not have to be entered (they wouldn’t appear on the page anyway).

3. Done

Now you should have a working and integrated falbum plugin in a K2 based blog. Any further questions or did I miss out something? Just ask.

Enjoy ;-)



Explore Recent



Leave a Reply

90 Comments

  1. Fatal error: Call to undefined function: fa_show_photos_sidebar() in /home/hisyam2/public_html/wp-content/themes/k2/falbum-wp.php on line 19

  2. Hisyam, please check that alle the files are replaced and present. I checked the .zip file, it provides everything needed.

  3. I’m just wondering if it’s possible to get the photos menu option to be hilighted while browsing photos instead of just being at the root photos page.

  4. Ryan: this is implemented by changing the rewrite rule! See the result browsing my photo page.

  5. Wow, he¬¥s even productive while on vacation – enjoy it ;-)

  6. Andreas-

    Thanks so much for this – very much easier than the last version!!!

  7. Andreas-
    I’m having 2 issues:
    1) When you go to click on “Photos”, the navbar highlights the “Photos” page, but when you drill down into any album, the navbar changes and highlights “Home” – check it out at elifoner.com.
    2) I use “friendly URL’s” for the overall site, but for some reason when I activate the FAlbum friendly URL’s, then type “/photos/”, it gives me errors when trying to look at anything …
    Ideas?
    Oh, and great job with the sidebar functionality!!!

  8. Ok, I used your modifed files but it’s still not working for me. Could this be because my index.php file is not in my wordpress directory.

  9. Andreas,

    You are great! I would like to thank you for the work you’ve done, works great for me!
    (http://www.brentonwalker.com/blog/photos)

  10. No me funciona, me sale esto:

    Warning: fa_parsexpath(XPath.class.php): failed to open stream: No such file or directory in /home/pr000076/public_html/wp-content/plugins/falbum/falbum.php on line 1407

    Fatal error: fa_parsexpath(): Failed opening required ‘XPath.class.php’ (include_path=’.:/opt/apache/lib/php’) in /home/pr000076/public_html/wp-content/plugins/falbum/falbum.php on line 1407

    Que puedo hacer??

    http://www.huasonic.com/fotos/

  11. Sorry, ahora funciona.

    Thank you, great work!!!

  12. this is great, now if i could get it to appear on the main page!

  13. No he podido hacer que funcione, solo funciona el home

    http://www.huasonic.com/photos/

    Pero las p?°ginas interiores aparecen con un error 404.

    http://www.huasonic.com/photos/show/recent/

    Help me, please!! :(

  14. I figured out both problems as described earlier…

    I created a writable (666) .htaccess file in the plugins/falbum directory, then turned on the Friendly URL’s (from within FAlbum config) and everything worked smoothly!

  15. I am having trouble too, even though I did copy the files in the right dir and did the .htaccess thing.
    Thats the error I am getting:

    Error: fail: 1 – Photoset not found
    Section: fa_showAlbumThumbnails -> $xpath

    Does anyone have an idea?

  16. I really would like to thank you for this great work. With first version I got severals errors, with this secons guide nearly everything works fine. I still have some weird css problems which have to be fixed. I will investigate this tomorrow. But if someone has some tipps for this (http://dev.dramaking.de) let me know.

  17. You are the man! That was so easy, and I love the tag display! Thanks again

  18. thanks for all of your help with integrating falbum and k2. my only problem is that your files don’t seem to address the problems that were fixed in v5.6. i am getting some missing images in my newer sets. could i use your modifications with falbum5.6?

    also, if you could explain how to get pages 2, 3…ect to display the title as page 1? i see your response to that above but how do i go about doing this?

    thanks in advance.
    -dave

  19. Andreas:

    I’m having the same problem as #18 dave: There has been a new FAlbum released 0.5.6, but when I install your files, my plugin says 0.5.5 is installed. Also, I am missing some images in my newer Flickr sets.

    Any ideas what is causing this? Thanks!

  20. @dave & elly:
    if you want to use falbum v0.5.6 instead of version 0.5.5 you MAY NOT replace the files in plugins/falbum directory! Instead you have to make the changes I described above yourself, wait until I provide an adjusted version or keep using version 0.5.5.

    @Huasonic: What is your problem? (Btw: I do not understand spanish, please ask in english) I am using falbum with friendly URLs turned on only! Maybe that works better for you too.

    @Mark: Hast du falbum version 0.5.5 korrekt installiert? Sind die Dateien von mir auch wirklich korrekt kopiert? Funktioniert falbum v0.5.5 ohne meine ?Ñnderungen?

    @Olly: Wo hast du ein CSS Problem?

  21. Andres: Those are sweet mods…Great work. My only question, which is kind of unrelated to your mods is that when I upgraded to .5.6 I can see all of the thumbnails but on a few when I click on them I get the following message:

    Error: fail: 1 – Photo not found
    Section: fa_showPhoto -> $xpath

    Any idea what that means? Perhaps you could point me in the right direction. I’ve tried the Falbum forums, and it seems that other people have the same problem, but yet there are no responses nor solutions.

    Once again, thanks for the great work!!

  22. I’m a horrible typer and I just happened to misspell your name..my apologies Andreas

  23. @Gustavo: No problem with the mistyping ;-)
    Your actual problem seems to occur only on pictures which do not have a title in flickr.com. Don’t have the time yet to examine what falbum is doing there, maybe I’ll take a look at it next week when I am back from my seminar. But maybe we are lucky and the falbum developer will have the problem fixed by then already (If he knows about it) ;-)

  24. andreas,
    i too am now having the same problem as gustavo. i have over 400 pictures on flickr and none of them have names…

    i posted a comment on the falbum website and i’ll report back if they respond with anything.

    -dave

  25. actually, i might have found a way around the problem… through searching the forums at randombyte.net, i found a way to call the images using the flickr id tag…
    it doesn’t really work all that well with version 5.6 but this has to be the way to go other than titling all of the images…

    http://www.randombyte.net/forum/viewtopic.php?t=185&highlight=title

    you’ll have to forgive me for not trying to figure it out myself but i am not a programer… i can cut and paste but other than that, i am useless.

  26. andreas, thanks for providing this fantastic k2 mod. its actually working now .) one thing odd though is that the tagcloud whilst viewing all albums and the description text whilst viewing one album is at the bottom of the page and not beside them. space is left free though…
    any idea?

  27. my url is screwed up in the last comment, so here it comes in idn compability mode .) http://www.xn--hnerbein-65a.de

  28. I’m now getting a weird IE error on my photo page:

    Line: 59
    Char: 3
    Error: ‘document.getElementById(…)’ is null or not an object
    Code:0
    URL: http://www.caseypicker.com/photos/

    I think this has to do with the live search capability, but I’m not sure how to get rid of this error. I would like to keep the live-search ability if possible…

  29. I also am having the same problem that Eli claimed on comment #7, problem #1. I tried his .htaccess solution with no success. Any ideas on how to keep the photos tab highlighted even when you drill down into the albums?

  30. Sorry, another issue…my descriptions and photos sizes links are not showing up below the photo. They are displaying to the right and it looks all squished.

    Here’s an example

  31. I had the same problem as Huasonic, when you click into a categorie or even a tag, show only a 404, like here http://fitodotnet.com/web/photos/album/amigos/ and WP has write permissions to root and /plugins/falbum .htaccess

    thanks!

  32. i am having the same issues as casey. i am wondering if it has to do with the latest update of k2?

  33. I’m running the latest release of K2:
    K2 Beta One
    Revision 125

  34. andreas, can you show me how you centered the border around your images and what you did in order to get the “dotted” lines instead of the solid one. thanks!

  35. @Gustavo,Dave:
    I need to disable the friendly url option. It seems falbum does not support photos without titles properly

    @Casey,FitoDotNet:
    Please ask in the falbum forum for falbum plugin questions. I have no experience in that area.

    @Lars:
    Taking a look at your page it seems you did not replace the falbum.css.php file with the one in my zip file.

    @wynn:
    In your style.css you need to change “margin-left: -5px;” with “margin-left: 0px;” for the tag “.primary img”. For dotted border change “border: 1px solid #ccc;” into “border: 1px dotted #ccc;” for the same tag.

    @All:
    I updated the v0.5.6 zip file linked in the blog entry which should solve that the sidebar is showing horizontally below the pictures.

  36. Thanks for the prompt reply! The new files fixed my issue with the description displaying to the right of the photo instead of below it.

    I noticed that in your photo gallery, the Photos tab stays highlighted when you drill down into a photo album. Once I leave the Photos main page, my Photos tab is no longer highlighted. How did you get yours to stay highlighted?

  37. @Casey: You need to turn on the feature “friendly URLs” in the falbum options dialog page. But beware, this only works nicely if all your pictures do have titles on flickr.com! Then my modifications of the falbum file makes the menu item be highlighted as described above in the blog entry.

  38. I already had friendly URLs turned on, but I just went to the FAlbum options page and clicked save and that fixed it. Thanks so much!

  39. andreas, i made the changes you suggested to the style.css but it didn’t do anything. any ideas?? thanks

  40. @wynn: When I look at your page with Safari and Firefox it is fine.

  41. andreas,
    yeah, i made changes to the falbum.css and that seemed to have done the trick for me.
    thanks for your help!

  42. reuploading did the trick .) thanks very much!

  43. First of all, this plugin and your integration is amazing. Because of it I have finally dropped using gallery2. It was just too much of a pain. This will probably be one of many questions, but I have to start somewhere.

    Is there a reason why when you click on a tag link that it doesn’t show all the pictures with that tag. For instance if you click on “mikemarley” tag on my site at http://odaydo.com/photos/ , there should be pages and pages of pics but it only shows one page. Could one of you kind souls help me out with this?

    Thanks a lot,

    mike

  44. I fix it!
    it’s all about in WP permalinks structure…
    My structure –> / tegory%/%year%/%monthnum%/?y%/%postname%.html
    Default structure –> /%year%/%monthnum%/?y%/%postname%/

  45. For some reason, the second page of my album keeps giving me a an error when I try to go to it:

    http://www.caseypicker.com/photos/

    Any ideas why? I have albums on that page…

  46. my sidebar won’t display :(

    Fatal error: Maximum execution time of 30 seconds exceeded in /home/jblo/public_html/wp-content/plugins/falbum/XPath.class.php on line 3642

  47. also, the links aren’t working either :(
    would you mind helping me please? i am quite new to php…
    thanks in advance.

  48. the links are finally working! found out that i have to activate the friendly URL to get the links working :) but the previous problem still exists

  49. This is simply a fantastic FAQ. I was struggling with the K2 integration. The Wiki at Randombyte didn’t work well. This worked perfectly.

    The last thing I would really like to do is be able to have the Photo Title and possibly the category show up in the HTML arguement. I am not doing this for aesthetic reasons, simply for stat tracking. This way I can clearly see which photos are viewed more. Somehow this would involve resetting the page title before the get_header() call. I don’t know how to do this.

    However, this FAQ solved a BIG problem for me where the Title never said ‘Photos’ at all – it was simply the same title as my Main page. Thanks!

  50. sorry it’s me again… i re-uploaded everything again. the problem of broken link between the photosets is gone, but when i tried to reach page 2 of the index of the photo sets, it’s 404. and the sidebar problem i mentioned initially still exists. i am pretty sure i have already changed almost everything about the integration to be writable. also, the photos are not aligning properly in the centre of the box (in the index page of photo sets).

    hope you can help me :) thanks!

  51. yeah i just figured it out too. i got the same problem like Fito. it’s because of the wp permalinks. apparently, if you put / tegory%/ in your permalinks you’ll end up having a 404 error in your falbum subpages.

  52. Well, I am getting closer and closer to what I want. The only thing I can’t figure out is why when I select a tag, it will only display the amount of photos to display per page in the falbum options. If I select by album I can see multiple pages. I can’t tell what the difference is. I don’t think it’s a css issue. It’s a function issue, right?

    Thanks again for your integration help.

    saltydog@odaydo.com

  53. I am getting the following error:

    Warning: fa_parsexpath(XPath.class.php): failed to open stream: No such file or directory in /usr/home/beavgat1/public_html/wp-content/plugins/falbum/falbum.php on line 1407

    Fatal error: fa_parsexpath(): Failed opening required ‘XPath.class.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /usr/home/beavgat1/public_html/wp-content/plugins/falbum/falbum.php on line 1407

    Any ideas?

    Thanks,

    Rich

  54. Figured out the first problem. Didn’t realize that I needed to replace the existing files with Andreas’ ones. I thought wrong and assumed he included everything. I guess it would help if I read the entire documentation instead of being a typical hacker type. :)

    Now when I click on any of the photosets it resets me to my main page. I’m not seeing any errors, am I seeing a permissions problem?

  55. I wish I could go back and just edit a previous comment, but oh well. Well I know now that the problem is with Mod_Rewrite somehow. If I turn off Use Friendly URLS, everything works fine but when I turn them on, basically my site resets to the default page which is because I don’t think I have a 404 page created yet. When I click to use the friendly URL, it modifies the .htaccess file in my root directory and adds this entry:

    # BEGIN FAlbum

    RewriteEngine On
    RewriteRule ^photos/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?$ /index.php?pagename=photos/&$1=$2&$3=$4&$5=$6&$7=$8

    # END FAlbum

    For some reason that looks wrong, but I will admit my lack of knowledge and hope one of the gurus will be able to decypher what is the problem. Any ideas?

    Thanks,

    Rich

  56. Ok got it figured out on my own. The problem, and maybe this will help others… Make sure you don’t have any other Rewrite rules in your .htaccess file because it will supercede the one that falbum creates and breaks everything. :)

    I removed the existing rule and everything is working now. I found it after testing permalinks and realizing those didn’t work either. I knew then it was something specific to mod_rewrite for sure and spent my time digging deeper. I hope that helps others who might see similar behavior.

  57. i downloaded everything, uploaded, even checked for white spaces before or after the tag closings, etc. in all the files. Now when I upload a new album into Flickr, it doesnt even show up in the FAlbum Page. Also, now I can’t even access my albums as I’m getting the following message:

    SQL/DB Error — [
    Error selecting database lewd0006_mt!
    Are you sure it exists?
    Are you sure there is a valid database connection?
    ]
    SQL/DB Error — [No Database Selected]
    SQL/DB Error — [No Database Selected]

    Warning: Cannot modify header information – headers already sent by (output started at /home/lewd0006/public_html/cgi-bin/mt/php/extlib/ezsql/ezsql_mysql.php:108) in /home/lewd0006/public_html/cgi-bin/mt/php/mt.php on line 481

    Warning: Cannot modify header information – headers already sent by (output started at /home/lewd0006/public_html/cgi-bin/mt/php/extlib/ezsql/ezsql_mysql.php:108) in /home/lewd0006/public_html/cgi-bin/mt/php/mt.php on line 482
    Error executing error template.

    The URL of the blog is http://www.underthetracks.org. From there, click on Gallery. Can you PLEASE help?! :(

  58. @all: One hint for the image alignment problems in some cases: in style.css change in “.primary img”
    “margin-left: -5px;”
    into
    “margin-left: 0px;”
    That will align all your images centered in the box.

    @saltydog: Well, it seems for me that you get pages of pages.

    @Casey: Seems to be working now. Still having problems?

    @Strausser: Seems either your ISP has a very slow connection to flickr.com, or the servers are very slow. I have no idea why the code for showing the tags would be that slow. I suggest you just turn off to display the tags in the sidebar.

    @Dan Lewis: If the pictures do not show up, clean the falbum cache in the falbum admin section of wordpress. Don’t see any database problems any more, I better do no guess what it was ;-)

  59. Haha.. yeah, I fixed those problems (the problem was the .htaccess file – a previous installation of Movable Type was complicating things in there :)

    I have a CSS issue to fix now though.. in the header, i want the white padding to be even all around the light blue part, but right now, the top padding is bigger than the sides.. i want it to be like http://www.colinseymour.co.uk/

    I’m a stickler for symmerty !

    Thanks!

  60. merry xmas!!

    question: where do i need to go in order to change to tag cloud font color? i have looked everywhere i can’t seem to find it. thanks!

  61. @wynn: Take a look at falbum.css.php and search for “.falbum-cloud”. From there on down are the CSS definitions for the tag cloud.

  62. andreas,
    i made the changes in the falbum.css.php but the color is still “blue”. i also made the change in the falbum.css. not sure if i missed something. thanks!

  63. @wynn: with the latest falbum release you should only have the falbum.css.php file to be used. Something seems weired with your installation. But as long as it works ;)

  64. Danielle

    Wonderful plugin! Thank you! I do have a question though… When using friendly urls, how do you get the photos page menu to stay highlighted in the subpages of the album (when clicking on tags or drilling down into specific photo collections)? It only seems to stay highlighted for me on the /photos/ main page, but not as you click into the collections…

    Thanks! :)

  65. @Danielle: Did you replace the falbum-plugin.php in the /plugins/falbum/ directory and updated the falbum-options to change the rewrite rule in the .htaccess file?

  66. Danielle: I had the same problem with my installation. Try going into your falbum options, leave everything the same and just click save. That fixed the problem for me…

  67. Danielle

    As a side note, I am using date and name based permalinks (/%year%/%monthnum%/?y%/%postname%/) in my Wordpress v2.0 install and the version of K2 I am using is the latest beta (K2 Beta One 133).

    Yes… Thanks Casey and Andreas! I checked that I redid all you both suggested, and it still didn’t work. I even went back and uninstalled, cleared htaccess, and reinstalled (v0.5.6 both the original first and Andreas’s update to start fresh) and still nothing. So this is going to be a bit long….

    In the end, I think one part has something to do with mod rewrite rules, type of permalinks, and friendly linking. There could be a conflict with other types of permalinks (e.g., Date and name based) rather than the default link structure. Or maybe the friendly URLs option in the plugin and creating a page using /photos/ as a slug is a problem? Or all of the above?

    Just for posterity’s sake, Andreas, what exactly should be in the htaccess file (when it does the htaccess rewrite with your version, especially when using date and named based permalinks)?

    Randombyte’s FAlbum creates a mod rewrite in htaccess file:


    # BEGIN FAlbum

    RewriteEngine On
    RewriteRule ^photos/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?$ /wp-content/plugins/falbum/falbum-wp.php?$1=$2&$3=$4&$5=$6&$7=$8 [QSA,L]

    # END FAlbum

    In Andreas’s update, the rewrite rule in the htaccess file becomes:


    # BEGIN FAlbum

    RewriteEngine On
    RewriteRule ^photos/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?$ /index.php?pagename=photos/&$1=$2&$3=$4&$5=$6&$7=$8

    # END FAlbum

    But the latter rewrite rule update by Andreas breaks the friendly URLs function on my site with my permalink structure (gives 404 errors). So, I had to put back the original rewrite function in my htaccess file from the original plugin for it to work with my friendly URLs and the rest of Andreas’s updates. Also, I went to the falbum-plugin.php file and uncommented the original htaccess rewrites (lines 145 and 234) and commented out the lines Andreas added (lines 146 and 245), to keep the plugin from rewriting the problem structure if I ever decided to make changes to update the album display options in the future.

    In the end, I found a workaround for the page menu highlight that might help others who may encounter the same htaccess/permalink problem I was having.

    In the support forums for FAlbum at Randombyte, I found this posting, which then led me to this link for the hack.

    So what I did was modified Andreas’s template page update to include the hack from the latter URL like this:


    ID = $page_id;
    $wp_query->is_home = false;
    $wp_query->is_page = true;
    $wp_query->queried_object->ID = $page_id;
    $wp_query->queried_object_id = $page_id;
    }

    get_header(); ?>

    And it worked!!!! :D :D With this hack, the page menu stays highlighted in the header of all the photo child pages when using friendly urls.

    Maybe the mod rewrite in the updated plugin file may have to be looked into again with non-default permalink structure settings and friendly URLs?

    Thanks!

  68. Danielle

    Wooops, sorry… some of the sample code at the bottom of my post was removed, so it will be easiest to just go here and just pull the hack code for php get_header tag and implement in Andreas’s page template: http://www.randombyte.net/wiki/index.php/K2

  69. Andreas:

    Just wanted to thank you so much for all your work in developing a great K2 implementation. I had such a headache trying to get my photo’s to render properly before stumbling upon your website. Straight forward installation and your support through the comments is really appreciated. Thanks.

    Barak

  70. This doesn’t seem to work with the latest version of K2 (rev. 157) for Wordpress 2. I keep getting 404 errors whenever I try to drill down into one of my photo albums:

    My Photo Page

    Is this just not implemented yet, or am I doing something wrong?

  71. @Casey: I did not test falbum in Wordpress 2 yet. So I just can guess:
    - Did you update .htaccess file again in falbum options menu?
    - How does .htaccess look like?

  72. Here’s what my .htaccess file looks like:

    # BEGIN FAlbum

    RewriteEngine On
    RewriteRule ^photos/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?$ /index.php?pagename=photos/&$1=$2&$3=$4&$5=$6&$7=$8

    # END FAlbum

  73. @Casey: What about the rest in the file? The wordpress part? The problem seems to be the combination of the two which worked in WP 1.52

  74. Sorry, I thought you only wanted the falbum part. Here’s the entire contents of the file:

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{QUERY_STRING} ^feed=(feed|rdf|rss|rss2|atom)$
    RewriteRule ^(.*)$ http://feeds.feedburner.com/CaseysWorld? [R,L]

    RewriteRule ^(feed|rdf|rss|rss2|atom)/?(feed|rdf|rss|rss2|atom)?$ http://feeds.feedburner.com/CaseysWorld? [R,L]
    RewriteRule ^feedburner_609117/?$ /wp-rss2.php [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php

    # END WordPress

    # BEGIN FAlbum

    RewriteEngine On
    RewriteRule ^photos/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?$ /index.php?pagename=photos/&$1=$2&$3=$4&$5=$6&$7=$8

    # END FAlbum

  75. Deos anyone have any ideas on what’s wrong with my .htaccess file? I’m still getting the 404 errors…

  76. Peter

    Casey, There is an issue currently in WP 2 related to .htaccess. You will have to manually edit the .htaccess file to look as so. FAlbum must be first in the list:

    # BEGIN FAlbum

    RewriteEngine On
    RewriteRule ^photos/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?([^/]*)?/?$ /wp-content/plugins/falbum/falbum-wp.php?$1=$2&$3=$4&$5=$6&$7=$8 [QSA,L]

    # END FAlbum

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php

    # END WordPress

    On a side note, I have yet to find a solution to remedy an issue related to the FAlbum css in the new version of K2. Have been waiting anxiously for a post here to solve it.

  77. @Peter, @Casey: The problem with that rewrite rule is, that the menu title does not stay highlighted any more. I am still looking for a solution for that …

    @Peter: A solution for which issue?

  78. @PETER: Thanks! That at least fixed the 404 issues.
    @ANDREAS: You’re right. The photo menu no longer stays highlighted.

  79. @Peter: Thanks, that seemed to fix the 404 i was having as well. Then it went back to being broken, my htaccess looks just like what you posted, using .56 of falbum

  80. @MIKE: Make sure you don’t go back in and change any of your FAlbum options using the WP Admin screens. When you save the FAlbum options, it will change your .htaccess file back to what it was…

  81. nothing to change, it seems falbum is areally broken now :(

    FAlbum Options
    Initial Setup
    Warning: fa_parseXPath(XPath.class.php) [function.fa-parseXPath]: failed to open stream: No such file or directory in /home/frozenco/public_html/wp-content/plugins/falbum/falbum.php on line 1407

    Fatal error: fa_parseXPath() [function.require]: Failed opening required ‘XPath.class.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php:.:.’) in /home/frozenco/public_html/wp-content/plugins/falbum/falbum.php on line 1407

  82. Are you sure you didn’t accidentally delete falbum.php?

  83. falbum.php was intact. But it looks like something went screwy in the DB and I had a falbum_cache and a wp_falbum_cache. Dropping both and reintalling falbum fixed it. yay!

  84. I did an update for the integration into Wordpress 2.0. Take a look at: http://www.andreaslinde.de/archives/2006/01/07/falbum-into-k2-with-wordpress-2-update/

  85. Hello

    can u help me? I’m tryin to put the flickr photos in the sidebar like u..

    I have the plugin, the ID, I’ve put in the template a code but still don’t work..

    can u send me a copy of your code? thanxx