Author Topic: Running with Yabb RC2  (Read 10804 times)

0 Members and 1 Guest are viewing this topic.

Offline nomad

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
  • I forgot to change the default text
Running with Yabb RC2
« on: September 29, 2005, 19:30:19 »
Hi all,
I have tried to install the latest version 6.5 to run with yabb rc2, and I am stuck with the authentication failure.
the PW, and user name are both shown on the address bar in IE (scary)
As soon as I hit the button "login", and I got the popup: "Authentication failure. please try again".
Any help would be appreciated
Thanks
Nick

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Running with Yabb RC2
« Reply #1 on: October 03, 2005, 12:54:49 »
Hi Nick,

I'd guess that album.pl is not able to read the YaBB RC2 cookies. Make sure that the name of the cookie matches in album.pl and the YaBB config. Search for these lines in album.pl:

# Change these if you've customized your YaBB cookie names...
my $YaBBusername="YaBBusername";
my $YaBBpassword="YaBBpassword";


Cheers
Mike

Offline nomad

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
  • I forgot to change the default text
Re: Running with Yabb RC2
« Reply #2 on: October 03, 2005, 18:06:18 »
Thanks Mike,
Did that, and it didn't work.  I've noticed that yabb2 members' info are encrypted, and the album.pl only read text file as in yabb1
I am not surprised that I am wrong, so please correct.
Thanks
Nick

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Running with Yabb RC2
« Reply #3 on: October 04, 2005, 14:29:47 »
Sounds from your other post like you got it working... can you confirm?

album.pl will handle all the common encryption/hashing techniques out there and you shouldn't have to specify which one (it'll try them all until it finds a match).


Cheers
Mike

Offline nomad

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
  • I forgot to change the default text
Re: Running with Yabb RC2
« Reply #4 on: October 04, 2005, 19:10:38 »
Hi Mike,
I've spent hours to play with the uabb cookies set-up, but I keep getting authentication failure.
I am able to use a script to convert the y2 member file to dat file, and that's how I am able to run album with y2, but it will the pain if there is a new member, or a registered member, who has changed his/her PW.
So far, I have to run the converting script daily.  Hopefully, you or someone will come up with a new mod.
Unless, you know forsure that album is working with y2!
Thanks for your help
Nick

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Running with Yabb RC2
« Reply #5 on: October 04, 2005, 19:25:25 »
Hi Nick,

If you turn on debugging you should see what's going on. If you want to PM/email me with your URL and debug code I can have a look and see if I can figure it out.


Cheers
Mike

Offline nomad

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
  • I forgot to change the default text
Re: Running with Yabb RC2
« Reply #6 on: October 04, 2005, 22:30:21 »
A PM has been sent to you.
Thanks MUCH
Nick

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Running with Yabb RC2
« Reply #7 on: October 05, 2005, 05:36:28 »
Ok, I think I get it...

I'm not sure how YaBB2 stores user info, but does it still use a members directory?

If so, please make sure that membersdir in album.cfg is set to point to that. It looks like currently, that's not the case.

Album.pl is expecting to see a file called [username].dat in the configured membersdir, where the first line is the user's password (could be hashed), and the second line is their display name.

If that's not the format, can you let me know what is, and I'll see if I can fix things.


Cheers
Mike

Offline nomad

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
  • I forgot to change the default text
Re: Running with Yabb RC2
« Reply #8 on: October 05, 2005, 07:33:52 »
Hi Mike,
That's exactly what happened.  Y2 doesn't store member info in DAT, it stored in VARS format.  The PW is encrypted.  Anyway, here is the example:

### User variables for ID: 9999 ###

'password',"mfddvoyul"
'realname',"9999"
'email',"john@whatever.com"
'regdate',"09/22/03 at 14:44:33"
'webtitle',""
'weburl',""
'signature',""
'postcount',"0"
'position',""
'addgroups',""
'icq',""
'aim',""
'yim',""
'gender',""


I will have switch back to my set up to run the program now.
If you need to look at it again let me know.
Thanks again for your help
Nick

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Running with Yabb RC2
« Reply #9 on: October 05, 2005, 15:30:44 »
Thanks for the format Nick... is that info in a per-user file? If so, where is that file and what's the filename? If not, what type of file is the info stored in?


Thanks
Mike

Offline nomad

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
  • I forgot to change the default text
Re: Running with Yabb RC2 - follow-up
« Reply #10 on: October 05, 2005, 16:12:18 »
« Last Edit: October 05, 2005, 16:43:13 by nomad »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Running with Yabb RC2
« Reply #11 on: October 06, 2005, 17:58:40 »
Ok, thanks for the info. Try re-downloading and replacing just album.pl. If I didn't make a mistake, you can now point album.cfg's membersdir to your real member directory and album.pl will read the .vars files directly.


Cheers
Mike

Offline nomad

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
  • I forgot to change the default text
Re: Running with Yabb RC2
« Reply #12 on: October 07, 2005, 18:12:49 »
Thanks Mike,
I will try it out and let you know.
Nick

Offline nomad

  • album.pl User
  • *
  • Posts: 18
  • Karma: +0/-0
  • I forgot to change the default text
Re: Running with Yabb RC2
« Reply #13 on: October 07, 2005, 18:45:58 »
Hi Mike,
I hope it will work, but it doesn't.  I've tried to log in the forum first, then access the photo alnum with the same username, and pW.
The album.pl still doesn't read the VARS format, or in another word, it doesn't retrieve the right info.
Dang it!
Thanks for your effort!
Nick

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Running with Yabb RC2
« Reply #14 on: October 08, 2005, 18:56:28 »
Hi Nick,

Mind if I use your debug code again to see what's going on? I know we're close!