Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 21 Jun 2006, 19:20
bashy bashy is offline
 
Join Date: Nov 2005
Pulling info from a profile field

Hi peeps

I have just created a new profile field and now i would like to pull the information from the said field.....

I would like to add this information into a new page (Logican's web template)

Please can someone advise as to how to do this....

I have tried this


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

Didnt work, i got a parse error
Again i tried this and got another parse error


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

I have copied these from other hacks that pull infor from profile fields and trying them

Also is there away that the profile field information can show which member it pulled the info from please?
Something like this

Bashy-----------------[field24]
member---------------[field24]
nother member--------[field24]

get the idea?
__________________
Bashy

Bashys Place ~ Bashys Hosting

Last edited by bashy; 21 Jun 2006 at 19:23.
Reply With Quote
  #2  
Old 21 Jun 2006, 19:50
noppid noppid is offline
 
Join Date: Mar 2003
You nailed it both times. There must be errant characters in your template.

The var is going to contain the custom field info from the posting member.
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #3  
Old 21 Jun 2006, 19:52
bashy bashy is offline
 
Join Date: Nov 2005
Well actually i tried them both in the postbit and thats where i got the errors for the code.....
__________________
Bashy

Bashys Place ~ Bashys Hosting
Reply With Quote
  #4  
Old 21 Jun 2006, 19:54
noppid noppid is offline
 
Join Date: Mar 2003
We can be sure of one thing here, what you showed us will work.

However, I think your problem is in code in the template we here can't see. Perhaps you are causing a nesting problem?
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #5  
Old 21 Jun 2006, 20:04
bashy bashy is offline
 
Join Date: Nov 2005
Ok lets try a differant way...

Can it be used in a html page or does it have to be a full php page?

Ok...this is what i have, nothing shows apart from


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

Heres my code


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

From what i can make out, this code should show the member, their field and the phrase, is this correct code?

EDIT:

Right...The code


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

works in the postbit, but does not work in this code


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

Its not showing the info in a new web template (Logicans)
Also in the post bit (just for testing the code) it aint pulling the username.

Have i mentioned i want to compile a list of all members and show [fieldX] along with thier name?
__________________
Bashy

Bashys Place ~ Bashys Hosting

Last edited by bashy; 21 Jun 2006 at 20:55. Reason: Automerged Doublepost
Reply With Quote
  #6  
Old 21 Jun 2006, 20:57
noppid noppid is offline
 
Join Date: Mar 2003
Can you link me to the page or the hack you got the code from? I don't understand what's going on ie. what user id is being used for the custom fields info and where ya get it.
__________________
Add a photo gallery garage to your auto forum and get noticed by your members. Find out how at the vBulletin Computer Help Forum.
An informed rider makes their first destination the motorcycle forum at rider info.
Reply With Quote
  #7  
Old 21 Jun 2006, 21:05
bashy bashy is offline
 
Join Date: Nov 2005
The code is made up from a template within logicans web templates...
It was just something to use to base this on is all...

See it working here its the How did you find us? in the postbit
Although this will be removed once i sort the list out

that main code i want working in the template is


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

like i said it works in the postbit (sort of) it shows the user's profile field.

I think for what im wanting the $bbuserinfo is not the right variable as i want
to create a list of ALL members that have filled [fieldx] showing [fieldx] like this

Bashy-----------------[field24]
member---------------[field24]
nother member--------[field24]
__________________
Bashy

Bashys Place ~ Bashys Hosting

Last edited by bashy; 21 Jun 2006 at 21:12.
Reply With Quote
  #8  
Old 21 Jun 2006, 21:10
gulldarek's Avatar
gulldarek gulldarek is offline
 
Join Date: Dec 2001
Real name: Wojciech Zylinski
You'll have to query all users from db with non-empty specified profile field and iterate through printing the code.
Reply With Quote
  #9  
Old 22 Jun 2006, 16:02
bashy bashy is offline
 
Join Date: Nov 2005
Dam...that means nothing to me
Can someone ellaborate please, Perhaps peterska2 knows a little more?

Originally Posted by gulldarek
You'll have to query all users from db with non-empty specified profile field and iterate through printing the code.
__________________
Bashy

Bashys Place ~ Bashys Hosting
Reply With Quote
  #10  
Old 22 Jun 2006, 22:06
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Real name: Kerry-Anne (really!)
You will need to include a query on the userfields table to get this to work on other pages (it would work on memberlist, postbit, and memberinfo only otherwise). However, to include the query will require some PHP coding, so I'm not really the person to ask. The HTML that you have is spot on, and that's my field of knowledge, not PHP.
__________________
Kerry-Anne
Previously known as peterska2

My Sites: peterska2.co.uk Super Clickers World News Zone English Football League Popular Usenet Groups
Do NOT PM or email me for Support or Modification Requests - No Exceptions!!
I do NOT do custom requests. Do not ask for them. - No Exceptions!!
Reply With Quote
  #11  
Old 23 Jun 2006, 06:22
bashy bashy is offline
 
Join Date: Nov 2005
Ok thanks for taking a look KA much appreciated, i forgot you was more of a template magician

Does anyone with a bit of coding knowledge know what to do here please?
Cause i aint got a clue and this is sommat i really need?
__________________
Bashy

Bashys Place ~ Bashys Hosting
Reply With Quote
  #12  
Old 29 Nov 2006, 05:02
DarkDraco07's Avatar
DarkDraco07 DarkDraco07 is offline
 
Join Date: Apr 2002
did anyone get this to work? i would like to use $post[fieldx] on another page as well
Reply With Quote
  #13  
Old 01 Jul 2009, 07:46
Raptor Raptor is offline
 
Join Date: Nov 2001
I need to get a custom field to show on the main index page

ive tried $bbuserinfo[field5] & $post[field5] - neither of them parse
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

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


New To Site? Need Help?

All times are GMT. The time now is 12:34.

Layout Options | Width: Wide Color: