Author Topic: MOD Redirect user login and read after release  (Read 2574 times)

0 Members and 1 Guest are viewing this topic.

Offline jotabonfim

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
MOD Redirect user login and read after release
« on: September 16, 2008, 09:32:00 PM »
Assuming you are using 4images v1.7.2 or newer. In login.php find:
Code:
  if ($site_sess->login($user_name, $user_password, $auto_login)) {

Insert BELOW:
Code:
    redirect($site_sess->url(ROOT_PATH."member.php?action=editprofile"));
------------------------------------------------------------------------------------------------------------------------------------------------
Hello Vano you for this module, it will be very useful for users of my country because the laws.

I need one more help to implement more about this module.
I use version 1.7.6

I need that after the user login it is redirected to a page with some information, after he read this page and agree he should click button agreeing with what this writing there.

When they click on the site will update the table "4images_user" with information on more in a field that created called "user_communicate" after this he would be redirected to index.php.
Next visit the user back to the site, where the "user_communicate" is marked with "yes" he vera again this message.

Example: If the same field user_communicate yes, redirect index.php
if not redirect page_communicate.php and update table 4iamges_users September field user_communicate "yes" or "no"


This is possible?  :D

I am grateful for the help.
« Last Edit: September 16, 2008, 09:43:16 PM by jotabonfim »