![]() |
|
Article Options |
Setting smilie alignment in posts
by
![]() Something that had been bugging me for a while now was the fact that VBulletin didn't declare an alignment option for the "img src" tags used for smilies inserted into posts. Why did this bug me? Because some smilies cause the paragraph line spacing in a post to be fairly skewed, especially if the smilie is larger than 15x15 pixels. I tend to think that it looks better if the alignment is set to "absmiddle" in the IMG tag. To change the default behavior, you need only edit one file and make one change. Open the functions.php file in your VBulletin admin directory and do the following... find this in the admin\functions.php file
and replace it with this
Note the addition of the align=\"absmiddle\" in the img src tag. This will force the smilie to be aligned so that it's center is equal to the center of the line of text that surrounds it. You could change the alignment value to any of the other viable HTML 4.0 options for the "img" tag. For more information on the alignment options available, visit this page: http://www.htmlhelp.com/reference/ht...ecial/img.html Hope this helps someone else! No members have liked this post.
|
||||||||
Views: 1944
|
Comments |
#2
|
||||
|
||||
Thanks, it does look better. The problem isn't completely solved (spaces between the lines are not homogenous) but it helps.
![]() No members have liked this post.
|
#3
|
||||
|
||||
No members have liked this post.
|
#4
|
||||
|
||||
This does make the smilies look much better, thanks
![]()
__________________
My OpenSource (as in do with them what you want no need to ask for permission) Scripts: 7/25/04 » Article Bot 1.1, vB3 Member Album 2.0, BB Code Functions, Advanced Search w/Member Conditions, Eggdrop IRC Manager, IRC Manager for mIRC, Existing Topics Check http://www.mozilla.org/products/fire...efox_80x15.png No members have liked this post.
|
![]() |
![]() |
||||
Article | Author | Type | Replies | Last Post |
Smilie Info: Smilie Usage in Posts | calorie | vBulletin 3.6 Add-ons | 22 | 16 Jul 2009 18:16 |
[HTL] & [Normal] Setting Varname Next to the Setting Title. | Link14716 | vBulletin 3.0 Full Releases | 6 | 15 Jan 2004 15:26 |
«
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 20:11.