Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Login 'Profile Page' Mod

  1. #1
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Talking Login 'Profile Page' Mod

    Well, I was sick of member.php executing after successfull login, so I went into profile_customize.php to see how it was able to load a members page without specifying the member's ID. So I got this working easily and I'll show you how:


    Just upload the attatched member.php file to your server. This will login the user right into there profile page rather than the default 'start' page. Alot more professional I think.


    If you have a modified member.php then with my attatched file copy line 78 and replace your own members.php line 78 with it. Have fun. Hope this isnt too confusing..
    Attached Files Attached Files
    Last edited by CodyT; 03-12-2007 at 03:23 AM.
    SocialEngine 2.81 Nulled

  2. #2
    lodlock's Avatar
    Join Date
    May 2006
    Posts
    284

    Default

    similar idea, you could point them to profile_edit so that they are automatically sent to update their profile. Useful for the new shorter join pages.
    -Lodlock

  3. #3
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    Thats true. I just thought that there Profile page would be most logical. Hehe... not bad for my first mod
    SocialEngine 2.81 Nulled

  4. #4
    lodlock's Avatar
    Join Date
    May 2006
    Posts
    284

    Default

    good stuff codyt
    -Lodlock

  5. #5

    Join Date
    Oct 2006
    Posts
    73

    Default

    Thanks for this CodyT and the Idea lodlock ,

    Line 78

    I changed to this so after login the page goes to profile edit .

    Code:
    			echo "<br /><script language=\"Javascript\">location.href='profile_edit.php?ID={$member['ID']}';</script>";
    Cheers

  6. #6
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    No problem, Smarty
    SocialEngine 2.81 Nulled

  7. #7

    Join Date
    Apr 2006
    Posts
    3

    Default

    I felt this will be good, so sharing with you all.
    When a visitor tries to access members only page, our site asks them to join now or login if they are already a member. And if the visitor is already a member, they login on that page and it should take them to the same page were the login request came from.
    So here is the code to take back members after login to the previous page that requested this login.
    Code:
    echo "<br /><script language=\"Javascript\">location.href='$_SERVER[HTTP_REFERER]';</script>";

  8. #8
    lodlock's Avatar
    Join Date
    May 2006
    Posts
    284

    Default

    cool. thanks.
    -Lodlock

  9. #9
    CodyT's Avatar
    Join Date
    Feb 2007
    Posts
    288

    Default

    dmkumar, what script file does this line apply too? I might use this.
    SocialEngine 2.81 Nulled

  10. #10

    Join Date
    Apr 2006
    Posts
    3

    Default

    Quote Originally Posted by CodyT
    dmkumar, what script file does this line apply too? I might use this.
    It is "member.php" and look for
    Code:
    echo "<br /><script language=\"Javascript\">location.href='$_SERVER[PHP_SELF]';</script>";
    replace with
    Code:
    echo "<br /><script language=\"Javascript\">location.href='$_SERVER[HTTP_REFERER]';</script>";
    It is basically, replace PHP_SELF to HTTP_REFERER

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to add a login function on another HTML page?
    By angela in forum FAQ & HOWTO
    Replies: 6
    Last Post: 11-17-2007, 12:11 AM
  2. Welcome Login WHITE page is UGLY
    By Nick8888 in forum Bugs and Fixes
    Replies: 4
    Last Post: 06-12-2007, 10:16 PM
  3. Picture on the login page
    By saqrep in forum General Issues, Comments, Questions
    Replies: 0
    Last Post: 04-18-2007, 02:46 AM
  4. Member Login Page
    By Prometheus in forum General Troubleshooting
    Replies: 2
    Last Post: 09-26-2006, 09:57 AM
  5. If not login/join page???
    By franklaval in forum Graphics / Templates
    Replies: 0
    Last Post: 11-16-2005, 09:43 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •