ProForumCo
Home
Register
Help
Homepage


Update_Image
 
Reply
New Topic
fireball21
Moderator
Post Master
      







in Cajun Country...
Offline
Posts: 557
smilies by quick reply for 1.5

well my members really like the smilies by the quick reply and when our forum was upgraded a while back they went missing. so if you could code it to be compatible with v1.5 that would be great

here is the link to my forum if you need it- http://thesimschoiceforum.danethical.com/



ThesimsChoice Forum

11-3-2005 05:58PM GMT
11-3-2005 05:58PM Local
 
Website
   Post 1
fristi
registered
Pro
    







Be prepared!
Offline
Posts: 137


this is the new version of the code smilie the things you need to change and how to use it, is just lik ein the old version smilie

CODE

<SCRIPT LANGUAGE="JavaScript">
<!--
/*
smilies in quick reply
Copywrite 2005 by fristi "Kurt Van Genechten"
Can only be posted at support.danethical.com or a board owned by fristi
Coded for http://danethical.com, leave this message intact
*/


/*
How To use:
["URL TO SMILIE", "CENSOR OF SMILIE"],

add more lines like this for more smilies. If you want to add a manual new line, use this: ["break", ""],
*/


var SmiliesArr = [

["./data/themes/danethical/images/smilies/smile.gif", ":)"],
["./data/themes/danethical/images/smilies/biggrin.gif", ":D"],
["./data/themes/danethical/images/smilies/laugh.gif", ":laugh:"],
["./data/themes/danethical/images/smilies/smilewinkgrin.gif", ";D"],
["./data/themes/danethical/images/smilies/cool.gif", ":cool:"],
["./data/themes/danethical/images/smilies/bigrazz.gif", ":P"],
["./data/themes/danethical/images/smilies/razz.gif", ":p"],
["./data/themes/danethical/images/smilies/wink.gif", ";)"],
["./data/themes/danethical/images/smilies/yes.gif", ":yes:"],
["./data/themes/danethical/images/smilies/no.gif", ":no:"],
["./data/themes/danethical/images/smilies/sad.gif", ":("],
["./data/themes/danethical/images/smilies/cry.gif", ":cry:"],
["./data/themes/danethical/images/smilies/bigeek.gif", ":O"],
["./data/themes/danethical/images/smilies/eek.gif", ":o"],
["./data/themes/danethical/images/smilies/embarrassed.gif", ":emb:"],
["./data/themes/danethical/images/smilies/none.gif", ":|"],
["./data/themes/danethical/images/smilies/roll.gif", ":roll:"],
["./data/themes/danethical/images/smilies/shy.gif", ":shy:"],
["./data/themes/danethical/images/smilies/rolleyes.gif", ":rolleyes:"],
["./data/themes/danethical/images/smilies/uhoh.gif", ":uhoh:"],
["./data/themes/danethical/images/smilies/sleep.gif", ":zzz:"],
["./data/themes/danethical/images/smilies/confused.gif", ":conf::"],
["./data/themes/danethical/images/smilies/mad.gif", ":C"],
["./data/themes/danethical/images/smilies/upset.gif", ":upset:"]

];


if (location.href.indexOf("&topic=") != -1){

var MySm="";

for(i=0;i<SmiliesArr.length;i++){
if(SmiliesArr[i][0]=="break"){
MySm +="</br>";
}else{
MySm += "<a href=javascript:Mycodeinsert(\'" + SmiliesArr[i][1] + "\')><img border=0 src="+ SmiliesArr[i][0] +"></a> ";
}}


if(document.getElementById("quick_reply")){
MyOuterTable = document.getElementById("quick_reply").rows[0].cells[0]
MyTable = MyOuterTable.getElementsByTagName("table")[0];
smrow = MyTable.insertRow(2);
smcell = MyTable.rows[2].insertCell(0)
smcell.innerHTML="<table><tr><td valign=middle><span class=textlarge style=margin:5px;>Smilies:</span></td><td valign=middle><span class=textlarge>"+MySm+"</span></td></tr></table>";
smcell.className="tablecell2";
}}

function Mycodeinsert(Cens){
MyArea = document.getElementsByTagName("textarea");
for(i=0;i<MyArea.length;i++) {
if(MyArea[i].name=="body"){
MyArea[i].value+=Cens;
}}}

// -->
</script>





Last edited by fristi on
11-4-2005 04:22AM GMT
11-4-2005 04:22AM Local


It's comming! Are you ready for it?

LMAO -> clicky


11-4-2005 04:17AM GMT
11-4-2005 04:17AM Local
 
   Post 2
Guest 81


I use your script and it's great, but there're three errors:

CODE

;) -> :wink:
;D -> :swink:
:conf:: -> :conf:


A user found one of them and while testing all I found the other...

9-13-2007 03:06AM GMT
9-13-2007 03:06AM Local
 
   Post 3
 
Reply
New Topic
 
Page: 1

Information
0 online in last 5 min > 0 Bots, 0 Guests, 0 Members, 0 Invisible
Most Members ever online was 18 on 8-16-2005 09:59AM Newest member: hoan hai, Members: 195
Threads: 1002, Replies: 5391, Total: 6393
Time: 4.2306


Copyright 2005 DanEthical.Com defeam v2 All rights reserved.
Get Your Own Free Forum.