The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to display usernames and custom profile fields in external pages?
Hi! This is my fist post (even though I'm not newly registered)... Today and part of yesterday I've been browsing for hours looking if my problem has been posted here before, but without luck.
First of all, let me be a bit more clear. I don't want to display my username while I'm logged in (what $vbulletin->userinfo['username'] does). What I'm looking for is a way to show existing usernames registered in my forum in an external php page, regardless if I'm logged in or not. I'm not sure how to achieve that, but I don't think it should be difficult. Basically what I want to do is a list of all the users that have a certain profile field filled, and those who leave it blank should not be added. I'll appreciate any help! And Happy Holidays! |
#2
|
|||
|
|||
Well, you can do that by a database query, and loop through the results. When you say "external page", what do you mean exactly? If you want to use vbulletin's database connection then you could include global.php in your script, but if your script is in a different directory than the vbulletin code, it gets a little more complicated.
|
#3
|
|||
|
|||
Thank you kh99 (and congratulations for your upcoming 10K post)!
Based in your reply I did a research and I finally found the way to do it by following your recommendation. I wasn't expecting it to be that easy! I appreciate your support. My problem is now solved. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|