The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm trying to pull information from the Member Profile for use in a different custom template. I have included globals.php in the php file.
The problem I'm having is that when I place the following code, and view the template, no matter whose custom page I'm looking at, it shows MY userinfo, and not theres. I'm trying to pull specifically each users OWN information to display on their custom page. Code:
<td rowspan="2" nowrap class="alt2">$userinfo[field19][/td] I thought that $userinfo pulls the owner, and $bbuserinfo pulls the viewer's info right? Thanks for the help. |
#2
|
||||
|
||||
![]()
You'll need to specifically load the userinfo for the target userid:
Code:
$profile_userinfo = verify_id('user', $userid, 1, 1); Also, note the $profile_userinfo instead of $userinfo. It's generally a good idea not to mess with $userinfo, as this can have unforeseen consequences! -- hugh |
#3
|
|||
|
|||
![]()
Thanks Hugh...I understand what you're getting at, but I think I'm a little overwhelmed. Maybe I'll just create another table entry, as I know how to do that. Gaaaar.
I'm going to start a custom mod soon...and that will hopefully help me understand more about PHP. Right now, I'm just modifying an existing custom template. ![]() |
#4
|
||||
|
||||
![]()
Which template are you modifying?
-- hugh |
#5
|
|||
|
|||
![]() PHP Code:
|
#6
|
||||
|
||||
![]()
I'm asking because I'm trying to help you.
But that isn't a template, that's PHP code. -- hugh |
#7
|
|||
|
|||
![]() Quote:
![]() My post was aimed at the original poster ![]() |
#8
|
||||
|
||||
![]()
Ooops. Sorry!
I should know better than to post on vborg before I finish my first cup of coffee. -- hugh |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|