Author |
Message |
Meoff
Regular
![Regular Regular](modules/Forums/images/ranks/2stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 05, 2006
Posts: 55
Location: Thailand
|
Posted:
Sun Feb 18, 2007 10:05 am |
|
Hello to all...
Whenever I click on a user's name to view their personal information, the "Personal Information:" header is showing my username instead of the person I want to see.
All of the other information is correct about the user... homepage, location, interests, etc.
Furthermore, at the bottom of the personal information is a "Send a private message to *user*" Which is showing my username instead of the person whose profile I'm viewing.
How can I fix this and get th correct user's name to show up?
I've tried searching out this info and haven't found anything. If someone could point me to a thread or help me out, I'd be grateful.
Rgds,
Meoff |
_________________ I don't know how I got to be over the hill without ever reaching the top!? |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fkelly
Former Moderator in Good Standing
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY
|
Posted:
Sun Feb 18, 2007 10:31 am |
|
I don't quite understand how you are doing this. If you go into "your account" then by definition you are in "your account". So the information should be for your account. I have tried to replicate the problem by clicking on another user's name in administration / users and also in Forums and couldn 't but then I looked again at your post and saw that you said in "your account".
Could you please give us the exact steps you took? Where are you finding another users name to click on in your account? Or did you maybe log out as yourself and login as another user? If so, the problem might be cookie related and I have just checked and it doesn't exist (the problem that is) in 2.10. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Meoff
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Feb 18, 2007 10:41 am |
|
Hello fkelly- thanks for the reply.
For example- clicking on a Users Name in a news topic takes me to a URL like this:
(site url/modules.php)name=Your_Account&op=userinfo&username=Donna
All of the information on this page is correct about Donna but the name displayed in the "Personal Information:" title and "Send a private message to:" is Meoff, my own username, and not Donna.
hope this is clearer....
Rgds,
Bino |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fkelly
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Feb 18, 2007 12:28 pm |
|
I can't replicate this, either on a 2.10 test site nor on my "production" site where I am running 2.02. There are two places that I know of on the news page were another user's name can appear. First, if the author is not the admin who actually "posts" the news then it will say "userx writes:" or something to that effect. I can click that and see the right information on both sites. Second, you will also see "posted by: " at the bottom of the post and the name of the admin who posted it. On my 2.02 site, if I click on my other admins name where he posted something I get taken to index.php (it does nothing).
The code in this is theme dependent. It's possible the theme you are using has a bug. What theme is it? Did it come with the distribution of 2.02? Although looking at the url you posted it could be the theme is doing it right ... it is supposed to say "username=Donna" and something is wrong with userinfo. Maybe you could try it over at the ravennuke test site (ravennuke.com) and see if you can duplicate it. I suspect that, rather than chasing old bugs in 2.02 we will ask you to upgrade to fix it, once 2.10 is out. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
CodyG
Life Cycles Becoming CPU Cycles
![](modules/Forums/images/avatars/186c8977515afcc3ed82a.jpg)
Joined: Jan 02, 2003
Posts: 714
Location: Vancouver Island
|
Posted:
Sun Feb 18, 2007 12:52 pm |
|
I've seen the problem meoff is referring to on my 6.9 site, an link that went to the phpnuke User Profile, was buggy, just like meoff says. Thankfully, it has gone away on the RN 2.02 site.
Meoff, are you using 2.02? Have you modified anything in the Your Account Module?
In what module or block are you clicking the username which takes you to the problem profile page? |
_________________ "We want to see if life is ubiquitous." D.Goldin |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
fkelly
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Feb 18, 2007 2:57 pm |
|
Good catch Codyg ... for some reason I was assuming 2.02 as the version but rereading the posts there is nothing about that. We need to know the version.
Almost certainly the problem is in the userinfo function of your_account, since the proper $username is being passed to it. In the current (2.10 version) there is a check against the cookie but the cookie's username will only be used if what is passed in matches it. Since Meoff has shown us that "Donna" is being passed in, Meoff's cookie's username (cookie[1]) would not be used. Perhaps that check was not present or was incorrect in a previous version.
You could probably match the code Meoff is using against the 2.02 Your Account userinfo code and find where the problem is happening. That might be a good PHP programming exercise but if you just want a solution I'd ignore the problem for now and upgrade to 2.10 when it's out.
Ain't this fun? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Mon Feb 19, 2007 5:35 pm |
|
I distinctly recall us making a code fix in 2.10.00 to correct this. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|