The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello all,
Ok I have vbulletin intergrated into another system and I am trying to finish my site up. But my issue is this, I need (to find or create) a link that I can add to my templete so I can add a "My Profile" link to my site. Meaning that no matter who the user is when they click "My Profile" it takes them to just that thier vbulletin profile. The link to my users profile is is as follows http://www.mydomain.com/f/member.php?u=1 I know that one is obviosly the users id, So I have tried many diffent thing to make the link do what I want it to such as http://www.mydomain.com/f/member.php?u=id http://www.mydomain.com/f/member.php?u=memberid http://www.mydomain.com/f/member.php?u=myprofile http://www.mydomain.com/f/member.php?u=[ID] http://www.mydomain.com/f/member.php?u=? http://www.mydomain.com/f/member.php?u=me when I add any of these it will redirect the "My Profile" link to a page that says "This user has not registered and therefore does not have a profile to view." and so on and so forth so if anyone has any ideas or a solution for for PLEASE RESPOND. THANK YOU SO MUCH FOR ANY HELP, Joe |
#2
|
||||
|
||||
![]()
member.php?u=$bbuserinfo[userid]
|
#3
|
|||
|
|||
![]()
did not work :-( could it be because the forums are in a seprate database.
|
#4
|
||||
|
||||
![]()
In order to do a link to the member page, you need to have available either thier vbulletin userid or their vbulletin username. Do you have either of those available to you on your page?
|
#5
|
|||
|
|||
![]()
ok if you go to my site www.socomfaces.com and sign up then login on the main page in the top right nav area you will see a link that says "My Profile" it was set to take members to a profile within the tourniment script i am tryn to redirect it to my memebrs vbulletin profile.
thank agian for any help Joe |
#6
|
||||
|
||||
![]()
I don't want to sign up for another forum. Do you have a test account. When you login to your main page, is the username and userid they get the same as the one on the vbulletin forums? If so, you need to get the name of that variable.
|
#7
|
|||
|
|||
![]()
Is that page intergrated into vBulletin? Are you using vBulletin templates to display it?
The following PHP would work: Code:
<a href="member.php?u=<?php echo $vbulletin->userinfo['userid'] ?>">My Profile</a> Code:
<a href="member.php?u=$bbuserinfo[userid]">My Profile</a> |
#8
|
|||
|
|||
![]()
ok guys I really am greatful for your help but still no luck :-( but full of hope.
Ok I am trying to give all needed info. ok I am not adding it to a vbulletin templete, heres what I have, I have a gaming ladder script (from eliteladders.com) and that is my primary data base. at www.socomfaces.com thenI have the vbulletin intergrated in a serprate database at www.socomfaces.com/f in the ladders origanal ladder script the Account Manager link was [<a href='./manager.php'><span style='color:#FFFFFF;'>Manager</span></a>] I changed it to [<a href='http://www.socomfaces.com/f/profile.php?do=editprofile'><span style='color:#FFFFFF;'>Manager</span></a>] And that worked (it redirected the ladder account manager to vbulletin account manager) Now the My Profile link is [<a href='./profile.php?account=$member[id]'><span style='color:#FFFFFF;'>My Profile</span></a>] Im just trying get this to forward to the members profile on the vulletin script (basiclly I am removing the ladder profiles and keeping the vbulletin profiles) |
#9
|
|||
|
|||
![]()
You need to get their userid somehow... using the code I gave my post fetches these if you are working in vBulletin. If you have integrated vBulletin with your ladder script, you are the only person who is going to know how to get the userid.
The link structure is like this: Code:
<a href="member.php?u=VBULLETIN_USERID">My Profile</a> |
#10
|
|||
|
|||
![]()
well heres the thing if you sign-up / register for any part of my site you are given a id number, Exsample the second account to sign-up is now account number 2
so on the ladders the profile link is http://www.socomfaces.com/profile.php?account=2 and on the vbulletin the profile link is http://www.socomfaces.com/f/member.php?u=2 and I know I change the link in the html.php to say http://www.socomfaces.com/f/member.php?u=2 but that will take all members to profile number 2 when they click the "My Profile" link what I am trying to do is find a url I can put in place of [<a href='./manager.php' so that no matter witch member clicks "My Profile" it will automaticly take them to thier own profile. or if someone is looking at the ladders and clicks a members name it will just automaticly take them to that users vbulletin profile (account number 1, 2, 3, 4, 5, ect...) I thought i would just be [<a href='./f/manager.php?=' but i am evidently wrong! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|