Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.02.02 Distro
Author Message
Meoff
Regular
Regular


Joined: Aug 05, 2006
Posts: 55
Location: Thailand

PostPosted: Sun Feb 18, 2007 10:05 am Reply with quote

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!? 
View user's profile Send private message Visit poster's website
fkelly
Former Moderator in Good Standing


Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Sun Feb 18, 2007 10:31 am Reply with quote

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.
 
View user's profile Send private message Visit poster's website
Meoff
PostPosted: Sun Feb 18, 2007 10:41 am Reply with quote

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
 
fkelly
PostPosted: Sun Feb 18, 2007 12:28 pm Reply with quote

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.
 
CodyG
Life Cycles Becoming CPU Cycles


Joined: Jan 02, 2003
Posts: 712
Location: Vancouver Island

PostPosted: Sun Feb 18, 2007 12:52 pm Reply with quote

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. Wink

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 
View user's profile Send private message
fkelly
PostPosted: Sun Feb 18, 2007 2:57 pm Reply with quote

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?
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Mon Feb 19, 2007 5:35 pm Reply with quote

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! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.02.02 Distro

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©