Icy Phoenix

     
 


This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies. 
Page 1 of 1
 
 
Reply with quote Download Post 
Post FAP SUPPORT - Smileys in comment edit 
 
When I go to edit a comment, I'm not able to include a Smiley by clicking on the Smiley.
If I click on the Smiley button to bring up the box of extra Smileys, I can select on of those.

Can anyone confirm this is happening to them?
 



 
ArtieSend private message  
Back to topPage bottom
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.

Support us
 
Reply with quote Download Post 
Post Re: Smileys In Comment Edit 
 
yes, i can confirm that to be the case on my board too.
 



 
lefty74Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Smileys in comment edit 
 
Thank you lefty74.
I was afraid that was the case.  
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BUG - Smileys In Comment Edit 
 
Oh wow. but the "view all smilies" do work.
 



 
Pete_ZSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BUG - Smileys In Comment Edit 
 
I think I found the error

Code: [Download] [Hide]
  1. #  
  2. #-----[ OPEN ]------------------------------------------  
  3. #  
  4. album_comment_body.tpl  
  5. #  
  6. #-----[ FIND ]------------------------------------------  
  7. #  
  8. //how to add smilies  
  9. function emotions(text)  
  10. {  
  11.     var txtarea = opener.document.commentform.comment;  
  12.     text = ' ' + text + ' ';  
  13.     if (txtarea.createTextRange && txtarea.caretPos)  
  14.     {  
  15.         var caretPos = txtarea.caretPos;  
  16.         caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;  
  17.         txtarea.focus();  
  18.     }  
  19.     else if (txtarea.selectionEnd && (txtarea.selectionStart | txtarea.selectionStart == 0))  
  20.     {  
  21.         mozInsert(txtarea, text, "");  
  22.     }  
  23.     else  
  24.     {  
  25.         txtarea.value  += text;  
  26.         txtarea.focus();  
  27.     }  
  28. }  
  29.  
  30. #  
  31. #-----[ REPLACE WITH ]------------------------------------------  
  32. #  
  33. function emoticon(text)  
  34. {  
  35.     var txtarea = document.commentform.comment;  
  36.     text = ' ' + text + ' ';  
  37.     if (txtarea.createTextRange && txtarea.caretPos)  
  38.     {  
  39.         if (baseHeight != txtarea.caretPos.boundingHeight)  
  40.         {  
  41.             txtarea.focus();  
  42.             storeCaret(txtarea);  
  43.         }  
  44.         var caretPos = txtarea.caretPos;  
  45.         caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;  
  46.         txtarea.focus();  
  47.     }  
  48.     else if ((txtarea.selectionEnd | txtarea.selectionEnd == 0) && (txtarea.selectionStart | txtarea.selectionStart == 0))  
  49.     {  
  50.         mozInsert(txtarea, text, "");  
  51.         return;  
  52.     }  
  53.     else  
  54.     {  
  55.         txtarea.value += text;  
  56.         txtarea.focus();  
  57.     }  
  58. }  
  59.  
  60. #  
  61. #-----[ FIND ]------------------------------------------  
  62. #  
  63. onclick="emotions  
  64. #  
  65. #-----[ REPLACE WITH ]------------------------------------------  
  66. #  
  67. onclick="emoticon  
  68. #  
  69. #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------  
  70. #  
  71. # EoM  
  72.  

 



 
lefty74Send private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: Smileys in comment edit 
 
Thanks for looking into this lefty74.

I found that replacing only

var txtarea = opener.document.commentform.comment;  

with

var txtarea = document.commentform.comment;
  

seems to work.
 



 
ArtieSend private message  
Back to topPage bottom
Reply with quote Download Post 
Post Re: BUG - Smileys in comment edit 
 
Thanks for fixing this as well...
 




____________
Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
 
Mighty GorgonSend private messageSend e-mail to userVisit poster's website  
Back to topPage bottom
This forum is locked: you cannot post, reply or edit topics.  This topic is locked: you cannot edit posts or make replies.  Page 1 of 1
 


Display posts from previous:    

HideWas this topic useful?

Link this topic
URL
BBCode
HTML




 
Permissions List
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events


  

 

  cron