vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need a My Profile link (https://vborg.vbsupport.ru/showthread.php?t=190196)

HATED 09-06-2008 06:11 PM

Need a My Profile link
 
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

SEOvB 09-06-2008 06:15 PM

member.php?u=$bbuserinfo[userid]

HATED 09-06-2008 09:28 PM

did not work :-( could it be because the forums are in a seprate database.

Lynne 09-06-2008 09:36 PM

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?

HATED 09-07-2008 04:34 PM

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

Lynne 09-07-2008 04:39 PM

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.

Opserty 09-07-2008 05:04 PM

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>
Or if you are using vBulletin templates:
Code:

<a href="member.php?u=$bbuserinfo[userid]">My Profile</a>

HATED 09-07-2008 05:45 PM

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)

Opserty 09-07-2008 05:50 PM

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>
You need to find out how to change VBULLETIN_USERID to their actual userid. We can't really help you any more then that.

HATED 09-07-2008 06:07 PM

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!


All times are GMT. The time now is 05:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02453 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete