1

Topic: login -- redirect problem

when i open a forum or a topic,then click login,user pass and login,redirect to index.php but not the forum or topic i'm readding before, how to solve this problem,

Re: login -- redirect problem

That sounds like your browser isn't sending the referrer: are you using any kind of internet security programs?

3

Re: login -- redirect problem

No... when i using forums.punbb.org
it works well

Re: login -- redirect problem

Are you using a mod that had you modify login.php?

5

Re: login -- redirect problem

the plugin what i'm using

DB management
Forum cleanup
User management
Spam words


i didn't remember ever modified the login .php

smartys

Re: login -- redirect problem

check your base url.

7

Re: login -- redirect problem

checked.
and Smarty i'm using PunRewrite mod.

how can i modifi the login.php so that will redirect to yourname.com/f3.htm or yourname.com/t34.htm

thanks

Re: login -- redirect problem

Link?

9

Re: login -- redirect problem

http://viz.name

10

Re: login -- redirect problem

Oh,,i've solved the problem just modify the login.php

// Try to determine if the data in HTTP_REFERER is valid (if not, we redirect to index.php after login)
$redirect_url = (isset($_SERVER['HTTP_REFERER']) && preg_match('#^'.preg_quote($pun_config['o_base_url']).'/(.*?)\.php#i', $_SERVER['HTTP_REFERER'])) ? htmlspecialchars($_SERVER['HTTP_REFERER']) : 'index.php';

there is a

['o_base_url']).'/(.*?)\.php#i',

just change

.php

to

.html