IPB redirect issue... IPB redirect issue...
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

IPB redirect issue...

Started by index, October 21, 2003, 07:55:27 AM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

index

ok,

well i did the following hack which might help a few people
also, i'm pretty much a beginner, so if the code is ugly or inefficient, i'm sorry but it works for me  :D

on line 2469 in the sources/functions.php file (in IPB) i replaced the following lines:

$url =$ibforums->base_url.$url;

with



$findme = 'www.domain.com';
if (!is_int(strpos($url,$findme)))
{
$url =$ibforums->base_url.$url;
}
else{
}


where www.domain.com is your domain.

this will redirect the user back to where he/she was in the gallery when login in using the IPB integration.

I did not yet do the logout hack for this, but it should work the same way.
Hope this helps