Print Page | Close Window

Vertically centered smilies

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=6654
Printed Date: 03 April 2026 at 7:09pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Vertically centered smilies
Posted By: theSCIENTIST
Subject: Vertically centered smilies
Date Posted: 23 October 2003 at 10:57am

This one is a bit too ichy for me, and I have tried everything.

When you insert a smilie () see, everything on that line goes down a bit, because the smilie is slighly higher in size and because it's not vertically centered, something we could do by inserting (style="vertical-align:middle") along with the smilie image tags, but I have been looking in the code and have modified it all, and it still does not adds my style to the smilie <img src...> tags.

Can any of you point me to the correct file where I can change this?

Thanks.




Replies:
Posted By: WebWiz-Bruce
Date Posted: 23 October 2003 at 4:57pm
What about align="absmiddle"

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: theSCIENTIST
Date Posted: 24 October 2003 at 12:38am

Hi boRg, the point is not what we put in there, but where is it.

What the forums write to the database is (<img border="0" src= "smileys/smiley2.gif">) to display a smilie, I just want to know where is that sentence so I can make the forums add (<img border="0" src= "smileys/smiley2.gif" style="vertical-align:middle">) instead, so the smile is vertically centered with the line it's inserted.

I have looked all over the forum files, and have found several instances of that sentence, so I added the style to all of them and still the smilies do not get centered, I have also looked in the database, and the style is not being applied at all, I must be missing something.

Help please.



Posted By: WebWiz-Bruce
Date Posted: 24 October 2003 at 1:40am
I don't think the RTE implementations allow you to add the align value.

What you will need to do is use the replace method once the post has been submitted to look for intences of smilies in the post and add the style or align property to them.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: theSCIENTIST
Date Posted: 24 October 2003 at 2:40am

That's exactly what I've done, I have followed all the code steps untill database insertion and have added the ALIGN tag to all of them just in case, but in the database it still don't have the align, there's quite a few replace()'s that goes on behind the scenes, and I have modded them all, but why is it that it doesn't add a simple ALIGN to the IMG tag?

That's why I need to know where exactly is it I should modify, just thought the forum developers could shed some light on this.

Alternatively if any other person feels like persuing this, I realy appreciatte it, it shouldn't be difficult, but I was surprised how it still refuses to work.

Thanks.



Posted By: WebWiz-Bruce
Date Posted: 24 October 2003 at 2:43am
I would say that adding it around line 66 of the file functions_format_post.asp should do it.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: theSCIENTIST
Date Posted: 24 October 2003 at 6:02am

I forgot to say, I'm still using v6.34 so there's no functions_format_post.asp, there's a format_post.asp and that I have modified of no avail.

If I go to the database and add the ALIGN tag manually it works beatifully, I just don't know where is the line of code that adds the IMG tag itself.

Can anyone dwelve into v6.34 and have a look?

Thanks.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net