1
trspice
How can I change the path to the redirect page?
  • 2007/3/27 18:31

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


When a guest tries to access a registered only area I want to send them directly to the registration page instead of the current redirect page. What files(s) must be edited to do this?

Also, where is the refresh time changed. I see <$time> in the refresh meta tag of modules/system/templates/system_redirect.html but didn't see an edit for it in the configuration.

Thanks
There's nothing but science....
The Reggae Album

2
trspice
Re: How can I change the path to the redirect page?
  • 2007/3/29 18:20

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Now I need to change the page redirect time. I did a file search for <$time> which I see in the redirect page meata tag but nothing showed up. Will there be a problem if I just replace that tag with a number?
There's nothing but science....
The Reggae Album

3
iHackCode
Re: How can I change the path to the redirect page?

XooPS/include/common.php
line: 323
$moduleperm_handler =& xoops_gethandler('groupperm');
        if (
$xoopsUser) {
            if (!
$moduleperm_handler->checkRight('module_read'$xoopsModule->getVar('mid'), $xoopsUser->getGroups())) {
                
redirect_header(XOOPS_URL."/user.php",1,_NOPERM);
                exit();
            }
            
$xoopsUserIsAdmin $xoopsUser->isAdmin($xoopsModule->getVar('mid'));
        } else {
            if (!
$moduleperm_handler->checkRight('module_read'$xoopsModule->getVar('mid'), XOOPS_GROUP_ANONYMOUS)) {
                
redirect_header(XOOPS_URL."/[color=990000]user.php[/color]",1,_NOPERM);
                exit();
            }
        }


change whats in red to register.php and that should do it.
the second argument is time in seconds i believe
CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

4
trspice
Re: How can I change the path to the redirect page?
  • 2007/4/4 23:22

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


The edit does what I was asking but I didn't explain properly what I wanted.

I want to totally eliminate that redirect page and have the No permission message show on the user.php page for anonymous users trying to access a registered only page.
There's nothing but science....
The Reggae Album

5
trspice
Re: How can I change the path to the redirect page?
  • 2007/4/13 23:06

  • trspice

  • Not too shy to talk

  • Posts: 193

  • Since: 2007/3/24


Has anyone successfully eliminated the redirect page? XOOPS seems to be the only CMS that does this and I find it annoying and non-professional.

It seems like something that was thrown in after the program was completed and someone figured there need to be a 'no permission' message but it was too much to write it into the completed project. I can't imagine that this was purposely done.
There's nothing but science....
The Reggae Album

Login

Who's Online

66 user(s) are online (48 user(s) are browsing Support Forums)


Members: 0


Guests: 66


more...

Donat-O-Meter

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

Latest GitHub Commits