Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 27 Dec 2008, 00:51
christian8a's Avatar
christian8a christian8a is offline
 
Join Date: May 2007
Real name: Chris
php code to pull custom profile fields?

I have a custom made php file, but I need to display some custom profile fields on the product, what coding will it take?

I know on the template what to use, but on the php code no idea?
__________________
Best looking corvette website!
Corvettes Forum
Reply With Quote
  #2  
Old 27 Dec 2008, 03:57
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
If you have the global.php file called, then I believe you should be able to get it with $bbuserinfo[fieldx] (assuming you want it for the person viewing the page).
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 27 Dec 2008, 04:17
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

$bbuserinfo is used strictly in templates only. It actually won't work outside of templates anyway.
__________________
View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #4  
Old 27 Dec 2008, 04:25
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You are right, Hanson. I think it's time for some sleep when I can't read what is being asked!
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #5  
Old 27 Dec 2008, 05:27
christian8a's Avatar
christian8a christian8a is offline
 
Join Date: May 2007
Real name: Chris
Originally Posted by Dismounted View Post
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

$bbuserinfo is used strictly in templates only. It actually won't work outside of templates anyway.
Cool, thanx guys, but where does that code goes and how to add that on the template? Im getting close
__________________
Best looking corvette website!
Corvettes Forum
Reply With Quote
  #6  
Old 27 Dec 2008, 16:48
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Originally Posted by christian8a View Post
Cool, thanx guys, but where does that code goes and how to add that on the template? Im getting close
Why don't you post the code you've written so far and tell us what you want as the result and then we can help you with more specifics.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #7  
Old 30 Dec 2008, 16:49
pein87's Avatar
pein87 pein87 is offline
 
Join Date: Sep 2008
I had that same problem and I used <if condition="{your condition code}">{code to execute if its that condition}</if><else />
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 10:48.

Layout Options | Width: Wide Color: