forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 bridging => Topic started by: lambda on October 11, 2012, 07:49:17 pm

Title: Incorrect Logout URL [ MyBB Bridge ]
Post by: lambda on October 11, 2012, 07:49:17 pm
Hey, I just wanted to first say that this is an awesome project that I can tell tons of hours of work went into. All the features are outstanding, and the built in bridging is great!

I've bridged my MyBB forums with my Gallery. It works when people are logged in, but it does not work when someone tries to logout.

Inside my theme.php I see the line:

Code: [Select]
'{LOGOUT_TGT}' => "logout.php?form_token=$form_token&timestamp=$timestamp&referer=$REFERER"
The MyBB logout code is as follows:

Code: [Select]
/member.php?action=logout&logoutkey=$cookieID
I tried changing the theme.php link to that, but it didn't seem to work. It seems that the $form_token variable is not the correct cookie ID variable needed.

If someone could help me out, I'd greatly appreciate it.

Thanks again for creating an awesome project that you guys made open source!
Title: Re: Incorrect Logout URL [ MyBB Bridge ]
Post by: Jeff Bailey on October 11, 2012, 09:35:58 pm
Please post a link.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616

Why did you change the link? Did it not work before?
Title: Re: Incorrect Logout URL [ MyBB Bridge ]
Post by: lambda on October 11, 2012, 10:00:02 pm
Once I made the bridge the logout feature stopped working, takes you to a 404 page. I changed the link and then changed it back because neither was working. This link came default in my theme file for "Curve" when I first installed Coppermine:

Code: [Select]
'{LOGOUT_TGT}' => "logout.php?form_token=$form_token&timestamp=$timestamp&referer=$REFERER"
Link to the gallery: http://www.modmydesktop.com/gallery/ (http://www.modmydesktop.com/gallery/)
Title: Re: Incorrect Logout URL [ MyBB Bridge ]
Post by: Jeff Bailey on October 11, 2012, 11:31:52 pm
It looks like Coppermine only has bridging files available for MyBB 1.4, so if you have a newer version it will probably fail in ways such as yours is.

If you have myBB 1.4 then please provide us with this information.
http://documentation.coppermine-gallery.net/en/bridging.htm#integrating_support_start
Title: Re: Incorrect Logout URL [ MyBB Bridge ]
Post by: phill104 on October 12, 2012, 12:59:48 pm
The logout in many cases depends on the app you are bridged too and not coppermine. I am not familiar with MyBB so cannot say for sure. So it may not be something we can control.