Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem/Question concerning the emoticons
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem/Question concerning the emoticons

 Post Reply Post Reply
Author
TwEeD View Drop Down
Newbie
Newbie


Joined: 14 May 2003
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote TwEeD Quote  Post ReplyReply Direct Link To This Post Topic: Problem/Question concerning the emoticons
    Posted: 14 May 2003 at 9:46am

Oi!

Well i've been modifyin' the emoticon include so that :)  could be used instead of ... Now all is good apart from the fact that there must be some case conversion somewhere which I can't find (really searched hard ... functions include and such too) which breaks the emoticon codes when for example :dance: is used the ':D' is used although the :dance: is in lowercase :(

Now is there somewhere I can find that piece of code cuz it is driving me insane at the moment

Any help would be greatly appreciated :)

thcx in advance!

 



Edited by TwEeD
Back to Top
TwEeD View Drop Down
Newbie
Newbie


Joined: 14 May 2003
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote TwEeD Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2003 at 1:35am
forgot to tell which version I use ... itz v7.0
Back to Top
TwEeD View Drop Down
Newbie
Newbie


Joined: 14 May 2003
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote TwEeD Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2003 at 6:06am
anyone? plz
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: 16 May 2003 at 6:10am
I wouldn't know how to help as I don't know what you are on about.
Back to Top
TwEeD View Drop Down
Newbie
Newbie


Joined: 14 May 2003
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote TwEeD Quote  Post ReplyReply Direct Link To This Post Posted: 16 May 2003 at 6:39am

well I changed the emoticoncodes to codes without the brackets so f.ex. '[ :) ]' is changed to ':)' and '[:D]' is changed to ':D'

now I got for example the emoticoncode ':dance:' which conflicts with the ':D' code although the 'd' in :dance: is lowercase and nog uppercase like the 'd' in ':D'

So somewhere there must be a case conversion which makes it possible that ':d' & ':D' are equal but I can't find it anywhere

hope that clarifies my problem a bit

:)

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: 16 May 2003 at 8:24am

The convertion is done in the functions_format_post.asp file here:-

'If emoticons are on then change the emotion symbols for the path to the relative smiley icon
 If blnEmoticons = True Then
  'Loop through the emoticons array
  For intLoop = 1 to UBound(saryEmoticons)
   strMessage = Replace(strMessage, saryEmoticons(intLoop,2), "<img border=""0"" src=""" & saryEmoticons(intLoop,3) & """>", 1, -1, 1)
  Next
 End If

It uses the ASP replace function but is set to not be case sesitive, if you wish it to be case sesitive then you must change it to a binary compare instead of a text compare.

Back to Top
TwEeD View Drop Down
Newbie
Newbie


Joined: 14 May 2003
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote TwEeD Quote  Post ReplyReply Direct Link To This Post Posted: 17 May 2003 at 2:46pm
thcx a lot itz fixed now !! :)
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.