The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
|||
|
|||
![]()
[sql]$fields = $vbulletin->db->query_first("SELECT * FROM userfield
WHERE userid = '" . $userid . "');[/sql] |
#22
|
|||
|
|||
![]()
Kirk/Enigma: Does fetch_userinfo() not fetch custom fields?
|
#23
|
||||
|
||||
![]()
I've never used it, you may be right.
|
#24
|
|||
|
|||
![]() Quote:
- Pc1203 |
#25
|
||||
|
||||
![]()
If Opserty is correct in you being able to simply use $userinfo['fieldX'] in place of the query I suggested, you don't need to worry about cleaning the $_GET superglobal.
|
#26
|
|||
|
|||
![]()
Yup, Opserty is correct. So I don't have to worrie about anything then, right?
- Pc1203 |
#27
|
||||
|
||||
![]()
No, as long as you're not querying anything more.
|
#28
|
|||
|
|||
![]()
Ok, and for future reference here is the source:
Code:
<?php chdir('/path/to/your/forums'); require_once('/path/to/your/forums/global.php'); // Add the usual require stuff here $wanted_userid = $_GET['u']; // The user id of the user you want the data from $userinfo = fetch_userinfo($wanted_userid); $posts = $userinfo['posts']; $username = $userinfo['username']; $joindate = vbdate($vbulletin->options[dateformat], $userinfo['joindate']); ?> <h1> <?php print $username; ?> </h1> Posts: <?php print $posts; ?><br /> <?php print $username; ?> Joined On: <?php print $joindate; ?><p> Custom Profile Field #1: <?php print $userinfo['field4']; ?><br /> - Pc1203 |
#29
|
||||
|
||||
![]() PHP Code:
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|