PDA

View Full Version : Userinfo working more like bbuserinfo


Bubble #5
07-17-2006, 11:37 PM
We have a custom profile which members can pic which pet they have. We need to place that information on the index page. We were told by someone who works for vB to use this code:

<img src="images/pets/{$vbulletin->userinfo['fieldX']}.gif" align="center">

Field X is the number of our custom profile field. Members select what pet they have in their profile. The images do show up, BUT they are all the same, depending on who is logged in. In a lot of ways it's working like $bbuserinfo usually does. How would we change this so that it relects the pet of each poster? :surprised:

peterska2
07-17-2006, 11:43 PM
Thats complete silly code what you were given as that is the $bbuserinfo code written longhand.

For postbit use<img src="images/pets/$post[fieldX].gif" align="center">

For memberinfo use<img src="images/pets/$userinfo[fieldX].gif" align="center">

Bubble #5
07-17-2006, 11:59 PM
Thats complete silly code what you were given as that is the $bbuserinfo code written longhand.
Well that's certainly the way it's acting - like $bbuserinfo, but I can assure you that the person who gave it to us was a well known vB figure :) The other two codes that you posted do not work on forumhome, which is why we requested help from vB personnel and "vbulletin->userinfo [fieldX]" was given to us. So are we just chasing our tail (pun intended) or is there a way to show custom profile information on forumhome :confused:

peterska2
07-18-2006, 12:16 AM
not on a peruser basis unless$user[fieldx]will work, which I doubt

Bubble #5
07-18-2006, 12:33 AM
We tried that one last week but no images show up with it :(

This would be a incredible plugin if anyone makes it. Judging from all the posts I've read on this subject, there's a lot of people who would love to post [fieldX] information on the index page :(