Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2008, 06:11 PM
HATED HATED is offline
 
Join Date: Oct 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 09-06-2008, 06:15 PM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

member.php?u=$bbuserinfo[userid]
Reply With Quote
  #3  
Old 09-06-2008, 09:28 PM
HATED HATED is offline
 
Join Date: Oct 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

did not work :-( could it be because the forums are in a seprate database.
Reply With Quote
  #4  
Old 09-06-2008, 09:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 09-07-2008, 04:34 PM
HATED HATED is offline
 
Join Date: Oct 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 09-07-2008, 04:39 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 09-07-2008, 05:04 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #8  
Old 09-07-2008, 05:45 PM
HATED HATED is offline
 
Join Date: Oct 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #9  
Old 09-07-2008, 05:50 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 09-07-2008, 06:07 PM
HATED HATED is offline
 
Join Date: Oct 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:44 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.03826 seconds
  • Memory Usage 2,255KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete