Links do not direct correctly in User's opened profile

Posted January 21, 9:59 pm 2011

In an opened user's profile section, the links for Profile, Blogs, Friends, Photos, Polls, Quizzes, Videos, Favorites are not directing to a user's specific profile event/item.

For example: On our other Phpfox sites, if we click on lets say photos under a user's opened profile the link in properties would look like this
http://www.mysite.com/profile-760/photo/


However, on one of our sites its like this under a user's open profile:
http://www.mysite/profile/photo/

I tried cleaning the site cache and browser cache to no avail. Also tried a database repair and optimizing session.
Any ideas how to fix this issue please?

Kind regards


egirl

Running

V3.2.0(build 2)
Posted January 28, 7:36 pm 2011

I think the problem was caused by a wrong modification in the file "/module/profile/include/component/block/header.class.php".

There was a foreach commented out, causing the profile url, in the variable $aMenus, to be unset. Therefore, the script replaced the url with the data of the user logged in, and not with the data of the owner of the profile.

Hope this helps!

Advise: Always backup!!

Knowledge base for V2 here

"Clothes do not make the man... but nobody respects a Sargent in underwear!" -- Me
Posted January 28, 8:11 pm 2011
Quote:
Originally posted by: Fern

I think the problem was caused by a wrong modification in the file "/module/profile/include/component/block/header.class.php".

There was a foreach commented out, causing the profile url, in the variable $aMenus, to be unset. Therefore, the script replaced the url with the data of the user logged in, and not with the data of the owner of the profile.

Hope this helps!



Hi Fern I am having the same issue, can you walk us through a fix?

V3

Posted January 28, 11:22 pm 2011

While you are waiting, since Fern may not be on due to the weekend, you can look in that file and see if your foreach line is commented out for some reason. It's a small file so it should be easy to see.

You can also use the free tool inspect element in firefox to view the code in your browser without having to go to cpanel just to check it. Just right click on one of the links and click inspect element and see how it looks.

I always make a copy of a file before editing. Smile

The following users say Thank You to for this useful post:
phpFox tutorials and support

Knowledgebase Articles , Forum Rules
Posted January 29, 12:22 am 2011

Fern thank you very much for addressing and fixing that wrong modification in the file issue. thumbs_up

Kind regards


egirl

Running

V3.2.0(build 2)
Posted February 22, 6:05 pm 2012

help!!! I have made new pages, but it is adding past history to the url, so when you copy and share the link from the address bar, it will not work. I figured out how to fix it on my links, but my users will not know what to do, so what can I do?

Posted February 22, 6:17 pm 2012

I got it fixed it was caused by hash-bang url setting, I had to disable inorder for the links to work right

All times are GMT. The time now is 8:15 pm.