1
XiceX
How do i remove the "Thank you for logging in" transfer page?
  • 2005/5/21 1:01

  • XiceX

  • Just popping in

  • Posts: 5

  • Since: 2005/5/8 7


I find it annoying when i login, and get that page that says thank you for logging in. Their are a few others like it too that i would like tog et rid of. Does anyone know how to do this?

2
XiceX
Re: How do i remove the "Thank you for logging in" transfer page?
  • 2005/5/24 3:41

  • XiceX

  • Just popping in

  • Posts: 5

  • Since: 2005/5/8 7


Bump

anyone know the answer?

3
wcrwcr
Re: How do i remove the "Thank you for logging in" transfer page?
  • 2005/5/24 4:24

  • wcrwcr

  • Home away from home

  • Posts: 1114

  • Since: 2003/12/12


Hi

In your XOOPS dir find the "language/include/functions.php " file on the language folder and find the function redirect_header. Paste the code below over the "old one".

Warning: on doing that you?ll remove all redirect functions in your XOOPS site, not only the thank you for logging..........

/*
* Function to redirect a user to certain pages
*/
function redirect_header($url$time 3$message ''$addredirect true)
{
    global 
$xoopsConfig$xoopsRequestUri;
    if (!
defined('XOOPS_CPFUNC_LOADED')) {
        
header("Location: $url");
        exit();
    } else {
        
$url preg_replace("/&/i"'&'htmlspecialchars($urlENT_QUOTES));
        echo 
'
        
        
        '</span><span style="color: #007700">.</span><span style="color: #0000BB">$xoopsConfig</span><span style="color: #007700">[</span><span style="color: #DD0000">'sitename'</span><span style="color: #007700">].</span><span style="color: #DD0000">'
        
        .$time.'; url='.$url.'" />
        
                body {background-color : #fcfcfc; font-size: 12px; font-family: Trebuchet MS,Verdana, Arial, Helvetica, sans-serif; margin: 0px;}
                .redirect {width: 70%; margin: 110px; text-align: center; padding: 15px; border: #e0e0e0 1px solid; color: #666666; background-color: #f6f6f6;}
                .redirect a:link {color: #666666; text-decoration: none; font-weight: bold;}
                .redirect a:visited {color: #666666; text-decoration: none; font-weight: bold;}
                .redirect a:hover {color: #999999; text-decoration: underline; font-weight: bold;}
        
        
        
        
        
          '
.$message.'
          
          

'.sprintf(_IFNOTRELOAD$url).'


        

        

        
        ';
    }
    exit();
}


Function hacked by topet05

In addition:

find your language xoops? folder,"user.php":

Around line 9, you?ll find:
define("_US_LOGGEDOUT",.........

Log out message
======================================
Around line 12:
define("_US_LOGGINGU",..........

Login message
=======================================
At the same dir:

file global.php

around line 90:

define("_NOPERM",......


You don?t have permission ....bla bla message

I hope this helps a bit.
Regards

Login

Who's Online

175 user(s) are online (65 user(s) are browsing Support Forums)


Members: 0


Guests: 175


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits