//Greymatter Smilies\\
First you need some smilies, you can download these
Open your greymatter folder and create another folder and name it emoticons and upload your smilies into that folder.
Open your gm-library.cgi file
What I would do would be to copy the entire page and open notepad and paste it in so if you mess up you still have your original file.
Now this next part is the hard part, it's finding where you are to place the code LOL
Scroll down (it's about 1/4 of the way down my page) till you see
}
if (($thisentrymainbody =~ /\*\*(.*?)\*\*/) || ($thisentrymainbody =~ /\\\\(.*?)\\\\/) || ($thisentrymainbody =~ /__(.*?)__/)) {
$thisentrymainbody =~ s/\*\*(.*?)\*\*/<B>$1<\/B>/isg;
$thisentrymainbody =~ s/\\\\(.*?)\\\\/<I>$1<\/I>/isg;
$thisentrymainbody =~ s/__(.*?)__/<U>$1<\/U>/isg;
}
if (($thisentrymorebody =~ /\*\*(.*?)\*\*/) || ($thisentrymorebody =~ /\\\\(.*?)\\\\/) || ($thisentrymorebody =~ /__(.*?)__/)) {
$thisentrymorebody =~ s/\*\*(.*?)\*\*/<B>$1<\/B>/isg;
$thisentrymorebody =~ s/\\\\(.*?)\\\\/<I>$1<\/I>/isg;
$thisentrymorebody =~ s/__(.*?)__/<U>$1<\/U>/isg;
}
}
Right after that paste the below code into the page
Now scroll down just a little further till you see
if ($autolinkurls eq "yes") {
# these two lines of code written in part by Neal Coffey (cray@indecisions.org)
$thiscommenttext =~ s#(^|\s)(\w+://)([A-Za-z0-9?=_\-/.%+&'~\#@!\^]+)#$1<A HREF="$2$3">$2$3</A>#isg;
$thiscommenttext =~ s#(^|\s)(www.[A-Za-z0-9?=_\-/.%+&'~\#@!\^]+)#$1<A HREF="http://$2">$2</A>#isg;
# thanks, Neal!
$thiscommenttext =~ s/(\w+\@\w+\.\w+)/<A HREF="mailto:$1">$1<\/A>/isg;
}
Right after that paste the below code into the page
Now save your page
Log into greymatter
yoursite.com/gm/gm.cgi
go to edit templates