![]() |
|
Article Options |
Customizing VSa - Chatbox with user avatars
MarkFL
Join Date: Feb 2014
Posts: 3,853
I'm a relative newcomer to vBulletin administration, but I am enjoying every second of it, thanks in large part to the community here at vBorg. St. Augustine, FL
by
![]() Rating:
![]() 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:
And after that, inserted the code:
Save the plugin, and then in the template "vsa_chatbox_bit" you may use "{vb:raw user_avatar}" to display the user avatars. ![]() The following members like this post: TheLastSuperman, nikosb, BliNeR-KeY, rodriiverduguez, bahisideal
Last edited by TheLastSuperman; 02 May 2016 at 21:54.. |
||||||||
Views: 3891
|
Comments |
#2
|
||||||||||||
|
||||||||||||
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:
Now, what I get is my avatar in every posted message, instead of the avatars of the users who actually posted the various messages. Can anyone tell me what I am missing? 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:
And after that, inserted the code:
Save the plugin, and then in the template "vsa_chatbox_bit" you may use "{vb:raw user_avatar}" to display the user avatars. ![]() Last edited by TheLastSuperman; 02 May 2016 at 21:55. |
#3
|
||||
|
||||
Thank you for posting the solution to your problem. Hopefully it will help someone else who has the same issue.
__________________
Former vBulletin.org Staff Member
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before. W3Schools - Online vBulletin Manual If I post some CSS and don't say where it goes, put it in the additional.css template. I will NOT help via PM (you will be directed to post in the forums for help.) The following members like this post: MarkFL
|
#4
|
|||
|
|||
Thank you for this! I was also trying to code this.
The following members like this post: MarkFL
|
#5
|
||||
|
||||
thanks, great addon!
__________________
WBR`s M.C. No members have liked this post.
|
#6
|
||||
|
||||
Moved to articles
![]() ![]()
__________________
Daddy Does Dios and Figs! https://www.linkedin.com/in/thelastsuperman Search - Use the search feature to find similar issues/answers. Information - Include screenshots, copy/pasted error codes, url etc. Fixed - Please return to your thread/post and let us know how it was fixed! Thanks - For participating! Click the "Like" ♥ on a post if someone helped you! The following members like this post: 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:
And replace with:
The following members like this post: MarkFL, TheLastSuperman
|
#8
|
||||
|
||||
I kind of went wild when I was learning javascript and made quite a few changes to the chat:
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#9
|
|||
|
|||
No members have liked this post.
|
#10
|
||||
|
||||
Thank you! The style was done by a hired designer, and we have added a lot of bells and whistles.
![]()
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#11
|
||||
|
||||
i use
http://www.vbulletin.org/forum/showthread.php?t=268618 i cant set 20x20
maybe you have code only for chatbox ? No members have liked this post.
|
#12
|
||||
|
||||
This article is about adding avatars to "VSa - Chatbox" not to the forumdisplay or other areas.
![]()
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#13
|
||||
|
||||
pls check is so big 80x80
http://prntscr.com/b6ezvd i just add
No members have liked this post.
|
#14
|
||||
|
||||
Change this line:
to suit your needs. ![]()
__________________
Former vBulletin.org Staff Member ![]() Support for my products (as well as updates/new product publishing) has been moved to MHB - vBulletin Products and TAZ - Add-ons No members have liked this post.
|
#15
|
||||||||
|
||||||||
thank you so much fixed
see
The following members like this post: MarkFL
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 01:06.