View Full Version : User Info Block
Skivey
12-16-2011, 02:23 PM
I have been looking for 2 days now and I am now completely at a loss...
Im sure I had this before with the user info including messages and the user avatar, but I cannot find it anywhere.
www.eurodonks.com/community currently I have just username and last post (copied from another thread) but would like to include the above things.
Im not a genius at programming... but i am capable of doing various php stuff
Any help would be greatly appreciated
Matt
Lynne
12-16-2011, 05:22 PM
I have no idea what you are talking about. Can you show us an image of what you are looking for?
Are you talking about this widget:
Hello Unregistered
Your last post was:
That is from some example code I posted in an article - https://www.vbulletin.com/forum/showthread.php/371690-Creating-an-HTML-or-PHP-Widget
Skivey
12-17-2011, 03:46 PM
Hi Lynne,
Ya thats the block... I stole the code from one of the posts I found that you made before.
Within this block I want the avatar of the user, and basically most of whats in teh postbit legacy. and also something on the lines of You have No new messages, or you have 1 unred message ?
Im pretty sure I have used something like this before on vb3
Sorry if im being vaigue :(
Matt
Lynne
12-17-2011, 06:20 PM
I didn't write all that stuff in my example, but I'm sure you could write a query to get all the information and then post in into the block. But, that was never part of my example.
Skivey
12-18-2011, 01:16 PM
Just had the custom made skin put on my site!
And ya, im pretty sure there is.. just i really have no idea! :(
Thanks for your replies!
Matt
Skivey
12-20-2011, 09:41 AM
im trying to work it out, or even write the code myself but geting no luck.
I tried to use my initiative here, but as I thought it doesent work :(
$my_output = "Hello ". vB::$vbulletin->userinfo['username'];
$my_output = vB::$vbulletin->userinfo['useravatar'];
all i wnna do is show the user avatar under the username
Thanks for any help
Matt
Lynne
12-20-2011, 06:55 PM
I don't believe there is a default variable called "useravatar". You would need to write the code to define it first before using it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.