Author Topic: Redirect Existing Users to Update Profile  (Read 3114 times)

0 Members and 1 Guest are viewing this topic.

drhtm

  • Guest
Redirect Existing Users to Update Profile
« on: June 08, 2005, 03:05:56 AM »
I just added a few extra 'registration user fields' and I like to have my existing users to update their profile.  Is there a way to redirect members who have not updated their profile to a page explaining what needs to be updated and why, and then from there a link to their account page in order to update it.

Is this possible?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Redirect Existing Users to Update Profile
« Reply #1 on: June 08, 2005, 03:23:54 AM »
It seems that the simular post was lost after the hack...
so here is the code I've posted under that post:

in includes/sessions.php find:
Code: [Select]
$user_info = $site_sess->return_user_info();
insert below:
Code: [Select]
  if ($user_info['user_bd'] == "0000-00-00" && $user_info['user_level'] > GUEST && $user_info['user_level'] != ADMIN && $action != "updateprofile" && $action != "editprofile" && $action != "editprofi1e")
  {
    Header("Location: ".$site_sess->url(ROOT_PATH."member.php?action=editprofi1e"));
  }
replace $user_info['user_bd'] == "0000-00-00" with the condition u want.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

drhtm

  • Guest
Re: Redirect Existing Users to Update Profile
« Reply #2 on: June 08, 2005, 05:48:39 AM »
wow that works great!!!!! thanks.  8)