to previous topic Print topic to next topic

 Root :: Developments :: PN .8x :: "What-does-my-profile-look-like"-Link
 Moderated by:
 
  Bottom  "What-does-my-profile-look-like"-Link
Barsoth Posted: 28.11.2004, 21:21
Pizzaman
Pizzaman


registered: Sep 26, 2004
Posts: 36

Status:  offline
last visit: 19.06.06
Hi!

I think it would be great (especially if EZComments and AdvProfile is used as personal guestbook), to have a link (in a side-block or in the user's account), that leads to the own profile of the user. This should be the link: user.php?op=userinfo&uname=xxx
So the user would be able to see what others can see when they click his profile and he can even see all his details in one glance (especially if AdvProfile is used he can see his activity, etc.).
Top  Barsoth send PM
 
RDR02 Posted: 28.11.2004, 23:41
Pizzaman
Pizzaman
avatar

registered: Feb 05, 2004
Posts: 45

Status:  offline
last visit: 16.02.05
Advprofile and dpstaffstatus will give you that effect. Make sure you read the readme file in the advprofile to set your members list. With staffstatus you will have a block that will show a members name all you have to do is click on name (WHILE LOGGED INTO SITE) to view the profile.

Now the problem I wish to solve is after your finished editing your profile and you choose submit , that it would redirect you back to the view provile page instead of going to your personal page.
Top  RDR02 send PM Homepage
 
Chestnut Posted: 29.11.2004, 12:50
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
In the NS-User/tools.php...

function redirect_user()
find the line :

Code
  1. echo "<html><head><META HTTP-EQUIV=Refresh CONTENT=\"2; URL=user.php\">\n";


and change it to :

Code
  1. echo "<html><head><META HTTP-EQUIV=Refresh CONTENT=\"2; URL=user.php?op=userinfo&uname=".pnUserGetVar&#40;'uname')."\">\n";
  2.  


:wink:

Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
RDR02 Posted: 30.11.2004, 05:48
Pizzaman
Pizzaman
avatar

registered: Feb 05, 2004
Posts: 45

Status:  offline
last visit: 16.02.05
Humm its not working . I want to be able to go back to the view advprofile page when you are done editing your profile , instead of going to " My Personal Homepage for this site " page or " My Account " page.
Top  RDR02 send PM Homepage
 
Chestnut Posted: 30.11.2004, 09:00
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
That is what I gave you... I tried it and it works for me... :?:


Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
Barsoth Posted: 30.11.2004, 11:50
Pizzaman
Pizzaman


registered: Sep 26, 2004
Posts: 36

Status:  offline
last visit: 19.06.06
So, what I meant is a link in the user's account-menu that leads to "UserInfo-xxx.html".
This link should be beside "change your info", "configure comments" aso.

I guess ist must be in the links-directory of "NS-Your_Account"...
Top  Barsoth send PM
 
Chestnut Posted: 30.11.2004, 11:56
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
This

Code
  1. user.php?op=userinfo&uname=".pnUserGetVar&#40;'uname').
  2.  


is the link to your user Profile... if you are not redirected to the advProfile, it's probably because you did not made the change as per told in the readme... would that be a good guess ? :)

Doing so will make every link on your site that goes to the original profile to be redirected to the advProfile.

Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
Chestnut Posted: 30.11.2004, 11:58
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
Yup sorry

Didn't quite understood your meaning...

Yes, you must create a links file in the links folder... a copy and paste with a minimum change should do the trick.

modules\NS-Your_Account\user\links

:wink:


Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
Barsoth Posted: 30.11.2004, 13:02
Pizzaman
Pizzaman


registered: Sep 26, 2004
Posts: 36

Status:  offline
last visit: 19.06.06
ChestnutDidn't quite understood your meaning...

Sorry for that. :(


What I did so far:
I created a file called links.myprofile.php and uploaded it to modules/NS-Your_Account/user/links.
In this file I set this link:
Code
  1. usermenu&#40;"user.php?op=userinfo&uname=\".pnUserGetVar('uname').", "My Profile", "profile.jpg");
  2.  


This line, what it is about:
Code
  1. user.php?op=userinfo&uname=\".pnUserGetVar&#40;'uname').
  2.  


The link appears in the user's account menu but it does not get the user's name. It links to user.php?op=userinfo&uname= and leaves the username out.
I guess it is just a simple syntax error...
Top  Barsoth send PM
 
Chestnut Posted: 30.11.2004, 13:08
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
Slight syntax error :

Code
  1. usermenu&#40;"user.php?op=userinfo&uname=".pnUserGetVar('uname'), "My Profile", "profile.jpg");
  2.  


The pnUserGetVar is a function so it must be out of the string. :wink:

Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
Barsoth Posted: 30.11.2004, 13:31
Pizzaman
Pizzaman


registered: Sep 26, 2004
Posts: 36

Status:  offline
last visit: 19.06.06
icon_redface
I guess I am blind...

It's working great.

Thanks to you, Chestnut!
Top  Barsoth send PM
 
RDR02 Posted: 01.12.2004, 12:43
Pizzaman
Pizzaman
avatar

registered: Feb 05, 2004
Posts: 45

Status:  offline
last visit: 16.02.05
ChestnutIn the NS-User/tools.php...

function redirect_user()
find the line :

Code
  1. echo "<html><head><META HTTP-EQUIV=Refresh CONTENT=\"2; URL=user.php\">\n";


and change it to :

Code
  1. echo "<html><head><META HTTP-EQUIV=Refresh CONTENT=\"2; URL=user.php?op=userinfo&uname=".pnUserGetVar&#40;'uname')."\">\n";
  2.  


:wink:


Its not working . When I try to edit my profile and then save changes I get redirected to a blank page.
Top  RDR02 send PM Homepage
 
Chestnut Posted: 01.12.2004, 15:00
Site Admin
avatar

registered: Jun 02, 2002
Posts: 1320

Status:  offline
last visit: 07.02.08
Working totally fine on mine...
Here is the full line in case...

Code
  1. echo "<html><head><META HTTP-EQUIV=Refresh CONTENT=\"2; URL=user.php?op=userinfo&uname=".pnUserGetVar&#40;'uname')."\">\n";
  2.  


Chestnut ! Cool
Site Admin
Top  Chestnut send PM Homepage
 
Barsoth Posted: 02.12.2004, 00:23
Pizzaman
Pizzaman


registered: Sep 26, 2004
Posts: 36

Status:  offline
last visit: 19.06.06
I tried it, too.
Althoug I probably will not use it, it works.

RDR02:
Maybe you have a different PostNuke version?
If it opens a blank page maybe a function works not correct.
Top  Barsoth send PM
 
RDR02 Posted: 02.12.2004, 01:19
Pizzaman
Pizzaman
avatar

registered: Feb 05, 2004
Posts: 45

Status:  offline
last visit: 16.02.05
Thank you sir. Excellent work as usual. Its now working correctly on my test site.
Top  RDR02 send PM Homepage
 



Powered by pnForum Version 2.0.1
DarkMindZ