1
samwell
Redirecting to another module upon login!?
  • 2005/8/20 1:48

  • samwell

  • Just popping in

  • Posts: 19

  • Since: 2005/1/16


The general preferences in XOOPS allows you to set the default Home module. But is there anyway to redirect a person to another module immediately after they login?

2
hyperpod
Re: Redirecting to another module upon login!?
  • 2005/8/20 3:15

  • hyperpod

  • Quite a regular

  • Posts: 359

  • Since: 2004/10/4


Yes, you can edit the login block template and send them anywhere you want.

simply edit /modules/system/templates/blocks/system_block_login.html

Around line 7:

<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />


You can put any URL in the value field.

I think you can also do this to the other login page too if you need.

Hope that helps,
Daniel Hall / XOOPS Module Development & Theme Design
Free XOOPS Support > My Wish List

3
samwell
Re: Redirecting to another module upon login!?
  • 2005/8/20 4:10

  • samwell

  • Just popping in

  • Posts: 19

  • Since: 2005/1/16


Thanks a lot hyperpod!!!!!!!!! If i would have known the solution was going to be so simple...i would have done this a long time ago.

4
WarDick
Re: Redirecting to another module upon login!?
  • 2005/8/20 12:00

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Take a look at Solo's myHome module it offers a module level solution with permissions. You can send different groups different places.
Urging XOOPS to be the Best It Can Be.
Richard......

5
incenseman
Re: Redirecting to another module upon login!?
  • 2005/8/30 16:38

  • incenseman

  • Just popping in

  • Posts: 21

  • Since: 2005/7/16


"<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />"


That looks pretty simple. Just one thing though. If Im an inexperienced user I would want to know what modifications need to made to send it to a different module.

Are there details that you can give me?

Thanks.

Don

6
adrock
Re: Redirecting to another module upon login!?
  • 2005/8/30 20:48

  • adrock

  • Quite a regular

  • Posts: 291

  • Since: 2004/12/7


simply replace this;

"<{$xoops_requesturi}>"

with the new path to where you want them to go....

ie:
value="<{$xoops_url}>/modules/newbb"

or:
value="http://www.yourdomain.xxx/mypage.html"


Make sense?



Happy Xoopsing!
Affordable Web Hosting - Family - Fun!...and not always in that order!

7
incenseman
Re: Redirecting to another module upon login!?
  • 2005/8/31 14:29

  • incenseman

  • Just popping in

  • Posts: 21

  • Since: 2005/7/16


I am sorry to say that I had the directions below open for reference when I made the changes to the mentioned doc "system_block_login.html" and it didnt change the destination page after login. Is there something that you might have forgotten?

The change I made:
value="<{$xoops_url}>/modules/sections"

Still trying


Quote:

adrock wrote:
simply replace this;

"<{$xoops_requesturi}>"

with the new path to where you want them to go....

ie:
value="<{$xoops_url}>/modules/newbb"

or:
value="http://www.yourdomain.xxx/mypage.html"


Make sense?



Happy Xoopsing!

Login

Who's Online

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


Members: 0


Guests: 133


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