Author Topic: Profile only for members  (Read 4041 times)

0 Members and 1 Guest are viewing this topic.

Offline TheFinalDesire

  • Newbie
  • *
  • Posts: 35
    • View Profile
Profile only for members
« on: March 12, 2005, 05:52:40 PM »
Hi.

Before the Board was hacked, I found here an answer of my question: "How allow only registred user to look at the member profile?". I changed the code in the member.php and it works well. But now, I dont know which part of code I have changed :D.

If a user now use the option "Forgot password" there appears the same error_message like "a unregistered user wants to look a member profile". How can I change it?

Final =)

« Last Edit: March 12, 2005, 05:54:23 PM by TheFinalDesire »

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: Profile only for members
« Reply #1 on: March 12, 2005, 06:18:32 PM »
copy your member.php into member.phps and show url to it (either here or if u dont want make it public, u can PM me)
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)

Offline TheFinalDesire

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: Profile only for members
« Reply #2 on: March 12, 2005, 07:00:31 PM »

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: Profile only for members
« Reply #3 on: March 12, 2005, 08:09:19 PM »
u added
Code: [Select]
if ($user_info['user_level']  < USER) {
  show_error_page($lang['no_permission']);
  exit;
}
in the wrong place.
it should be below
Code: [Select]
if ($action == "showprofile") {
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)

Offline TheFinalDesire

  • Newbie
  • *
  • Posts: 35
    • View Profile
Re: Profile only for members
« Reply #4 on: March 13, 2005, 09:53:06 AM »
It works, thank you.

Final =)