Register Members List Search Today's Posts Mark Forums Read

Reply
 
Article Options
Setting smilie alignment in posts
Tungsten
Join Date: Jan 2002
Posts: 100

Nashville, TN
by Tungsten Tungsten is offline 25 Apr 2002

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and replace it with this

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


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!
Views: 1762
Reply With Quote
Comments
  #2  
Old 25 Apr 2002, 13:52
Chen's Avatar
Chen Chen is offline
 
Join Date: Sep 2001
Thanks, it does look better. The problem isn't completely solved (spaces between the lines are not homogenous) but it helps.
__________________
Chen Avinadav
Formerly vBulletin.org Owner and Founder

chen@avinadav.com
Reply With Quote
  #3  
Old 25 Apr 2002, 17:36
Tungsten's Avatar
Tungsten Tungsten is offline
 
Join Date: Jan 2002
Originally posted by FireFly
Thanks, it does look better. The problem isn't completely solved (spaces between the lines are not homogenous) but it helps.
True, true. I haven't really decided what alignment value I prefer for my forums yet. absmiddle is cool so long as all smilies are 15x15 or less pixels, but larger smilies really muck up the "pagination" (for lack of a better word). :ermm:
__________________
:: Tungsten ::
Owner/Admin - Tennesspeed.net
Reply With Quote
  #4  
Old 27 Apr 2002, 05:09
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Real name: Mike
This does make the smilies look much better, thanks
Reply With Quote
Reply

Similar Article
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



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Article Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 05:23.

Layout Options | Width: Wide Color: