Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Vertically centered smilies
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Vertically centered smilies

 Post Reply Post Reply
Author
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post Topic: Vertically centered smilies
    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.

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 23 October 2003 at 4:57pm
What about align="absmiddle"
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.



Edited by theSCIENTIST
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.



Edited by theSCIENTIST
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
theSCIENTIST View Drop Down
Senior Member
Senior Member


Joined: 31 July 2003
Location: United Kingdom
Status: Offline
Points: 440
Post Options Post Options   Thanks (0) Thanks(0)   Quote theSCIENTIST Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.