1 (edited by Kushi 2012-02-09 14:22)

Topic: Delete thing after hook

Hello,
There's a hook li_login_pre_redirect in login.php I wanna put something there AND delete line

        redirect(forum_htmlencode($_POST['redirect_url']).((substr_count($_POST['redirect_url'], '?') == 1) ? '&' : '?').'login=1', $lang_login['Login redirect']);

which is after that. How can I do that?

Or stop it work somehow ( tried sending null variables, but it seemed to doesn't work ).

It's the only thing which stops me from releasing fancybox login ( demo )

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

Re: Delete thing after hook

What do you want to put there?

3

Re: Delete thing after hook

        <hook id="li_login_pre_redirect"><![CDATA[
            echo "<script>parent.$.fancybox.close(); 
parent.location.reload(true);</script>"; 
            ]]></hook> 

So the javascript cannot be preformed, while the page is redirected.

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.