Author Topic: Emoticons and Reply in Comments!  (Read 56986 times)

0 Members and 1 Guest are viewing this topic.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Emoticons and Reply in Comments!
« Reply #30 on: May 02, 2003, 12:54:30 PM »
Quote from: itme
thank's u give me the code but i can't text if use smile i don't know why , and i want code aim in comment and online offline too can u help me  ????
sorry, I dont understand...code for what?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sheep707

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • http://www.leeger.net
... and in description?
« Reply #31 on: May 07, 2003, 01:44:27 PM »
@Vano:
thank's for this code!!!
Is it possible to enable emoticons in image description?
Wer einen Rechtschreibefeher findet, kann ihn behalten!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: ... and in description?
« Reply #32 on: May 07, 2003, 01:47:30 PM »
Quote from: Sheep707
Is it possible to enable emoticons in image description?

sure, open /includes/functions.php
find:
Code: [Select]
 $description = (!empty($image_row['image_description'])) ? $image_row['image_description'] : REPLACE_EMPTY;
replace with:
Code: [Select]
 $description = (!empty($image_row['image_description'])) ? format_text($image_row['image_description'], 1) : REPLACE_EMPTY;
this will also add ability use BBCode in the description.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline HelpMeNow

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Emoticons and Reply in Comments!
« Reply #33 on: May 07, 2003, 08:27:47 PM »
V@no,
is the WYSIWYG you have in your own site (Under the emotions icons) for the comments area, a hack from here? I tried to search for it but didn't find it. It's just so cool.

p.s. if this doesn't fit here, plz forgive me.

Offline PuCK

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • http://www.acidarts.net
Emoticons and Reply in Comments!
« Reply #34 on: May 08, 2003, 12:48:45 AM »
Quote from: HelpMeNow
V@no,
is the WYSIWYG you have in your own site (Under the emotions icons) for the comments area, a hack from here? I tried to search for it but didn't find it. It's just so cool.

p.s. if this doesn't fit here, plz forgive me.


Just below this topic :P

http://www.4homepages.de/forum/viewtopic.php?t=4745

Offline wolfgang2025

  • Pre-Newbie
  • Posts: 3
    • View Profile
That looks really good
« Reply #35 on: May 15, 2003, 02:32:47 AM »
Looks great but is there a complete package with all the modified files that are needed to make it work  :?:

Offline Xwoman

  • Newbie
  • *
  • Posts: 15
    • View Profile
Emoticons and Reply in Comments!
« Reply #36 on: June 10, 2003, 03:56:59 PM »
hi! how can i use this in comment_form.html :

Quote
<!-- BEGIN SMILIES -->
<br>
<script language="JavaScript">
function PopUp(aaa,zz,xx,scrb){

var wsss = eval (screen.width/2 - zz/2);
var hsss = eval(screen.height/2 - xx/2);

helpWin = window.open(aaa,"imageWin","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scrb+",resizable=0,width="+ zz +",height="+ xx +",left="+ wsss +",top="+ hsss +"");

}
</script>
<a href="JavaScript:paste_strinL(':)',0)"><img src="./img/smilies/grin.gif" border=0></a>
<a href="JavaScript:paste_strinL(';)',0)"><img src="./img/smilies/wink.gif" border=0></a>
<a href="JavaScript:paste_strinL(':up:',0)"><img src="./img/smilies/up.gif" border=0></a>
<a href="JavaScript:paste_strinL(':down:',0)"><img src="./img/smilies/down.gif" border=0></a>
<a href="JavaScript:paste_strinL(':biglol:',0)"><img src="./img/smilies/biglol.gif" border=0></a>
<a href="JavaScript:paste_strinL(':confused:',0)"><img src="./img/smilies/confused.gif" border=0></a>
<a href="JavaScript:paste_strinL(':cool:',0)"><img src="./img/smilies/cool.gif" border=0></a>
<a href="JavaScript:paste_strinL(':mad:',0)"><img src="./img/smilies/mad.gif" border=0></a>
<a href="JavaScript:paste_strinL(':sad:',0)"><img src="./img/smilies/sad.gif" border=0></a>
<a href="JavaScript:paste_strinL(':shame:',0)"><img src="./img/smilies/shame.gif" border=0></a>
<a href="JavaScript:paste_strinL(':smirk:',0)"><img src="./img/smilies/smirk.gif" border=0></a>
<a href="JavaScript:paste_strinL(':tongue:',0)"><img src="./img/smilies/tongue.gif" border=0></a>
<small><a href="javascript:PopUp('hack_smilies.php?p=display',150,400,1)">...</a></small>

<!-- END SMILIES -->

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Emoticons and Reply in Comments!
« Reply #37 on: June 10, 2003, 04:13:09 PM »
try this:
http://4homepages.de/forum/viewtopic.php?t=4745

P.S. u might need read through all replys to get the compleat "package"
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Xwoman

  • Newbie
  • *
  • Posts: 15
    • View Profile
Emoticons and Reply in Comments!
« Reply #38 on: June 10, 2003, 06:13:01 PM »
oki :-) thx  i have  change the


 //--------------------------
//--------Smiles------------
//--------------------------
function smilies($text,$enablesmilies = 1) ..........

Now i can click my smileys .  i missing only 1 thing .....  i can´t see the  ALL smiles button ....  :oops:

Offline brandkanne

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
    • http://www.jan-hendrik.com
Emoticons and Reply in Comments!
« Reply #39 on: June 15, 2003, 08:47:13 PM »
I do not have anything against it, if you try all possible out on my side, but please announce you on not with TESTACCOUNT's to test purposes... Thank you for the understanding.

Offline HaKkE

  • Pre-Newbie
  • Posts: 9
    • View Profile
    • FH41
