1
aslani606
redirect user to Yogurt modules.
  • 2009/1/11 23:56

  • aslani606

  • Just popping in

  • Posts: 26

  • Since: 2007/4/29


Hello.


I would like when user login to site redirect to Yogurt modules.
how i can do it.

thank

2
ghia
Re: redirect user to Yogurt modules.
  • 2009/1/12 9:48

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Try by replacing
$url XOOPS_URL.'/index.php';

in /include/checklogin.php to
$url XOOPS_URL.'/modules/yogurt/index.php';


Edit: Corrected typo in yoghurt. Thanks jimmyx!

3
aslani606
Re: redirect user to Yogurt modules.
  • 2009/1/13 14:28

  • aslani606

  • Just popping in

  • Posts: 26

  • Since: 2007/4/29




thank.


I replaced this code .

but when user login to site. not redirect to Yogurt modules.

redirect to main page

4
jimmyx
Re: redirect user to Yogurt modules.
  • 2009/1/13 15:00

  • jimmyx

  • Quite a regular

  • Posts: 338

  • Since: 2007/7/18


typo..shud be

$url XOOPS_URL.'/modules/yogurt/index.php';


& clear your cache

5
aslani606
Re: redirect user to Yogurt modules.
  • 2009/1/14 11:38

  • aslani606

  • Just popping in

  • Posts: 26

  • Since: 2007/4/29


not redirect.

6
webmystar
Re: redirect user to Yogurt modules.
  • 2009/1/14 11:58

  • webmystar

  • Friend of XOOPS

  • Posts: 415

  • Since: 2008/6/23


clear your session.

7
Kiwi_Chris
Re: redirect user to Yogurt modules.
  • 2009/3/5 2:51

  • Kiwi_Chris

  • Just popping in

  • Posts: 79

  • Since: 2009/1/3 2


I am Curious if this ever worked,

I tried your suggestion, and i cleared cache and session, but it did not work for me.

Path:
include/checklogin.php


Quote:
if (!empty($_POST['xoops_redirect']) && !strpos($_POST['xoops_redirect'], 'register')) { $_POST['xoops_redirect'] = trim( $_POST['xoops_redirect'] ); $parsed = parse_url(XOOPS_URL); $url = isset($parsed['scheme']) ? $parsed['scheme'].'://' : 'http://'; if ( isset( $parsed['host'] ) ) { $url .= $parsed['host']; if ( isset( $parsed['port'] ) ) { $url .= ':' . $parsed['port']; } } else { $url .= $_SERVER['HTTP_HOST']; } if ( @$parsed['path'] ) { if ( strncmp( $parsed['path'], $_POST['xoops_redirect'], strlen( $parsed['path'] ) ) ) { $url .= $parsed['path']; } } $url .= $_POST['xoops_redirect']; } else { $url = XOOPS_URL.'/modules/yogurt/index.php'; }

8
urbanspacema
Re: redirect user to Yogurt modules.

see THIS post.

Urban

Login

Username:
Password:

Lost Password? Register now!

Who's Online

80 user(s) are online (55 user(s) are browsing Support Forums)


Members: 1


Guests: 79


heyula,

more...

Donat-O-Meter

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

Latest GitHub Commits