1
davidsless
changing the redirect url
  • 2008/3/20 23:02

  • davidsless

  • Just popping in

  • Posts: 49

  • Since: 2006/10/5


I would like to change the way in which the redirection works when someone wants to access an area or page to which they are not eligible

Instead of being redirected to …/htdocs/index.php I would like to redirect them to another page. Is this possible?

What code do I need to change?

Happy Easter

David

2
Runeher
Re: changing the redirect url
  • 2008/3/21 0:43

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


The Startup module is what you want...it's brilliant look here

Rune

3
davidsless
Re: changing the redirect url
  • 2008/3/21 2:43

  • davidsless

  • Just popping in

  • Posts: 49

  • Since: 2006/10/5


Rune

That's great, thanks, and I can use it for something I want to do, but what I need is something more specific.

I should have been more specific, sorry.

When visitors come to our site there are some areas that they cannot access till they become subscribers. The redirect tells them this but then takes them to …htdocs/index.php.

I want to change this so that it takes them to …htdocs/register.php

any ideas?

4
hervet
Re: changing the redirect url
  • 2008/3/21 5:30

  • hervet

  • Friend of XOOPS

  • Posts: 2267

  • Since: 2003/11/4


Hello David,

in the file /xoops/include/common.php, find this line :
redirect_header(XOOPS_URL."/user.php",1,_NOPERM);

and replace it with :
redirect_header(XOOPS_URL."/register.php",1,_NOPERM);

bye,
Hervé

5
davidsless
Re: changing the redirect url
  • 2008/3/21 7:16

  • davidsless

  • Just popping in

  • Posts: 49

  • Since: 2006/10/5


Thank you Hervé,

That worked!

Happy Easter

David

Login

Who's Online

176 user(s) are online (111 user(s) are browsing Support Forums)


Members: 0


Guests: 176


more...

Donat-O-Meter

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

Latest GitHub Commits