Re: Emoticons and Reply in Comments!
« Reply #40 on: June 16, 2005, 07:00:39 PM »
Sorry aber so richtig bekomme ich es immer noch nicht mit den Smilies hin. Habe alles so gemacht wie es V@no beschrieben hat. Habe z.B. ein smilie das heißt arrow. Habe in den arry also geschrieben: "arrow" => "arrow". Damit müßte er doch dann das arrow.gif smilie einfügen. Er zeigt es zwar an, aber wenn ich drauf klicke, dann passiert nichts. Der jeweilige Code dafür sieht so aus:

<a href="javascript:setsmile('arrow')"><img border="0" src="{template_url}/smilies/arrow.gif" width="15" height="15"></a>

Was ist daran falsch?

thx
HaKkE
Nimm das Leben nicht zu ernst, du kommst sowieso nicht lebend raus

Offline shilor

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: Emoticons and Reply in Comments!
« Reply #41 on: January 31, 2009, 11:43:11 PM »
Great job! Thanks a lot.
I wish it would be a list of smileys next to the comment box and the users would easily choose a smiley from the list instead of writing the codes.
Isn't it possible?

Offline diehard

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Emoticons and Reply in Comments!
« Reply #42 on: February 24, 2010, 01:12:31 PM »
Here is my Skype emoticons  :wink:

Code: [Select]
//--------------------------
//--------Smiles------------
//--------------------------
function smilies($text,$enablesmilies = 1) {
  global $smileyfromcache, $smileytocache;
  $imagesdir = TEMPLATE_PATH."/smiles";
  if(gettype($smileyfromcache) != "array") {
$smilesfrom = array(
      ":)" => "smile",
";)" => "wink",
":(" => "sad",
":D" => "laugh",
"8-)" => "calm",
":o" => "surprised",
                                   ";(" => "sob",
"(sweat)" => "sweat",
":|" => "silence",
":*" => "kiss",
":P" => "tonque",
":$" => "blush",
"(blush)" => "blush",
":^)" => "wondering",
"|-)" => "sleepy",
"|-(" => "dull",
"|(" => "dull",
"(inlove)" => "inlove",
"]:)" => "evil-grin",
"(talk)" => "talking",
"(yawn)" => "yawn",
"(puke)" => "puke",
"(doh)" => "doh",
":@" => "angry",
"(wasntme)" => "wasntme",
"(party)" => "party",
":S" => "worried",
"(mm)" => "mm",
"8-|" => "nerdy",
":x" => "lips",
":X" => "lips",
"(wave)" => "hi",
"(devil)" => "devil",
"(angel)" => "angel",
"(makeup)" => "makeup",
"(chuckle)" => "chuckle",
"(rofl)" => "rofl",
"(whew)" => "whew",
"(happy)" => "happy",
"(smirk)" => "smirk",
"(nod)" => "nod",
"(shake)" => "shake",
"(punch)" => "punch",
"(emo)" => "emo",
"(y)" => "y",
"(n)" => "n",
"(handshake)" => "handshake",
"(h)" => "heart",
"(u)" => "brocken",
"(e)" => "mail",
"(F)" => "flower",
"(rain)" => "rain",
"(sun)" => "sun",
"(o)" => "time",
"(music)" => "music",
"(~)" => "movie",
"(mp)" => "phone",
"(coffee)" => "coffee",
"(pi)" => "pizza",
                                   "(pizza)" => "pizza",
"(l)" => "heart",
"(L)" => "heart",
"(muscle)" => "muscle",
"(flex)" => "muscle",
"(cash)" => "cash",
"(^)" => "cake",
"(beer)" => "beer",
"(d)" => "drink",
"(dance)" => "dance",
"(ninja)" => "ninja",
"(*)" => "star",
"(bandit)" => "bandit",
"(bug)" => "bug",
"(drunk)" => "drunk",
"(evilgrin)" => "evilgrin",
"(finger)" => "finger",
"(flagbg)" => "flagbg",
"(fubar)" => "fubar",
"(hi)" => "hi",
"(call)" => "call",
"(envy)" => "envy",
"(wait)" => "wait",
"(clap)" => "clap",
"(think)" => "think",
"(hug)" => "bear",
"(skype)" => "skype",
"(ss)" => "skype",
"(bow)" => "bow",
"(headbang)" => "headbang",
"(mooning)" => "mooning",
"(poolparty)" => "poolparty",
"(rock)" => "rock",
"(smoke)" => "smoke",
"(tmi)" => "tmi",
"(toivo)" => "toivo",
"(yawn1)" => "yawn1",
"(swear)" => "swear"
     );
foreach ($smilesfrom as $key => $val) {
  $smileyfromcache[] ='/(((>[^<]*)|(^[^<]*))([\s\n\r]|^|<br( \/)?[>]))('.str_replace('|','\|', quotemeta(str_replace("<", "&lt;", str_replace(">", "&gt;", str_replace("\/", "\\\/", $key))))).')/s';
  $smileytocache[] = "\\1<img src=\"$imagesdir/$val.gif\" alt=\"\" border=\"0\">";
}
  }
  if ($enablesmilies) {
$text = parsesmilies($text);
  }
  return $text;
}
function parsesmilies($text) {
  global $smileyfromcache, $smileytocache;
  $oldtext = "";
  while($oldtext != $text) {
$oldtext = $text;
$text = preg_replace($smileyfromcache, $smileytocache, $text);
  }
  return $text;
}
//------End Smiles-------


 and emoticons archive ....

Offline azndeb888

  • Newbie
  • *
  • Posts: 10
  • great image platform!
    • View Profile
    • led grow lights
Re: Emoticons and Reply in Comments!
« Reply #43 on: February 26, 2010, 07:30:33 AM »
that's an impressive list of emoticons!  need to find one with $$ eyes...haha