Forum Index   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
BarsothOffline



Joined: Sep 27, 2004
Posts: 32

Status: Offline
Post   Posted: Nov 28, 2004 - 08:21 PM Reply with quote Back to top

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.).
View user's profile Send private message
RDR02Offline



Joined: Jul 11, 2004
Posts: 45
Location: New Jersey
Status: Offline
Post   Posted: Nov 28, 2004 - 10:41 PM Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Nov 29, 2004 - 11:50 AM Reply with quote Back to top

In the NS-User/tools.php...

function redirect_user()
find the line :

Code:

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


and change it to :

Code:

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


Wink

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
RDR02Offline



Joined: Jul 11, 2004
Posts: 45
Location: New Jersey
Status: Offline
Post   Posted: Nov 30, 2004 - 04:48 AM Reply with quote Back to top

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.
View user's profile Send private message Visit poster's website
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Nov 30, 2004 - 08:00 AM Reply with quote Back to top

That is what I gave you... I tried it and it works for me... Question

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
BarsothOffline



Joined: Sep 27, 2004
Posts: 32

Status: Offline
Post   Posted: Nov 30, 2004 - 10:50 AM Reply with quote Back to top

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"...
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Nov 30, 2004 - 10:56 AM Reply with quote Back to top

This

Code:

user.php?op=userinfo&uname=".pnUserGetVar('uname').


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 ? Smile

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

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Nov 30, 2004 - 10:58 AM Reply with quote Back to top

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
Administrator
PNConcept.com


Last edited by Chestnut on Nov 30, 2004 - 10:58 AM; edited 1 time in total
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
BarsothOffline



Joined: Sep 27, 2004
Posts: 32

Status: Offline
Post   Posted: Nov 30, 2004 - 12:02 PM Reply with quote Back to top

Chestnut wrote:
Didn't quite understood your meaning...

Sorry for that. Sad


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:
usermenu("user.php?op=userinfo&uname=\".pnUserGetVar('uname').", "My Profile", "profile.jpg");


This line, what it is about:
Code:
user.php?op=userinfo&uname=\".pnUserGetVar('uname').


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...
View user's profile Send private message
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Nov 30, 2004 - 12:08 PM Reply with quote Back to top

Slight syntax error :

Code:

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


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

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
BarsothOffline



Joined: Sep 27, 2004
Posts: 32

Status: Offline
Post   Posted: Nov 30, 2004 - 12:31 PM Reply with quote Back to top

Embarassed
I guess I am blind...

It's working great.

Thanks to you, Chestnut!
View user's profile Send private message
RDR02Offline



Joined: Jul 11, 2004
Posts: 45
Location: New Jersey
Status: Offline
Post   Posted: Dec 01, 2004 - 11:43 AM Reply with quote Back to top

Chestnut wrote:
In the NS-User/tools.php...

function redirect_user()
find the line :

Code:

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


and change it to :

Code:

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


Wink


Its not working . When I try to edit my profile and then save changes I get redirected to a blank page.
View user's profile Send private message Visit poster's website
Chestnut
Site Admin


Joined: Oct 08, 2003
Posts: 1065
Location: Paris - France
Post   Posted: Dec 01, 2004 - 02:00 PM Reply with quote Back to top

Working totally fine on mine...
Here is the full line in case...

Code:

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

_________________
Chestnut ! Cool
Administrator
PNConcept.com
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
BarsothOffline



Joined: Sep 27, 2004
Posts: 32

Status: Offline
Post   Posted: Dec 01, 2004 - 11:23 PM Reply with quote Back to top

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.
View user's profile Send private message
RDR02Offline



Joined: Jul 11, 2004
Posts: 45
Location: New Jersey
Status: Offline
Post   Posted: Dec 02, 2004 - 12:19 AM Reply with quote Back to top

Thank you sir. Excellent work as usual. Its now working correctly on my test site.
View user's profile Send private message Visit poster's website
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits
DarkMindZ