| Author |
Message |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Thu Jan 23, 2003 7:48 pm |
  |
When you select a member's profile from the members list (or the user list on the user block) it takes you to your own profile editing screen, not their profile.
Artificialintel |
Last edited by ArtificialIntel on Sun Jan 26, 2003 7:19 pm; edited 2 times in total |
|
   |
 |
plm
Nuke Cadet


Joined: Jan 25, 2003
Posts: 1
Location: USA
|
Posted:
Sat Jan 25, 2003 7:55 am |
  |
I've got exactly the same problem.
Please Help with this.
(At first i thought all users could see my profile, but that wasn't, Pfuuuw) |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sat Jan 25, 2003 7:57 am |
  |
I'm working on it. It's on the top of my priorities list at the moment.
ArtificialIntel |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sat Jan 25, 2003 10:06 am |
  |
OK. Zhen-Xjell came up with teh fix a short while ago.
In /includes/sessions.php on line 420 change:
| Code: |
| $url = str_replace("profile.php", "modules.php?name=Your_Account&op=editprofile", $url); // and put it back for the modules.php |
to
| Code: |
| $url = str_replace("profile.php", "modules.php?name=Forums&file=profile", $url); // and put it back for the modules.php |
ArtificialIntel |
|
|
   |
 |
mark2002
Guest

|
Posted:
Sun Jan 26, 2003 4:37 pm |
  |
Greetings,
I did this fix as you've stated; however, when I log as a user and click on my Profile the page loops again and displays the existing contents of the page (e.g. if I was in XXXX Forum and click on Profile, I get the same page XXXX Forum)?
Thank you
Mark |
|
|
 |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sun Jan 26, 2003 4:38 pm |
  |
is this from the profile button on the forum navbar?
if so, I'm already working on it.
ArtificialIntel |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sun Jan 26, 2003 5:54 pm |
  |
My fix didn't work for the navbar? The profile is defined there as U_PROFILE. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sun Jan 26, 2003 6:05 pm |
  |
it's a different profile function on the navbar (the one in the forums module I mean, not the Your_account module)
ArtificialIntel |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sun Jan 26, 2003 6:09 pm |
  |
Yeah, the actualy link gets created in the subSilver template and is defined as the bold item I listed above. But the only reference to Your_Account I could find that is relevant is my fix above. Shoot, this is a good one then. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sun Jan 26, 2003 6:16 pm |
  |
if the link gets created in the subsilver template, then wouldnt it make sence that u can change it there too?
ArtificialIntel |
|
|
   |
 |
Zhen-Xjell
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939
|
Posted:
Sun Jan 26, 2003 6:28 pm |
  |
Here is the code at line 240 in modules/Forums/templates/subSilver/overall_header.tpl:
| Code: |
| <a href="{U_PROFILE}" class="mainmenu"><img src="modules/Forums/templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="modules/Forums/templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> </center></span></td> |
Notice the U_PROFILE. Its a concatenation obviously so you can get rid of it there and hard code the link there. But then that wouldn't be a general fix. |
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki] |
|
     |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sun Jan 26, 2003 6:57 pm |
  |
I'll track it down. If I can find where {U_PROFILE} pulls it's value from, then I can fix it.
ArtificialIntel |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Sun Jan 26, 2003 7:23 pm |
  |
ok, here's the fix for this part:
open page_header.php (Line 392) and page_header_review.php (line 364) in a text editor (both of these are found in the includes directory). Change this line:
| Code: |
| 'U_PROFILE' => append_sid('profile.'.$phpEx.'?mode=editprofile'), |
to this:
| Code: |
| 'U_PROFILE' => append_sid('modules.php?name=Your_Account&op=edituser'), |
in both files.
ArtificialIntel |
|
|
   |
 |
|
|