The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Create a Seperate Page for Custom Profile Fields
I have searched around and have been unable to find an answer to my question. Forgive me if I missed it somewhere.
How would I go about creating a page that displays only the username and custom profile field of all the users on my site? I only want the User to show up on the list if he has that profile field filled out. Basically, what I want to do is have a page where users can go to see all the other members profile field. For example: If I create a field for Xbox Live Gamertags and users fill it out, I want other members to see it on a seperate page called Xbox Gamertags. Is this possible? Has this been done? Any help would be greatly appreciated. Thanks |
#2
|
||||
|
||||
I know it would be similar to memberlist, I'm just not sure how to make users only show if they have that profile feild filled out.
|
#3
|
||||
|
||||
This is what I have as far as the php file is concerned. It's wrong, but it's a start - I think. I also have made two templates which I can post if they would help.
PHP Code:
Please help! Thanks. edited - made some changes but not fixed |
#4
|
||||
|
||||
I'd advise to move this part near the top:
Code:
// pre-cache templates used by all actions $globaltemplates = array( 'GTLIST' 'GT_listbit ); // pre-cache templates used by specific actions $actiontemplates = array(); // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); Then, you'll also need to move this: Code:
while($row=mysql_fetch_object($GT)) { $who = $row->username; $gtname = $row->field5; eval('$gtbit = "' . fetch_template('GT_listbit') . '";'); } eval('print_output("' . fetch_template('GTLIST') . '");'); And lastly, it won't help doing two queries if they both have the same varname, as the second will overwrite the first. You might try to just use on query. I'll post an edited version if I have time later on, gotta go now |
#5
|
||||
|
||||
Thanks for your help. I think I am slowly beginning to understand (or, at least, I'm trying to understand).
|
#6
|
||||
|
||||
I haven't checked the SQL syntax, but here's your code, cleaned up a bit more:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|