1
BigJim
help needed to change user.php
  • 2009/1/6 22:15

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


Hello

On the user.php page there is a link for users to register. Can anyone tell me where I can find where this link is assigned? (its not in user.php or modules/system/templates/system_userform.html).

My 'register' link is not working properly when the user.php page is accessed with a redirect to the previous page because for some reason it adds the redirect to the register link.

If anyone can tell me where to find where the link is made i should be able to fix it but I just can't find it anywhere

thanks a lot

2
ghia
Re: help needed to change user.php
  • 2009/1/7 0:42

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


XOOPS version?
Quote:
My 'register' link is not working properly when the user.php page is accessed with a redirect to the previous page because for some reason it adds the redirect to the register link.

Can you give an example of these links, you are talking about?

3
BigJim
Re: help needed to change user.php
  • 2009/1/7 5:37

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


Hi ghia

if you go to

https://xoops.org/modules/profile/user.php

It is this link

Not registered? Click here.


although the xoops.org site uses the profile module, for a standard website the user.php page is at domain.com/user.php

thanks

4
ghia
Re: help needed to change user.php
  • 2009/1/7 9:33

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


I don't know what you are trying to accomplish or prevent, but the link is defined in /language/yourlanguage/user.php .

5
BigJim
Re: help needed to change user.php
  • 2009/1/7 10:36

  • BigJim

  • Just popping in

  • Posts: 78

  • Since: 2007/7/16


that's great thanks Ghia!

the problem was a strange one.

If a user clicked on the 'register to post' in the newbb module they would come to this page and the url of that page includes the redirect, so like this:

http://www.domain.com/user.php?xoops_redirect=/modules/newbb/viewtopic.php?topic_id=883

If someone needed to register, for some strange reason the register link was

?xoops_redirect=/studyintheuk/newbb/viewtopic.php?topic_id=883/register.php

which obviously is a nonsense link.

Thankfully changing the link (in the file you gave me) like this:

"register.php"
to
"/register.php"

did the trick

6
ghia
Re: help needed to change user.php
  • 2009/1/7 11:00

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Quote:
If someone needed to register, for some strange reason the register link was

?xoops_redirect=/studyintheuk/newbb/viewtopic.php?topic_id=883/register.php

which obviously is a nonsense link.
Weird, if anyone can confirm this, then it is a bug.
I think most people use the profile module (where the link is done differently).
Quote:
Thankfully changing the link (in the file you gave me) like this:

"register.php"
to
"/register.php"

did the trick
For users not having their XOOPS root in the web root, but in a subdirectory, this may not work.

Login

Who's Online

229 user(s) are online (145 user(s) are browsing Support Forums)


Members: 0


Guests: 229


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