The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Easiest Way To Pull Users Info
I would like to pull some of the information that currently exists within a users profile page such as avatar, custom title, join date, dob, post count and online status. What is going to be the easiest way to do this? As far as the images go this will be used on sites with different methods of storing images so I need to respect all the methods (file/database)
Thanks for your help. |
#2
|
|||
|
|||
Depending on where you have the data being saved, it will be different. For instance you can have the avatar and such in the database, or you can have it save it in a folder in the same directory as your forum. In addition to you want to do this for everyone or only certain profiles.
|
#3
|
||||
|
||||
I want to support both methods of retrieving the avatar as this product I am creating with be used on sites that store it in the file system while others store it in the database. It needs to be able to detect where it is being stored.
Basically what I am looking to do is show that information on a new page (mynewpage.php) for a project I am working on. I am trying to figure out how to get this information the most efficient way for my page. |
#4
|
||||
|
||||
fetch_userinfo()
fetch_avatar_from_userinfo() |
#5
|
||||
|
||||
Thanks Dismounted. This is what I am using:
PHP Code:
print_r on $vbulletin->userinfo shows all my other info so that seems to be working correctly. |
#6
|
||||
|
||||
Look at what fetch_avatar_from_userinfo() does.
|
#7
|
||||
|
||||
Got it figured out. Thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|