How to integrate login/logout between WP and ZP?

Anyone can help me out?

I have a WP and I want to use Zenphoto as my blog gallery. My idea is once my users log in my WP, they will automatically log in ZP; and the way around. I also think it will be really nice if they can log out on both program at one time.

Is that possible? And I prefer not to change WP code or Zenphoto code.

Comments

  • Here is what I already came up with:
    http://www.zenphoto.org/support/topic.php?id=40#post-160

    It requires slight modification to WP code. For what purpose do you want to have users logged into ZP? As of now, there is only one "user" - admin. Anyway, the link i posted shows how to set the ZP cookie as logged in under admin once a WP user logs in. It probably could be put into a WP plugin, but I haven't had the time to play with it lately.
  • Amory: I did read you post before I post my question. I do not want my blog's users log in ZP as admin, I just want them log in as whom they are in my WP (since I will use the same user table for ZP and WP). In this way, they will be able to leave comment in ZP just as in my blog, but do not have to log in again. Then if I work on the theme a little bit, they won't feel the difference between my WP and ZP.
  • Right, well that's beyond me as you would be making major modifications to use wp_users table rather than the zenphoto user - unless I missed an update, there is only one ZP user right now.

    Sorry I couldn't be of any help, my PHP skills are lacking... Hope everything works out for you.
Sign In or Register to comment.