Incorrect Logout URL [ MyBB Bridge ] Incorrect Logout URL [ MyBB Bridge ]
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Incorrect Logout URL [ MyBB Bridge ]

Started by lambda, October 11, 2012, 07:49:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lambda

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:

'{LOGOUT_TGT}' => "logout.php?form_token=$form_token&timestamp=$timestamp&referer=$REFERER"

The MyBB logout code is as follows:

/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!

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

lambda

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:

'{LOGOUT_TGT}' => "logout.php?form_token=$form_token&timestamp=$timestamp&referer=$REFERER"

Link to the gallery: http://www.modmydesktop.com/gallery/

Jeff Bailey

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
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

phill104

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.
It is a mistake to think you can solve any major problems just with potatoes.