The Arcive of vBulletin Modifications Site. |
|
|
Customizing VSa - Chatbox with user avatars
How to display user avatars. We use the file system to store our avatars, so could not use the image.php?u=userid method. To show avatars open the plugin titled "VSa - ChatBox - MN" and locate the line: PHP Code:
PHP Code:
|
|
#2
|
||||
|
||||
|
[S]Hello all,
I am using vBulletin 4.2.1 on my local server as my dev site, and once done, I will go live with this on the forum I help administrate which runs vBulletin 4.2.2 patch level 2. I am doing some custom hacks to Valter's great chatbox, and I am stumped on how to display user avatars. We use the file system to store our avatars, so I cannot use the image.php?u=userid method. So, I have written a plugin, hook location is parse_templates, with the plugin PHP code: PHP Code:
I found the solution to my problem! ![]() Instead of creating a new plugin, I hacked an existing one. I opened the plugin titled "VSa - ChatBox - MN" and located the line: PHP Code:
PHP Code:
|
|
#5
|
|||
|
|||
|
thanks, great addon!
|
|
#6
|
||||
|
||||
|
Moved to articles
. Also made second post the first post then pasted old first post code into second with strike-through - for reference only .
|
| Благодарность от: | ||
| MarkFL | ||
|
#7
|
|||
|
|||
|
This is an awesome article, thank you!
In the img tag I set height="20" width="20" and it looks great with 14px text height ![]() And if anyone was wondering where to place {vb:raw user_avatar} inside the vsa_chatbox_bit template, find: PHP Code:
PHP Code:
|
| 2 благодарности(ей) от: | ||
| MarkFL, TheLastSuperman | ||
|
#8
|
||||
|
||||
|
I kind of went wild when I was learning javascript and made quite a few changes to the chat:
|
|
#9
|
|||
|
|||
|
|
|
#10
|
||||
|
||||
|
Thank you! The style was done by a hired designer, and we have added a lot of bells and whistles.
|
![]() |
|
|