Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - MOD:Randomize smileys for each post
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MOD:Randomize smileys for each post

 Post Reply Post Reply
Author
gölge View Drop Down
Groupie
Groupie


Joined: 16 April 2005
Location: Turkey
Status: Offline
Points: 182
Post Options Post Options   Thanks (0) Thanks(0)   Quote gölge Quote  Post ReplyReply Direct Link To This Post Topic: MOD:Randomize smileys for each post
    Posted: 23 April 2006 at 4:59pm
mod for random smileys for each message...
 
owerrite message_form_inc.asp
 
 
 
if you want to change code manually here is the code:
 
delete this :
'If there is a remainder add 1 to the number of loops
 If UBound(saryEmoticons) MOD 2 > 0 Then intNumberOfOuterLoops = intNumberOfOuterLoops + 1
 
 'Loop throgh th list of emoticons
 For intLoop = 1 to intNumberOfOuterLoops
 

         Response.Write("<tr>")
 
  'Loop throgh th list of emoticons
  For intInnerLoop = 1 to 3
 
   'If there is nothing to display show an empty box
   If intIndexPosition > UBound(saryEmoticons) Then
    Response.Write(vbCrLf & "    <td>&nbsp;</td>")
 
   'Else show the emoticon
   Else
    If RTEenabled() <> "false" AND blnRTEEditor AND blnWYSIWYGEditor Then
     Response.Write(vbCrLf & "    <td><img src=""" & saryEmoticons(intIndexPosition,3) & """ border=""0"" title=""" & saryEmoticons(intIndexPosition,1) & """ align=""absmiddle"" OnClick=""AddEmoticon(this)"" id=""" & saryEmoticons(intIndexPosition,3) & """ style=""cursor: pointer;""></td>")
    Else
     Response.Write(vbCrLf & "    <td><img src=""" & saryEmoticons(intIndexPosition,3) & """ border=""0"" title=""" & saryEmoticons(intIndexPosition,1) & """ align=""absmiddle"" OnClick=""AddEmoticon('" & saryEmoticons(intIndexPosition,2) & "')"" id=""" & saryEmoticons(intIndexPosition,3) & """ style=""cursor: pointer;""></td>")
                 End If
                End If
 
               'Minus one form the index position
               intIndexPosition = intIndexPosition + 1
  Next
 
  Response.Write("</tr>")
 
 Next
 
copy and paste this:
 
'If there is a remainder add 1 to the number of loops
 If UBound(saryEmoticons) MOD 2 > 0 Then intNumberOfOuterLoops = intNumberOfOuterLoops + 1
               intIndexPosition=int(rnd*50)      
 'Loop throgh th list of emoticons
 For intLoop = 1 to intNumberOfOuterLoops
          If intIndexPosition > UBound(saryEmoticons) or intIndexPosition = 0 Then intIndexPosition=1
 
         Response.Write("<tr>")
 
  'Loop throgh th list of emoticons
  For intInnerLoop = 1 to 3
    If RTEenabled() <> "false" AND blnRTEEditor AND blnWYSIWYGEditor Then
     Response.Write(vbCrLf & "    <td><img src=""" & saryEmoticons(intIndexPosition,3) & """ border=""0""  title=""" & saryEmoticons(intIndexPosition,1) & """ align=""absmiddle"" OnClick=""AddEmoticon(this)"" id=""" & saryEmoticons(intIndexPosition,3) & """ style=""cursor: pointer;""></td>")
    Else
     Response.Write(vbCrLf & "    <td><img src=""" & saryEmoticons(intIndexPosition,3) & """ border=""0"" title=""" & saryEmoticons(intIndexPosition,1) & """ align=""absmiddle"" OnClick=""AddEmoticon('" & saryEmoticons(intIndexPosition,2) & "')"" id=""" & saryEmoticons(intIndexPosition,3) & """ style=""cursor: pointer;""></td>")
             End If
    
      intIndexPosition = intIndexPosition + 1
              
  Next
 
  Response.Write("</tr>")
 
 Next
 
 
 
 
Back to Top
graper View Drop Down
Groupie
Groupie


Joined: 07 April 2005
Location: China
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote graper Quote  Post ReplyReply Direct Link To This Post Posted: 24 April 2006 at 2:20am
GOOD
WWF论坛讨论QQ群:2652358
WWF论坛讨论:Http://Www.CNWWF.Com/Forum/
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.