Author Topic: Something so simple  (Read 6783 times)

0 Members and 1 Guest are viewing this topic.

Offline smd

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
  • I forgot to change the default text
Something so simple
« on: June 28, 2004, 21:17:52 »
I want something so simple its amazing it isnt even there yet! I want a logout button  :D

Offline adwiseman

  • album.pl Contributor
  • ***
  • Posts: 53
  • Karma: +3/-0
    • akwiseman
Re: Something so simple
« Reply #1 on: June 28, 2004, 22:16:04 »
There is, next to your logedin name on the menu bar

Offline smd

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
  • I forgot to change the default text
Re: Something so simple
« Reply #2 on: June 28, 2004, 23:46:11 »
me no see on mine
what do u think i did wrong

Offline adwiseman

  • album.pl Contributor
  • ***
  • Posts: 53
  • Karma: +3/-0
    • akwiseman
Re: Something so simple
« Reply #3 on: June 29, 2004, 08:59:40 »
Have you updated to the latest version.  6.5 somthing..., and what type of authentication are you using.  I don't know if it changes with different authentications.

Offline smd

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
  • I forgot to change the default text
Re: Something so simple
« Reply #4 on: June 29, 2004, 13:37:04 »
I'm using the yabb sp 1.3.1 -.- with album 6.4

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Something so simple
« Reply #5 on: June 29, 2004, 21:35:25 »
The logout button will only automatically appear when an album.pl cookie is being used (usually only with authentication_type=1). When a YaBB cookie is used, album.pl won't log you out. I figured deleting a cookie set by YaBB would be a bad thing...

However, you can edit album_header.tml and add a logout button/link that takes you to your YaBB logout page. That way the same software that sets your cookie deletes it, for more uniform handling.

Hope that makes sense.


Cheers
Mike

Offline smd

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
  • I forgot to change the default text
Re: Something so simple
« Reply #6 on: June 29, 2004, 22:46:50 »
eh i found another way... you just go http://www.yoursitegoeshere.com/cgi-bin/album.pl?function=logout
works fine for me.. doesnt even log me out of yabb... is it because i changed the cookies from the default cookies for yabb?
« Last Edit: June 29, 2004, 22:50:08 by thsband »

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Something so simple
« Reply #7 on: June 30, 2004, 07:50:53 »
Yep, that's why. You're actually using album.pl cookies then. If you change this bit of code in album.pl:

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

To use your actual YaBB cookie names, you won't have to log in (or out) via album.pl. It'll automatically use your YaBB cookies.

Offline smd

  • album.pl User
  • *
  • Posts: 5
  • Karma: +0/-0
  • I forgot to change the default text
Re: Something so simple
« Reply #8 on: June 30, 2004, 13:49:41 »
I think i will stick with this.. I like to be able to test it out without messing with my forums at the same time. =)

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Something so simple
« Reply #9 on: June 30, 2004, 15:06:41 »
Heheh, ok, your call. When you use YaBB cookies though, they're never modified, just read (hence no logout button)... :)

Offline Poptarts

  • album.pl User
  • *
  • Posts: 4
  • Karma: +0/-0
  • I forgot to change the default text
UBB Logout Button
« Reply #10 on: November 07, 2004, 17:07:28 »
I've been wanting a logout button for my album too, except I use UBB, so what I did was just modify the code to add a logout button next to the "Welcome ~~!".  The button would point to the UBB logout link, but only if the authentification mode was 2 (UBB).  In future releases it would be good if you could have this built in, along with a config item for the logout function, as it varies from version to version of UBB.

Code modifications:
Below...
Code: [Select]
if (($::authentication_type eq 1) || ($::authentication_type eq 5))
{
if ($::textmenu)
{
$data.=" || ";
}
$data.="&nbsp;<a href=\"$::albumprog?function=$::logout_code\" class=\"optionslink\">";
if ($::textmenu)
{
$data.=$::S{305};
}
else
{
$data.="<img class=\"button\" src=\"$::logout_button\" title=\"$::S{305}\" />";
}
$data.="</a>";
if ($::textmenu)
{
$data.=" || ";
}
}
I added this:
Code: [Select]
if ($::authentication_type eq 2)
{
if ($::textmenu)
{
$data.=" || ";
}
$data.="&nbsp;<a href=\"http://www.sb2wpics.com/cgi-bin/ultimatebb.cgi?ubb=logoff\" class=\"optionslink\">";
if ($::textmenu)
{
$data.=$::S{305};
}
else
{
$data.="<img class=\"button\" src=\"$::logout_button\" title=\"$::S{305}\" />";
}
$data.="</a>";
if ($::textmenu)
{
$data.=" || ";
}
}

Offline Mike Bobbitt

  • album.pl Author
  • Administrator
  • I Spend Too Much Time Here
  • *****
  • Posts: 3381
  • Karma: +35/-2
    • Mike's Development Archive
Re: Something so simple
« Reply #11 on: November 09, 2004, 15:05:36 »
Thanks for the code... I considered something like this a while ago, but couldn't find a reliable way to get the UBB logout URL...