1
torweb
Login redirect to another page
  • 2007/12/18 18:13

  • torweb

  • Just popping in

  • Posts: 56

  • Since: 2007/3/5 1


Does anyone know if it's possible to direct a user/group to a specific page when they login. When a specific group/user logs in, I would like to send the to a certain page containing information specific to the group/user. I'm using TinyContent for most of my pages.

Thanks for any ideas...

2
mboyden
Re: Login redirect to another page
  • 2007/12/18 19:58

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Anything's possible

You'll need to edit include/checklogin.php page for the login script. At the end, just before you redirect, you'd need some code to check the groups and then change the page based on whether or not they user is in a particular group.

However, recognize that most pages will redirect back to the page you were trying reach after logging in by default, but if you want to over-ride it, then you can, and that would be the place.

AFAIK, there is no module that does this for you.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

3
torweb
Re: Login redirect to another page
  • 2007/12/19 1:03

  • torweb

  • Just popping in

  • Posts: 56

  • Since: 2007/3/5 1


Thanks for the post...I looked at the php code but it looks like it may be a bit over my head.

4
iHackCode
Re: Login redirect to another page

https://xoops.org/modules/newbb/viewtopic.php?post_id=259113#forumpost259113

i still haven't tried either of them.
and a download link since one isnt working at this time.

http://www.xoopsaddons.org/modules/wfdownloads/singlefile.php?lid=1265
CBB / LatestNews / Publisher / XM-Spotlight

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

Login

Who's Online

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


Members: 0


Guests: 145


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