4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started by: tafferKakao on March 12, 2005, 12:55:49 PM

Title: [Mod] bbcode Smileys
Post by: tafferKakao on March 12, 2005, 12:55:49 PM
i created a little smilie mod, based on the phpbb standard smilies. a very little and easy to install mod ... but i hope you'll like and use it anyway ;)
for this mod i used 4images 1.7.1 ... but i don't think there would be problems with older versions!
-------------------------
ich hab einen kleinen smilie mod, auf basis der phpbb standard smilies erstellt. ein sehr kleiner und einfach zu installierender mod ... aber ich hoffe ihr werdet es trotzdem mögen ;)
für diesen mod habe ich 4 images 1.7.1 benutzt ... ich glaube aber nicht, das es probleme mit älteren versionen geben sollte!

attention! version 1.1 now available!
you should remove the changes of the old version in the following files, befor you "install" the new version! (just search for "Smilie Mod")
-------------------------
achtung! version 1.1 ab nun verfügbar!
vor der installation dieser version sollten die änderungen der alten version aus der folgenden dateien wieder entfernt werden! (einfach nach "Smilie Mod" suchen)


includes/functions.php



the following files will be changed (if you want to, you can make an backup of everything ... i don't think it's necessary)
-------------------------
folgende dateien werden verändert (wenn ihr wollt, könnt ihr natürlich backups machen ... ich halte es aber nicht für nötig)


includes/functions.php
templates/[your template]/styles.css
templates/[your template]/bbcode.html


the following files must be created
-------------------------
folgende dateien müssen erstellt werden

smilies ;)


step 1

create the following folder
-------------------------
erstellt folgenden ordner

templates/[your template]/smilies

download the smilies (http://pixxor.de/smilies.zip) (mirror (http://www.4homepages.de/forum/index.php?action=dlattach;topic=6646.0;id=625)) and extract/save them in this folder
-------------------------
smilies herunterladen (http://pixxor.de/smilies.zip) und in diesem ordner entpacken/speichern


step 2

open file:
-------------------------
datei öffnen:

includes/functions.php

step 2.1

find following code
-------------------------
folgenden code finden

Code: [Select]
function get_user_info($user_id = 0) {
add before
-------------------------
davor hinzufügen

Code: [Select]
// Smilie Mod
function show_smilies($text) {
    $search_smilie  = array(":)",":-)",":smile:",    ":D",":-D",":grin:",           ":(",":-(",":sad:", "8o","8-o",":shock",":eek:", ":?:",      ":?",":-?",":???:",               "8)","8-)",":cool:",  ":x",":-x",":mad:", ":p",":P",":-p",":-P",":razz:",     ":*",":-*",":oops:",           ":'(",":'-(",":cry:", ">:(",">:-(",":evil:",  ":roll:",   ";)",";-)",":wink:",  ":|",":-|",":neutral:",        ":o",":-o",              ">:)",">:-)",":twisted:",      ":lol:","LOL", ":!:",     ":idea:", ":arrow:", ":mrgreen:");
    $replace_smilie = array("smile","smile","smile", "biggrin","biggrin","biggrin", "sad","sad","sad",  "eek","eek","eek","eek",     "question", "confused","confused","confused", "cool","cool","cool", "mad","mad","mad",  "razz","razz","razz","razz","razz", "redface","redface","redface", "cry","cry","cry",    "evil", "evil", "evil", "rolleyes", "wink","wink","wink", "neutral","neutral","neutral", "surprised","surprised", "twisted","twisted","twisted", "lol","lol",     "exclaim", "idea",   "arrow",   "mrgreen");
  for($smile=0;$smile<count($search_smilie);$smile++){
    $text = str_replace($search_smilie[$smile],"<img src=\"".TEMPLATE_PATH."/smilies/icon_".$replace_smilie[$smile].".gif\">",$text);
  }

  return $text;
}
// End Smilie Mod


step 2.2

find following code
-------------------------
folgenden code finden

Code: [Select]
  $text = str_replace("\\'", "'", $text);
add after
-------------------------
after hinzufügen

Code: [Select]

  // Smilie Mod
  $text = show_smilies($text);
  // End Smilie Mod




step 3

open file:
-------------------------
datei öffnen:

templates/[your template]/styles.css

find last
-------------------------
letzes vorkommen finden

Code: [Select]
}
add after
-------------------------
danach hinzufügen

Code: [Select]

<!-- Smilie Mod -->
.smilie {
  background-color: transparent;
  background-repeat: no-repeat;
  border: none; cursor:hand;
}
<!-- End Smilie Mod -->


step 4

open file:
-------------------------
datei öffnen:

templates/[your template]/bbcode.html

find following code
-------------------------
folgenden code finden

Code: [Select]
function dolist(theform) {
  listtype = prompt(list_type_prompt, "");
  if ((listtype == "a") || (listtype == "1")) {
    thelist = "[list="+listtype+"]\n";
    listend = "[/list="+listtype+"] ";
  }
  else {
    thelist = "[list]\n";
    listend = "[/list] ";
  }
  listentry = "initial";
  while ((listentry != "") && (listentry != null)) {
    listentry = prompt(list_item_prompt, "");
    if ((listentry != "") && (listentry != null)) {
      thelist = thelist+"[*]"+listentry+"\n";
    }
  }
  theform.comment_text.value += thelist+listend;
  theform.comment_text.focus();
}

add after
-------------------------
danach hinzufügen

Code: [Select]
// Smilie Mod
function smilie(theform,smiliecode) {
  theform.comment_text.value += smiliecode;
  theform.comment_text.focus();
}
// End Smilie Mod

find following code
-------------------------
folgenden code finden

Code: [Select]
        <tr>
          <td class="row1">
            <input type="button" value=" B " onclick="bbcode(this.form,'B','')" name="button" class="button" />
            <input type="button" value=" I " onclick="bbcode(this.form,'I','')" name="button" class="button" />
            <input type="button" value=" U " onclick="bbcode(this.form,'U','')" name="button" class="button" />
            <input type="button" value="IMG" title="IMG" onclick="bbcode(this.form,'IMG','http://')" name="button" class="button" />
            <input type="button" value="http://" title="URL" onclick="namedlink(this.form,'URL')" name="button" class="button" />
            <input type="button" value="Code" title="CODE" onclick="bbcode(this.form,'code','')" name="button" class="button" />
            <input type="button" value="List" title="LIST" onclick="dolist(this.form)" name="button" class="button" />
          </td>
        </tr>

add after
-------------------------
danach hinzufügen

Code: [Select]

        <!-- Smilie Mod -->
        <tr>
          <td class="row2">
            <input type="button" value=" " onClick="smilie(this.form,' :D ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_biggrin.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :) ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_smile.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :( ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_sad.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :o ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_surprised.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' 8o ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_shock.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :? ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_confused.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' 8) ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_cool.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :lol: ')"     name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_lol.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :x ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_mad.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :p ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_razz.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :oops: ')"    name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_redface.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :cry: ')"     name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_cry.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :evil: ')"    name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_evil.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :twisted: ')" name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_twisted.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :roll: ')"    name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_rolleyes.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' ;) ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_wink.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :| ')"        name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_neutral.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :!: ')"       name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_exclaim.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :?: ')"       name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_question.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :idea:' )"    name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_idea.gif); width: 15px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :arrow: ')"   name="button" class="smilie" style="background-image: url({template_url}/smilies/icon_arrow.gif); width: 15px;" />
          </td>
        </tr>
        <!-- End Smilie Mod -->


that's it! if you want so save your smilies in a different folder you just have to change the smilie path in functions.php - step 2.1. to add new smilies you have to put them in your smilie folder, add the smilie-code to the 2 arrays in functions.php and add some buttons in bbcode.html ... quite easy ;)
-------------------------
das war's! wenn ihr smilies in einem anderen verzeichnis benutzen wollt, müsst ihr nur den pfad functions.php - step 2.1 ändern. um neue smilies hinzuzufügen müsst ihr diese in euer smilie verzeichnis packen, den smiliecode bei den 2 arrays in functions.php hinzufügen und die buttons in bbcode.html einfügen ... recht einfach ;)
Title: Re: [Mod] bbcode Smileys
Post by: erikito on March 14, 2005, 06:26:11 PM
Thx.  :wink: Very simple and clear.
grtz!
Title: Re: [Mod] bbcode Smileys
Post by: tafferKakao on March 15, 2005, 01:45:03 PM
thanks :D
Title: Re: [Mod] bbcode Smileys
Post by: erikito on March 22, 2005, 03:02:50 AM
hey, I found a little problem with the smilies: The following code=>
Quote
: ? :
(without the spaces) doesn't show this :?: but this=>
Quote
:? :
(without the space)

I didn't notice anything else yet...

grtz!

Title: Re: [Mod] bbcode Smileys
Post by: V@no on March 22, 2005, 03:06:38 AM
yeah, its a common problem with this method of parsing smilies...
in functions.php replace
Code: [Select]
    $search_smilie  = array(":)",":-)",":smile:",    ":D",":-D",":grin:",           ":(",":-(",":sad:", "8o","8-o",":shock",":eek:", ":?",":-?",":???:",               "8)","8-)",":cool:",  ":x",":-x",":mad:", ":p",":P",":-p",":-P",":razz:",     ":*",":-*",":oops:",           ":'(",":'-(",":cry:", ">:(",">:-(",":evil:",  ":roll:",   ";)",";-)",":wink:",  ":|",":-|",":neutral:",        ":o",":-o",              ">:)",">:-)",":twisted:",      ":lol:","LOL", ":!:",     ":?:",      ":idea:", ":arrow:", ":mrgreen:");with:
Code: [Select]
    $search_smilie  = array(":)",":-)",":smile:",    ":D",":-D",":grin:",           ":(",":-(",":sad:", "8o","8-o",":shock",":eek:", ":?:",":-?",":???:",               "8)","8-)",":cool:",  ":x",":-x",":mad:", ":p",":P",":-p",":-P",":razz:",     ":*",":-*",":oops:",           ":'(",":'-(",":cry:", ">:(",">:-(",":evil:",  ":roll:",   ";)",";-)",":wink:",  ":|",":-|",":neutral:",        ":o",":-o",              ">:)",">:-)",":twisted:",      ":lol:","LOL", ":!:",     ":?",      ":idea:", ":arrow:", ":mrgreen:");(note, I just exchanged possitions of ":?" and ":?:"
Title: Re: [Mod] bbcode Smileys
Post by: erikito on March 22, 2005, 03:39:02 AM
thx! :wink:
Title: Re: [Mod] bbcode Smileys
Post by: tafferKakao on March 22, 2005, 07:16:28 AM
thanks v@no ;)
Title: Re: [Mod] bbcode Smileys
Post by: Flo2005 on March 23, 2005, 05:44:00 PM
I have changed the functions.php, style.css, bbcode.html and created smilies folder.

Now I get this (http://www.snuup.de/smilies_error.jpg)

My 4img Vers. 1.7

Have somebody an idea what I did wrong?
Title: Re: [Mod] bbcode Smileys
Post by: Flo2005 on March 23, 2005, 06:13:46 PM
Sorry! I have forget to set a break in bbcode.html!

Great MOD  :D Now it Works with 1.7

Can I get this smilies in the discription too ?
Title: Re: [Mod] bbcode Smileys
Post by: tafferKakao on March 23, 2005, 06:58:07 PM
it would be possible if you enable bbcode for the discription ... but then you could also add links to the description, underline text, etc. ... do you really want this?

and you should also add the bbcode-buttons (bbcode.html) to the upload-page!

umm ... i think, i'll do it ... i have holidays :p
Title: Re: [Mod] bbcode Smileys
Post by: Flo2005 on March 23, 2005, 07:44:03 PM
What I mean is for example:

(http://www.snuup.de/discription_smiley.jpg)

THX
Title: Re: [Mod] bbcode Smileys
Post by: tafferKakao on March 23, 2005, 08:24:22 PM
i know what you mean ;)

but if i would allow bbcode in the description you could also add links, etc. to the description ... and i think you just want to have the smilies!

maybe i'll find an acceptable solution ... or do you allready have one? ;)
Title: Re: [Mod] bbcode Smileys
Post by: Flo2005 on March 23, 2005, 08:30:21 PM
I haven´t enough time yet. When I find a way, I tell you in this Thread!

Cu by Flo
Title: Re: [Mod] bbcode Smileys
Post by: V@no on March 24, 2005, 01:16:43 AM
but if i would allow bbcode in the description you could also add links, etc. to the description ... and i think you just want to have the smilies!

maybe i'll find an acceptable solution ... or do you allready have one? ;)
I think u should move your smiles parsing script into a new function so u can call it anywhere in the code ;)
Title: Re: [Mod] bbcode Smileys
Post by: tafferKakao on March 24, 2005, 12:29:10 PM
that should be the first step ... but therefore i have to rewrite the hole mod

anyway ... i'll do it ;)
Title: Re: [Mod] bbcode Smileys
Post by: metalzigge on March 24, 2005, 09:17:18 PM
vielen dank,so etwas suche ich schon die ganze zeit  :D
Title: Re: [Mod] bbcode Smileys
Post by: tafferKakao on March 25, 2005, 01:01:17 AM
as you can see i have made the changes you want to have ;)
have fun with it :D

@ v@no: it wasn't really necessary to create an own function for the smilie-code inside functions.php ... i just had to move it some lines down inside the function "format_text" (so it wouldn't only be allowed when bbcode is allowed)
Title: Re: [Mod] bbcode Smileys
Post by: V@no on March 25, 2005, 03:54:49 AM
well, there is one issue with this: now every text that being sent through format_text() function will get smiles...
In my oppinion it should be controled, not forced ;)
Title: Re: [Mod] bbcode Smileys
Post by: tafferKakao on March 25, 2005, 10:03:31 AM
that's true ... but therefore it should be built into the admin-settings ... i think that would be exaggerated
Title: Re: [Mod] bbcode Smileys
Post by: V@no on March 25, 2005, 02:29:25 PM
well, u could have made it the same way as the bbcode parse ;) or html or word wrap, etc ;)
just a tip
Title: Re: [Mod] bbcode Smileys
Post by: tafferKakao on March 25, 2005, 07:17:25 PM
hmm ... ok ... that's right ... i could make it that way to!

i still got holidays ;)
Title: Re: [Mod] bbcode Smileys
Post by: Michi0310 on April 17, 2005, 04:33:46 PM
Danke für den Mod.. Hat alles gut geklappt
Title: Re: [Mod] bbcode Smileys
Post by: Schwarz Liesi on April 21, 2005, 10:02:36 PM
I have changed the functions.php, style.css, bbcode.html and created smilies folder.

Now I get this (http://www.snuup.de/smilies_error.jpg)

My 4img Vers. 1.7

Have somebody an idea what I did wrong?


Hallo! Tut mir leid das ich kaum Englisch schreiben kann, (jedoch lesen schon so ziemlich) deshalb poste ich nur in Deutsch.

Ich habe meine 4images 1.7.1 lokal in meinem Heimnetzwerk am Laufen.

Jetzt habe ich auch diesen Smileypack installiert, und wenn ich mit Mozilla Firefox (neueste Version) ein neues Kommentar schreiben möchte, dann seh ich auch keine Smileys, sondern nur eben solche viereckigen Buttons, wie in der Grafik von Flo2005. (nur eben das die textarea sichtbar ist, nicht so wie bei Floh2005 wo mehr nicht zu sehen ist!)

WEnn ich dann aber mit dem neuestem MS Internet Explorer auf die gleiche Seite geh, dann seh ichdie Smileys bereits ohne Probleme.

Jetzt wollt ich fragen, wie ich das umgehen kann, und ob nicht Möglichkeit besteht, die gar nicht erst als "Buttons" einzufügen, sondern gleich als Grafiken?

Ich kenn mich leider nicht so gut aus HTML, und PHP bzw. Java.

Falls jemand was weis, dann bedanken ich mich bereits im Vorhinein.


Danke, vielmals!
Title: Re: [Mod] bbcode Smileys
Post by: Schwarz Liesi on April 22, 2005, 06:48:32 PM
So mein Problem habe ich bereits behoben, das ich hatte. Tut mir leid das ich euch damit belästigt habe.

JEDOCH:

Kann es sein, das die Buttons nicht identisch sind mit dem Ergebnis?

WEnn ich auf das Smiley für weinen (Embarassed) klicke dann bekomm ich als Ergebnis im Kommentar den Twisted Evil!


Kann es damit zusammenhängen, was V@no umgeschrieben hat, das die Reihenfolge nicht mehr stimmt?

Oder mach ich etwas falsch!
Title: Re: [Mod] bbcode Smileys
Post by: callimero on May 14, 2005, 04:44:38 PM
hallo,
habe den mod installiert und es sieht auch alles ganz gut aus, nur wenn man auf ein smiley klickt kommt die meldung von einem skriptfehler und der smiley lässt sich nicht einfügen ?!

woran liegt das und was habe ich falsch gemacht ?

www.netzpfosten.de

wäre nett wenn mir jemand helfen könnte

danke
Title: Re: [Mod] bbcode Smileys
Post by: TubeTopia on May 15, 2005, 08:29:06 AM
Great little mod & did in only a couple of mins. But now when one selects a face no code shows in the comment box & the error on pages appears on the bottom left of page.

Also have noticed with last couple of mods done that when ever something calls for 2 look for code with "row1" etc in it all my coding is "cat1" etc. See image.

Would this have anything to do with these mods not working? :?
Title: Re: [Mod] bbcode Smileys
Post by: callimero on May 16, 2005, 11:16:50 AM
kann mir denn keiner sagen warum die smileys bei mir nicht gehen und warum ich diese fehlermeldung bekomme  :cry:

wäre sehr dankbar für hilfe
Title: Re: [Mod] bbcode Smileys
Post by: HaKkE on June 16, 2005, 03:52:14 PM
Ich habe das selbe Problem wie mein Vorredner. Die Smilies werden nicht angezeigt. Die onClick-Funktion ist vorhanden, aber man kann in der Leiste keine Smilies sehen. Ein paar Fragen vor mir hatte jemand auch dieses Problem und er hat es gelöst. Irgendwie meinte er, dass er die breaks vergessen hat. Doch wo und wie? Kann jemand helfen

thx
HaKkE
Title: Re: [Mod] bbcode Smileys
Post by: HaKkE on June 20, 2005, 04:47:39 PM
Sorry mein Fehler  :oops: (Falsche Verlinkung zum Smilies-Verzeichnis)

Hab aber trotzdem ein Problem. Hat sich jemand unter euch mal die Smilie-Leiste unter Mozilla Firefox angeschaut? Sieht irgendwie bescheiden aus  :) Weiß jemand wo ran das liegt und wie man es weg bekommt? Kennt jemand eine Lösung ohne die buttons, sondern einfach nur mit hyperlinks. Wenn ja? Bitte melden  :lol:

mfg
HaKkE
Title: Re: [Mod] bbcode Smileys
Post by: Sir Sky-Walker on July 05, 2005, 06:26:34 PM
Hm, hab den Mod auch gerade installiert. Hab jetzt keine Fehlermeldung, aber auch keine Smilies. Grob gesagt, als hätte ich nichts verändert. Woran könnte das liegen?

Hab alles 100% geändert!!!
Title: Re: [Mod] bbcode Smileys
Post by: IzyB on July 12, 2005, 05:57:29 AM
All went fine, but one icon is missing although you can click on it and 8o will appear, etc. Picture attached.

Title: Re: [Mod] bbcode Smileys
Post by: Sam67 on July 12, 2005, 06:27:20 PM
Rename in the smiliesfolder the "icon_shock.gif" to "icon_eek.gif".
Greetz Sam
Title: Re: [Mod] bbcode Smileys
Post by: IzyB on July 12, 2005, 07:11:52 PM
Rename in the smiliesfolder the "icon_shock.gif" to "icon_eek.gif".
Greetz Sam

It's already named as "icon_eek.gif"

Tina

EDIT: I fixed it:) It was named icon_shock.gif" in the bbcode.html. Thanks!
Title: Re: [Mod] bbcode Smileys
Post by: Sam67 on July 12, 2005, 07:18:48 PM
Or so,yes  :D.A few days gone since... :D
Greetz Sam
Title: Re: [Mod] bbcode Smileys
Post by: Gray on July 19, 2005, 04:31:48 PM
Hat hier inszwischen schon jemand eine Lösung für eine bessere Ansicht unter Firefox gefunden?

Danke für den Mod. Funzt bis auf die Firefoxansicht alles prima.  :D
Title: Re: [Mod] bbcode Smileys
Post by: pkitty on August 01, 2005, 10:08:05 PM
Okay, I installed this mod when I first got the album, now I have members telling me that nothing is showing up in the comment box when they click on the smileys..... I see somebody else had that error, but because the answers are in a different language, I do not know how to fix it, Vano, you out there? Can you help me? LOL...
Title: Re: [Mod] bbcode Smileys
Post by: IzyB on August 04, 2005, 06:51:04 AM
I just noticed that using the
Code: [Select]
:lol: brings up the twisted face and not the laughing face. If I use
Code: [Select]
LOL however it does work. But how can I fix this for others that won't know it will work using LOL?
Title: Re: [Mod] bbcode Smileys
Post by: pkitty on August 10, 2005, 05:55:56 PM
 :( Please, would somebody look at this code and figure out why when you click on the smiley it is not transporting into the box to comment....

Title: Re: [Mod] bbcode Smileys
Post by: IzyB on August 13, 2005, 08:43:37 PM
I have found other ones that are not showing the correct icon. The latest is the exclamation. If I do
Code: [Select]
:!: I get the big grin (laugh).

I just noticed that using the
Code: [Select]
:lol: brings up the twisted face and not the laughing face. If I use
Code: [Select]
LOL however it does work. But how can I fix this for others that won't know it will work using LOL?
Title: Re: [Mod] bbcode Smileys
Post by: IzyB on August 14, 2005, 05:13:10 AM
Nevermind:) I finally found the culprit.
Title: Re: [Mod] bbcode Smileys
Post by: BartAfterDark on August 24, 2005, 07:19:35 PM
how could we make this without the stupid input type="button"
I want it like it is here on the forum ;)
Title: Re: [Mod] bbcode Smileys
Post by: beseech on September 07, 2005, 07:23:03 PM
how can i added more smileys but in popup window ????


any ideia ???


;)
Title: Re: [Mod] bbcode Smileys
Post by: kases on September 11, 2005, 12:09:01 PM
my 4images gallery is intigrated into vbulletin, anyway to have it use vb's bbcode and smilies?
Title: Re: [Mod] bbcode Smileys
Post by: ch€ri{Bi}² on October 01, 2005, 11:17:10 AM
 :idea: i remember there was a way to add more smileys  with a button (or a link) called more... where a popup window let you choose the others smileys.

 :?:  is there someone who kept this code and can publish it?

thanks.
Title: Re: [Mod] bbcode Smileys
Post by: chip on December 18, 2005, 04:50:41 PM
Hi everyone,

tafferkakaos smiley download link doesn't work. Does anybody have an alternative smiley download zip link?

Anyone?
Title: Re: [Mod] bbcode Smileys
Post by: tradenet on December 18, 2005, 04:54:27 PM
Try vano's site:
http://gallery.vano.org/en/files

Or any version of phpbb should have that collection.

Hi everyone,

tafferkakaos smiley download link doesn't work. Does anybody have an alternative smiley download zip link?

Anyone?
Title: Re: [Mod] bbcode Smileys
Post by: chip on December 18, 2005, 05:11:44 PM
Thanks tradenet.
Title: Re: [Mod] bbcode Smileys
Post by: chip on January 09, 2006, 06:05:57 PM
Hi everyone,

this is a screenshot of the page at my host with Firefox 1.0.6 and the buttons:

(http://www.pixelmall.de/firefox-host)



the same Firefox 1.0.6 without showing the buttons on my home system:

(http://www.pixelmall.de/firefox-home)


Now I wonder how I can verify the difference in order to get rid of these buttons. It could be anything, is that right?



Title: Re: [Mod] bbcode Smileys
Post by: V@no on January 10, 2006, 02:01:11 AM
Is this same firefox on same computer? just different websites? or two different firefoxes on two different systems and two different websites? The reason I ask is because one screenshot has web page title displayed on, the second doesnt have, either the websites are not identical, or the these are two different systems the firefox was running from...
Title: Re: [Mod] bbcode Smileys
Post by: chip on January 10, 2006, 10:57:01 AM
Hi V@no,

the 4images at my host is just a mirror of the one on my desktop. So it's the same Firefox, on the same websites, on a different system.

The "only" difference I can see:

host:    apache 2.0.52  on debian/linux

my desktop:   apache 2.0.54  win32

So it might be one of the modules loaded which makes the difference?
Title: Re: [Mod] bbcode Smileys
Post by: V@no on January 10, 2006, 02:30:04 PM
and if you save page source from both sites and compare it, what different will it show? (I'm talking about opening the sites in the browser, then save the page into .html)
Title: Re: [Mod] bbcode Smileys
Post by: chip on January 10, 2006, 05:36:58 PM
 :oops:

Okay I got it now. I forgot to update the style.css after installing the PMv2.

Now no buttons with firefox.

Thanks V@no.
Title: Re: [Mod] bbcode Smileys
Post by: MEXX on January 26, 2006, 12:13:40 PM
Добрый день. У меня такая проблема:
Мод установил. При добавлении смайликов в коментарии, они отображаются как положено, но на главной странице,
в окне "последние коментарии", они отображаются по другому, как в моде PM. Что нужно изменить?
Title: Re: [Mod] bbcode Smileys
Post by: V@no on January 26, 2006, 02:53:09 PM
Нужно пропустить текст через format_text() функцию. Как? - это уж лучьше спросить в том топике ;)
Title: Re: [Mod] bbcode Smileys
Post by: insane on January 28, 2006, 11:32:39 AM
Quote
DB Error: Bad SQL Query: SELECT * FROM 4images_encuestas ORDER BY orden
Unknown column 'orden' in 'order clause'

Warning: opendir(./templates/4greyblue/smiles/schilder/): failed to open dir: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/paddygree/4images/includes/page_header.php on line 487

Warning: readdir(): supplied argument is not a valid Directory resource in /usr/export/www/vhosts/funnetwork/hosting/paddygree/4images/includes/page_header.php on line 488

Warning: closedir(): supplied argument is not a valid Directory resource in /usr/export/www/vhosts/funnetwork/hosting/paddygree/4images/includes/page_header.php on line 491

I did all he said. the downloadlink doesn't work anymore so i used the smiliegenpack. do i have to change something cause of using an other smilie package?
help plz
Title: Re: [Mod] bbcode Smileys
Post by: insane on February 19, 2006, 02:21:27 PM
can't anyone help me? want sweet little smilies in my comments :(
Title: Re: [Mod] bbcode Smileys
Post by: IcEcReaM on February 19, 2006, 09:48:05 PM
regarding to the error message it seems that the directory for the smileys isn't there.
did you created the needed directory with the smileys in there?
Title: Re: [Mod] bbcode Smileys
Post by: insane on February 20, 2006, 07:36:50 AM
i installed the smilie folder from v@lo's gallery. not the folder mentioned in the 1# post..
Title: Re: [Mod] bbcode Smileys
Post by: IcEcReaM on February 20, 2006, 09:44:46 AM
but as you can see,
you have to create an folder that it then look like this "/templates/4greyblue/smiles/schilder/".

I didn't looked at the code from this mod,
so i can't say, if it's necessary that smileys must be in that folder too,
but first you can try just to create that folder.
Title: Re: [Mod] bbcode Smileys
Post by: insane on February 20, 2006, 02:11:21 PM
but the smilies themselves have other names too as required?!
Title: Re: [Mod] bbcode Smileys
Post by: V@no on February 20, 2006, 02:44:31 PM
[olist]
Unknown column 'orden' in 'order clause'[/quote]
What is this and why would think its related to this mod?



Warning: readdir(): supplied argument is not a valid Directory resource in /usr/export/www/vhosts/funnetwork/hosting/paddygree/4images/includes/page_header.php on line 488

Warning: closedir(): supplied argument is not a valid Directory resource in /usr/export/www/vhosts/funnetwork/hosting/paddygree/4images/includes/page_header.php on line 491[/quote]
I see nothing in the tutorial that sais about changing anything in page_header.php
[/olist]

perhaps answering these questions you could find the error...
Title: Re: [Mod] bbcode Smileys
Post by: BartAfterDark on March 04, 2006, 07:01:42 PM
I got a little problem with Version 1.7.2
If I don't type in a headline when I post a comment it sends me back to the page. But now the code in the Comment: looks like this
Code: [Select]
<img src="./templates/default/smilies/icon_surprised.gif"> instead of
Code: [Select]
:o
Title: Re: [Mod] bbcode Smileys
Post by: Fastian on March 15, 2006, 05:24:13 PM
The Zip file in the first post is missing or perhaps i m not able to download it.
Someone have its copy ?  Or some other location to download it.
Title: Re: [Mod] bbcode Smileys
Post by: BartAfterDark on March 15, 2006, 07:19:29 PM
The Zip file in the first post is missing or perhaps i m not able to download it.
Someone have its copy ?  Or some other location to download it.

Title: Re: [Mod] bbcode Smileys
Post by: qwertz on April 27, 2006, 12:40:35 PM
danke für den mod, klappt prima!  :D
mir ist aufgefallen, dass nach dem erneuten bearbeiten des textes statt der grafik (z.b.: " :wink:") der bbcode (z.b.: <img src="./../templates/4greyblue/smilies/icon_wink.gif") angezeigt wird. kann man da was ändern?

thx for the mod, it´s realy fine!  :D
but i had noticed that after the reedit of the text, instead of the smilie the bbcode is shown. (yes, worse english, i know  :oops: )
Title: Re: [Mod] bbcode Smileys
Post by: idijotaz on April 27, 2006, 05:08:34 PM
well... ok everythin works, but one thing. When im trying to klick on smile in comment nothing happens... but if i write :) then show smile...
Title: Re: [Mod] bbcode Smileys
Post by: idijotaz on April 30, 2006, 02:35:15 PM
so can anyone help me?  8O
Title: Re: [Mod] bbcode Smileys
Post by: aleem316 on May 09, 2006, 11:23:54 AM
Hi all  ok i installed the smilie  pack  modd but i want to add more smilies to it
now  i added more emotions to the folder and  i edited the bbcode.html  file  accordingly  but  i get this error
(http://www.trini-ads.com/se.JPG)

as you can see  i get the emotions in the box but when i submit the comment it dont appear
but if i replace the default smilies to the ones i want and rename it  it will work.
this is the code i added in the bbcode.html  file.

Code: [Select]
<input type="button" value=" " onClick="smilie(this.form,' :8 ')" name="button" class="smilie" style="background-image: url({template_url}/smilies/8.gif); width: 30px;" />
<input type="button" value=" " onClick="smilie(this.form,' hump ')" name="button" class="smilie" style="background-image: url({template_url}/smilies/hump.gif); width: 60px;" />

how can i add more emotions???
Title: Re: [Mod] bbcode Smileys
Post by: V@no on May 09, 2006, 02:58:59 PM
You also will need add them into includes/functions.php, into these arrays:
Code: [Select]
    $search_smilie  = array(":)",":-)",":smile:",    ":D",":-D",":grin:",           ":(",":-(",":sad:", "8o","8-o",":shock",":eek:", ":?:",      ":?",":-?",":???:",               "8)","8-)",":cool:",  ":x",":-x",":mad:", ":p",":P",":-p",":-P",":razz:",     ":*",":-*",":oops:",           ":'(",":'-(",":cry:", ">:(",">:-(",":evil:",  ":roll:",   ";)",";-)",":wink:",  ":|",":-|",":neutral:",        ":o",":-o",              ">:)",">:-)",":twisted:",      ":lol:","LOL", ":!:",     ":idea:", ":arrow:", ":mrgreen:");
    $replace_smilie = array("smile","smile","smile", "biggrin","biggrin","biggrin", "sad","sad","sad",  "eek","eek","eek","eek",     "question", "confused","confused","confused", "cool","cool","cool", "mad","mad","mad",  "razz","razz","razz","razz","razz", "redface","redface","redface", "cry","cry","cry",    "evil", "evil", "evil", "rolleyes", "wink","wink","wink", "neutral","neutral","neutral", "surprised","surprised", "twisted","twisted","twisted", "lol","lol",     "exclaim", "idea",   "arrow",   "mrgreen");
Title: Re: [Mod] bbcode Smileys
Post by: aleem316 on May 09, 2006, 05:06:23 PM
yea  i did edit that to  but same problem  maybe i didnt edit good.
i will try back  and let u know.

thanx..
Title: Re: [Mod] bbcode Smileys
Post by: aleem316 on May 10, 2006, 02:07:29 AM
ok  i really did had an error in my  array
i fixed it worked  good.

thnx
Title: Re: [Mod] bbcode Smileys
Post by: aleem316 on May 11, 2006, 02:15:17 AM
how can i make  like  a scroll box  to put all the smilies so users can scroll down  and select  from a variety of smilies.
When i add more  the smilie box just keep getting longer
Title: Re: [Mod] bbcode Smileys
Post by: V@no on May 11, 2006, 05:22:08 AM
use style sheet. the idea is set the <div> where your smiles are with static width and height and then use overflow: auto; in the style.
reference:
http://www.w3schools.com/css/css_reference.asp#positioning
Title: Re: [Mod] bbcode Smileys
Post by: tansamalaja on May 21, 2006, 01:11:51 AM
Bei mir schaut es so aus, die Smilies ind irgendwie rechts abgeschnitten und der Button ist zu hoch...
Wo kann ich das ändern?

Habe die Änderungen in den Style Sheets gemacht wie angewiesen, trotzdem scheinen die nicht so
recht übernommen zu werden. Ich mußte nämlich in der bbcode.html für jedes Smilie einzeln
"backgrround-repeat:no-repeat" anweisen, sonst wurde es in dem Button unten noch einmal gezeigt,
also sichtbar war nur das obere Zehntel, aber es wurde wiederholt...

Title: Re: [Mod] bbcode Smileys
Post by: tansamalaja on May 21, 2006, 04:41:57 PM
So, ich habe es jetzt noch einmal in eine "jungfräuliche" Galerie Version 1.7.2. eingebaut
und dort sieht es ebenfalls so aus. Was mache ich falsch? Kann jemand helfen?

Es stört, dass die Buttons, auf denen die Smilies sind , zu hoch und ein wenig zu schmal sind.
Außerdem werden die Smilies als "background" auf den Buttons wiederholt...
Title: Re: [Mod] bbcode Smileys
Post by: farhan on May 21, 2006, 09:24:39 PM
I got a little problem with Version 1.7.2
If I don't type in a headline when I post a comment it sends me back to the page. But now the code in the Comment: looks like this
Code: [Select]
<img src="./templates/default/smilies/icon_surprised.gif"> instead of
Code: [Select]
:o

i am having the same problem in 1.7.2

if i leave the headline empty, i get the <img tag code in the comment text box and no comment is posted when i click submit.

Title: Re: [Mod] bbcode Smileys
Post by: aleem316 on May 22, 2006, 02:54:21 AM
ye a i have the same  problem   i saw this in many 4images  sites...
Title: Re: [Mod] bbcode Smileys
Post by: doubleflash on June 05, 2006, 05:22:48 PM
Bei mir schaut es so aus, die Smilies ind irgendwie rechts abgeschnitten und der Button ist zu hoch...
Wo kann ich das ändern?

Habe die Änderungen in den Style Sheets gemacht wie angewiesen, trotzdem scheinen die nicht so
recht übernommen zu werden. Ich mußte nämlich in der bbcode.html für jedes Smilie einzeln
"backgrround-repeat:no-repeat" anweisen, sonst wurde es in dem Button unten noch einmal gezeigt,
also sichtbar war nur das obere Zehntel, aber es wurde wiederholt...

Ich habe das Problem gelöst indem ich die Parameter direkt in der bbcode.html eingegeben habe. Firefox scheint mit den Parametern über css in diesem Fall nichts anfangen zu können.

Dies sieht dann etwa so aus (ist dann für jeden Eintrag notwendig)

Code: [Select]
<input type="button" value=" " onClick="smilie(this.form,' :) ')" name="button"  style="background-image: url({template_url}/smilies/smile15x18.gif); font-size: 25px; width: 30px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;" />(ich benutze andere Smilies)
Title: Re: [Mod] bbcode Smileys
Post by: Sir Sky-Walker on June 05, 2006, 08:23:13 PM
Now I get this (http://www.snuup.de/smilies_error.jpg)

I have the same problem like same guys before me. The link to the Smile is right, an wenn I klick on a grey button the smile link is right. I mean, when i send the comment it will display.

Where is the problem ??

Thanks
Title: Re: [Mod] bbcode Smileys
Post by: tansamalaja on June 06, 2006, 02:42:59 PM
Schon besser, sieht wie angehangen aus...

Aber so ein kleiner senkrechter Balken ist da immer noch. Habe übrigens "transparent" mit meiner Hintergrundfarbe ersetzt.
Title: Re: [Mod] bbcode Smileys
Post by: Sir Sky-Walker on June 06, 2006, 06:38:28 PM
Wenn ich soweit kommen würde wär ich mega glücklich, bei mir sind aber nur Balken.
Weiß jemand wie ich das richtig stellen kann?

EIn paar Vorgänger von mir hatten ja das gleiche Problem, wie habt ihr das hinbekommen ???
Bin am verzweifeln ...

Schonmal Danke
Title: Re: [Mod] bbcode Smileys
Post by: leh00 on June 09, 2006, 12:02:59 PM
Hi Sir Sky-Walker,

mit grösster Wahrscheinlichkeit stimmt der Pfad zu den Smilies nicht... Lade deshalb die Seite bis du die Balken siehst und schaust dir dann den Code deiner Seite an.

Suche dann nach zum Beispiel "smilie(this.form" und nach ein paar Befehlen ist auch der Pfad für das Smilie -> vergleiche den angegebenen Pfad mit deiner Smilie-Ablage.

Gruss

Leh00
Title: Re: [Mod] bbcode Smileys
Post by: leh00 on June 09, 2006, 12:06:07 PM
Under version 1.7.2 I also have the problem, that the smilie-code
Code: [Select]
:-) in the comment is saved as
Code: [Select]
<img src="./templates/default/smilies/icon_surprised.gif">
Does anybody have a solution for that?

Regards

Leh00
Title: Re: [Mod] bbcode Smileys
Post by: explore on July 06, 2006, 07:00:45 PM
Can someone give me a hand I downloaded the smile zip and whent through the instructions. one thing I don't understand

1.open lang/<deine Sprache>/main.php add: I just have a main in my English  (lang folder) and I added it at the botom of my English  main php page is this ok?

2. uplaod the template from the zip in your template folder. witch template or does he mean smiliegenerator? so I added to the template that i'm using at this time. This ok?

3. upload the smile folder with the struture in your template . i don't understand this one

4. put this <input type=button value="Schilder Smilies" onClick="smiliegenerator();" name="button" class="button"> in your template in order to call the creator. This one also I don't understand

As you can see i'm just starting out and need a litle help. Is there some file missing in the zip I downloaded?
Please realy would like this script to work thanks :(

Where does the smilemod.php go.

Title: Re: [Mod] bbcode Smileys
Post by: nfprehn on July 27, 2006, 07:51:44 PM
I had a user upload an image and the description showed up as

<img src="./templates/default/smilies/icon_smile.gif">

Presumably he tried to enter a

The correct path would be

<img src="./../templates/default/smilies/icon_smile.gif">

When I try it it works fine.  Any ideas what may cause this????
Title: Re: [Mod] bbcode Smileys
Post by: waleed on July 27, 2006, 11:44:16 PM
Under version 1.7.2 I also have the problem, that the smilie-code
Code: [Select]
:-) in the comment is saved as
Code: [Select]
<img src="./templates/default/smilies/icon_surprised.gif">
Does anybody have a solution for that?

Regards

Leh00

same problem
Title: Re: [Mod] bbcode Smileys
Post by: leh00 on July 29, 2006, 04:03:26 PM
Even nobody helped with this problem under 1.7.2...

I downloaded version 1.7.3 and under 1.7.3 I do not have this problem...

Posting comments with the smilies works fine... :)

Maybe restore functions.php and bbcode.html of your template and follow the steps carefully again -> pretty sure it will work too...

Regards

Leh00
Title: Re: [Mod] bbcode Smileys
Post by: waleed on August 25, 2006, 03:33:28 PM
Under version 1.7.2 I also have the problem, that the smilie-code
Code: [Select]
:-) in the comment is saved as
Code: [Select]
<img src="./templates/default/smilies/icon_surprised.gif">
Does anybody have a solution for that?

Regards

Leh00
any help plz

same problem
Title: Re: [Mod] bbcode Smileys
Post by: HorrorCrafT on September 13, 2006, 11:29:08 AM
who is mr.green? :wink: :mrgreen: :mrgreen:

thx for great MOD. works perfect!

danke doubleflash für den tipp mit der darstellung der smilies. sowohl im FF als auch im IE ist das die optisch schönere lösung!
Title: Re: [Mod] bbcode Smileys
Post by: CharlieF. on September 16, 2006, 01:13:58 PM
I had also the problem that the smilie icons didnt appear using FF or Opera. Just these blank buttons.
The reason was that i had a space in my template name. So i uploaded it under another name chose it in the admin panel and now everything works fine.

Perhaps this will help some guys with the same problem.


dt.:
Ich hatte auch das Problem, dass die Smilies im FF und im Opera nicht dargestellt wurden.
Bei mir lags daran, dass ich in meinem Template Namen ein Leerzeichen hatte. Also hab ich das Template nochmal mit nem anderen Namen hochgeladen und ausgewählt und jetz klappt alles.

Vielleicht hilft das ja auch ein paar anderen mit dem gleichen Problem.
Title: Re: [Mod] bbcode Smileys
Post by: Flo2005 on October 17, 2006, 06:28:54 PM
I got a little problem with Version 1.7.2
If I don't type in a headline when I post a comment it sends me back to the page. But now the code in the Comment: looks like this
Code: [Select]
<img src="./templates/default/smilies/icon_surprised.gif"> instead of
Code: [Select]
:o

i am having the same problem in 1.7.2

if i leave the headline empty, i get the <img tag code in the comment text box and no comment is posted when i click submit.



It´s everytime when an errormassage is, but with guestbook MOD it works fine - whats wrong?

Edit: I didn´t think it has to do with functions.php, because it works with guestbook.php - there must be something changed in details.php - but what :?:

Ps: I get this error also with a fresh details.php - my v1.7.3

Edit: 19.10.06 - I´ve tried this with a fresh 4images install and it´s also the same  :(

PLZ Help  :(
Title: Re: [Mod] bbcode Smileys
Post by: Ferus on November 02, 2006, 02:23:19 PM
i've just do this mode, and I want add emote (http://www.ferus.home.pl/gkfk/4images/templates/poland/smilies/icon_pkp.gif) to emotes, but when i add a code to functions.php and bbcode.html, emote in the coment are mr green or : P  not this emote. ( i' ve create the button). please create a code for this emote...
Title: Re: [Mod] bbcode Smileys
Post by: Yeti on December 17, 2006, 11:02:11 PM
Die Smilie Mod läuft bei mir wunderbar. Ich fände es Klasse sie auch bei den Postkarten benutzen zu können. Kann mir da jemand helfen? Was muß in die postcard.php rein. Die Postcard_create.html braucht ja nur ein   {bbcode}...

The Smilie Mod works great on my homepage. It would be great if I could use it with the postcards. Can anybody help me? What have I to add into the postcard.php?
The postcard_crate.html needs only a {bbcode}...

Thanks in advance

Bernd
Title: Re: [Mod] bbcode Smileys
Post by: myr2904 on February 23, 2007, 11:10:34 AM
I got a little problem with Version 1.7.2
If I don't type in a headline when I post a comment it sends me back to the page. But now the code in the Comment: looks like this
Code: [Select]
<img src="./templates/default/smilies/icon_surprised.gif"> instead of
Code: [Select]
:o

i am having the same problem in 1.7.2

if i leave the headline empty, i get the <img tag code in the comment text box and no comment is posted when i click submit.



Can anyone solve this problem????
Title: Re: [Mod] bbcode Smileys
Post by: Yeti on February 23, 2007, 11:25:07 AM
 The same will happen if you klick " Kommentar bearbeiten" or in the english version "comment edit". EVERY time you edit a comment you have to delete <img src="./templates/default/smilies/icon_surprised.gif"> and then you have to type the code which appears if you click the smile on writing a comment.

eg: delete <img src="./templates/default/smilies/icon_surprised.gif"> type  : o and the smilie :o will appear again. Sorry for my poor english
Title: Re: [Mod] bbcode Smileys
Post by: Jenn on March 16, 2007, 05:29:54 PM
I got a little problem with Version 1.7.2
If I don't type in a headline when I post a comment it sends me back to the page. But now the code in the Comment: looks like this
Code: [Select]
<img src="./templates/default/smilies/icon_surprised.gif"> instead of
Code: [Select]
:o

Quote

Can anyone solve this problem????

What I did was remove the headline, thus not making it mandatory for headline. Personally I think its a little useless, but that's me. If you don't want to remove the headline, then you will have to find another way around. But this way works.

1. Open details.php
Find and remove
Code: [Select]
if ($comment_headline == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
      $error = 1;
    }


2. Open templates/comment_bit.html
Find and remove
       
Code: [Select]
<td valign="top"><b>{comment_headline}</b></td>


3. Open templates/comment_form.html
Find and remove
Code: [Select]
<tr>
                  <td width="90"><b>{lang_headline}</b></td>
                  <td><input type="text" name="comment_headline" size="30" value="{comment_headline}" class="commentinput" /></td>
                </tr>

Works for me since I received the same thing in 1.7.4. Good luck!
Title: Re: [Mod] bbcode Smileys
Post by: gls on March 30, 2007, 02:11:02 PM
How do I change the height of the smilies? I have added some that are too tall and show only partially in the selection box. I tried adding
height: 33px;
to bbcode.html after width, but it does not seem to work. :?
Title: Re: [Mod] bbcode Smileys
Post by: gls on March 30, 2007, 02:22:13 PM
Solved it! Add the height necessary to .smilie in the style sheet! [d.u.h.] :| :mrgreen:
Title: Re: [Mod] bbcode Smileys
Post by: UFOSWORLD on April 07, 2007, 12:49:55 PM
Hab den ganzen Mod geadded, funzte auch gleich...

hatte aber auch das Problem das unter Firefox die grauen Buttons angezeigt werden und die Smilie rechts abgeschnitten, bzw unten verlängert...  nachdem ich die Verbesserung von doubleflash eingefügt hatte, war es auch besser, jedoch sehen meine Smilies jetzt so aus... (abstand.jpg)

wie bekomme ich die grossen Abstände zwischen den Smilies raus?


Was ich noch bemerkt habe ist folgendes Problem (anscheinend hat das noch niemand bemerkt!!)

Wenn ich ein Kommentar schreibe und smilies mit ins KOmmenatr einfüge...

und dann auf KOmmentar posten klicke...  OHNE die Kommentar-Betreffzeile (Überschrift: ) befüllt zu haben, dann postet er mir das kommentar nicht, weil er ja die Betreffzeile als Pflichtfeld will....
im Reload wandelt er dann die Smilie in <img src links um und bei befüllen der Kommentar-Betreffzeile postet er die Links mit... wandelt diese aber nicht mehr um, weil er ja nur auf :haha: usw reagiert....  und nicht auf <img src.....

wie kann ich das verhindern....   siehe Screenshot... comment_ohne_betreff.jpg

danke schon mal

UFOSWORLD

 


p.s. wenn ich die Kommentar Betreffzeile gleich mitbefülle, dann gibt es keine Probleme und er postet den Kommentar wie gewünscht....
Title: Re: [Mod] bbcode Smileys
Post by: Joss on April 13, 2007, 10:08:14 PM
Hi all,
I've two problems:

1. The transparensy isn't working in Mozilla Firefox (look for screen shot).
2. When user edits the comment, after it smiles are transformed to text links.
Title: Re: [Mod] bbcode Smileys
Post by: UFOSWORLD on April 20, 2007, 11:49:26 AM
Hi all,
I've two problems:

1. The transparensy isn't working in Mozilla Firefox (look for screen shot).
2. When user edits the comment, after it smiles are transformed to text links.


Hehe look like we have the same Problems... look @ my post up there....

to 1. did you insert the code from doubleflash??
        http://www.4homepages.de/forum/index.php?topic=6646.msg71091#msg71091

to 2. Same Problem...    you can also try this..  write a comment with lots of smilies in there , but dont fill the heading  field...
        now post the comment... after you hit the post button... 4homepages will say ... please fill the heading  field... now look
        into you comment field... the smilie codes transformed into links....

       I solved it that way... 
       hidding the heading  field and set some standard heading  like "This coment was written by {user_name}"
     
      could post you the code, if you want it...  or just look at
      http://www.4homepages.de/forum/index.php?topic=17157.0  (its in German)
     
      ok that doesnt solve the Problem when you edit a comment... or user did..., but it solve the problem when the user
      forget to fill up the heading field and want to post the comment...
     
      i deactivate the function that users can edit there coments after posting... what`s written is written ....


Title: Re: [Mod] bbcode Smileys
Post by: Joss on April 20, 2007, 05:17:30 PM
UFOSWORLD,
thanks for reply!

Quote
to 1. did you insert the code from doubleflash??
No. It's so difficult to translate German to English and after it English to Russian.  :D But it's work! Thank you very much! I think, such modifications needs to be described in first topic of the thread.  :)

Quote
to 2. Same Problem... 
I've removed this requirement. My users may write posts without header filling. You can look this MOD:
http://www.4homepages.de/forum/index.php?topic=1958.new#new
But I can't forbid them to edit their comments.
 
Title: Re: [Mod] bbcode Smileys
Post by: UFOSWORLD on April 21, 2007, 12:32:22 PM
UFOSWORLD,
thanks for reply!

Quote
to 1. did you insert the code from doubleflash??
No. It's so difficult to translate German to English and after it English to Russian.  :D But it's work! Thank you very much! I think, such modifications needs to be described in first topic of the thread.  :)

Quote
to 2. Same Problem... 
I've removed this requirement. My users may write posts without header filling. You can look this MOD:
http://www.4homepages.de/forum/index.php?topic=1958.new#new
But I can't forbid them to edit their comments.
 

Yes, i think it is not easy... to translate that...  for example with google translater... lol

to 2.  THX.. that is the Code i searched for...   but i didnt change my code again, because it works fine for me...


to the Edit Comment Problem:

Do you mean they can edit all the comments they have made on all pictures  or just the comments to there pictures made?

My normal registered Users cant edit there comments... the edit comment button does not exist.
Normal Registered Users cant also upload pictures... just the admin can upload pictures...

look in you admin section  i found something there ..

in Einstellungen => Session und User Einstellungen

Dürfen User Ihre eigenen Bilder bearbeiten
Dürfen User Ihre eigenen Bilder löschen
Dürfen User Kommentare zu Ihren eigenen Bildern bearbeiten
Dürfen User Kommentare zu Ihren eigenen Bildern löschen

that all is in my case at yes...  but that is only usefull, wenn users can upload pictures too...

and they dont upload pictures... they just watch...

hope it helps you

greetz to russia

ufo
Title: Re: [Mod] bbcode Smileys
Post by: Joss on April 23, 2007, 10:00:18 PM
UFOSWORLD, Thank you!

Also, I've found another bug with bbcode MOD. Try to use smiles in image title. The RSS script working wrong in such case and probably something else. We need disallow the smiles only in comments, not in titles!
Title: Re: [Mod] bbcode Smileys
Post by: shadowhunter on April 30, 2007, 09:25:59 AM
Hallo!
Ich habe einen Bug zu berichten:
Wenn jemand einen Kommentar postet und darin Smilies verwendet, wird danach der Beitrag ganz normal mit den zugehörigen Smilies angezeigt. Dies funktioniert einwandfrei!
Jedoch wenn ich einen Kommentar bearbeiten möchte, wird nur den HTML Code angezeigt anstatt der Abkürzung vom Smilie

-> Beispiel:
Kommentar-Nachricht im ACP:
Code: [Select]
<img src="./templates/default/smilies/icon_surprised.gif">
Sollte so erscheinen:
Code: [Select]
:o
Was funktioniert hier nicht? Nach dem Bearbeiten des Kommentars erscheint der HTML-Code als Text im Kommantarfeld - Nachricht.
Ich habe die Funktion "HTML-Code in den Kommentaren erlauben" ausgeschaltet (dies möchte ich auch so behalten).
Kann mir bitte jemand weiterhelfen?
Wäre sehr dankbar!
greetings
Title: Re: [Mod] bbcode Smileys
Post by: shadowhunter on May 16, 2007, 10:35:38 AM
Has anybody found a solution about this reported bug?
I use the version 1.7.4.
Please help me!
Thanks!
greetings
Title: Re: [Mod] bbcode Smileys
Post by: UFOSWORLD on January 03, 2008, 03:34:35 PM
GERMAN:
Ich möchte das die smilies in einem extra Fenster angezeigt werden.
Neben dem Kommentarfeld soll ein Button auftauchen der [Smilies] heisst. Wenn man auf den Button drückt, öffnet sich ein Fenster in dem die Smilies angeziegt werden.
Wenn man nun in dem neuen Fenster auf einen Smilie klickt, dann soll dessen Code in das KOmmentarfeld übernommen werden. Das Smiliewindow soll dabei offen bleiben.
Is das möglich, weil ich hab so eine Lösung auf ner anderen Seite gefunden.
Ich habe zu viele Smilies, deswegen bräuchte ich die Lösung mit dem Extra Fenster.

thx UFO

ENGLISCH:

I want the smilies shown in an extra small window...
next to the text area there should be a button with [Smilies]  when you klick on it a Window opens whrere all Smilies are shown.
When you klick now on a smilie, the Smiliecode should be postet in the text area field, the smilie window should be still open.
Is that possible, because i saw that on another page..
I have to many smilies , therefore i need that solution with extra window.
thx UFO
Title: Re: [Mod] bbcode Smileys
Post by: steka on January 04, 2008, 04:35:18 PM

1. The transparensy isn't working in Mozilla Firefox (look for screen shot).


[DEUTSCH]
Nachdem ich einige Tests durchgeführt habe, scheint das Problem gefunden worden zu sein.
Ursache ist der Code, der bei Step 3 in die styles.css eingefügt wurde. Die beiden Kommentarzeilen beim eingefügten Code haben die falsche Syntax.
Der Firefox wertet die Definition von .smilies deshalb scheinbar nicht aus und somit werden die buttons nicht korrekt dargestellt.

falsch: <!-- Kommentar -->
richtig: /* Kommentar */

Es würde auch schon ausreichen, die beiden Kommentarzeilen aus dem styles.css zu entfernen.
Somit erspart man sich, bei allen Buttons in der bbcode.html zusätzliche Änderungen durchzuführen.
Ggf. sollte der Code der Anleitung bei Step 3 entsprechend geändert werden.


[ENGLISH]
After some tests i'm sure finding the cause of the problem.
The code which was added into styles.css in Step 3 seems to be incorrect. The comments in front and in end of copycode use wrong syntax.
It looks like Firefox ignores the complete .smilie definition. Thats the reason why buttons are wrong displayed (no transparency, icons repeat)

wrong: <!-- comment -->
correct: /* comment */

fast patch: just delete the 2 comment-lines from styles.css --> instead of the additional changes in bbcode.html
Maybe you should fix the copycode in Step 3


steka
Title: Re: [Mod] bbcode Smileys
Post by: Joss on March 31, 2008, 02:32:36 PM
Hi all,
there is my update of the MOD. This update solves the problem with edit comments with smiles, smiles in headlines and image titles.

1. Remove code from step 2.2 in format_text function from includes/functions.php:

Code: [Select]
 
// Smilie Mod
$text = show_smilies($text);
// End Smilie Mod

2. Find
Code: [Select]
function utf8_to_htmlentities($source) {
Add before

Code: [Select]
// Smilie Mod
function format_smiles($text) {
$text = show_smilies($text);
  return $text;
}
// End Smilie Mod

3. details.php
Find
Code: [Select]
"comment_text" => format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1),
Replace to
Code: [Select]
"comment_text" => format_smiles($tmp_comment),
Find some lines before
Code: [Select]
$site_template->register_vars(array(
Add before
Code: [Select]
$tmp_comment = format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1);
4. index.php
Find
Code: [Select]
"comment_text" => format_text($text, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1, 0),
Replace to
Code: [Select]
"comment_text" => format_smiles($tmp_comment),
Find some lines before
Code: [Select]
$site_template->register_vars(array(
Add before
Code: [Select]
$tmp_comment = format_text($text, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1, 0);
5. comments_all.php from corresponding MOD
Find
Code: [Select]
"comment_text" => format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1 , 1),
Replace to
Code: [Select]
"comment_text" => format_smiles($tmp_comment),
Find some lines before
Code: [Select]
$site_template->register_vars(array(
Add before
Code: [Select]
$tmp_comment = format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1 , 1);
6. member.php
Find
Code: [Select]
"comment_text" => format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']),
Replace to
Code: [Select]
"comment_text" => format_smiles($tmp_comment),
Find some lines before
Code: [Select]
$site_template->register_vars(array(
Add before
Code: [Select]
$tmp_comment = format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']);
Also, please note, that there is a patch for Mozilla browser smiles transparency problem:
http://www.4homepages.de/forum/index.php?topic=6646.msg71091#msg71091
Title: Re: [Mod] bbcode Smileys
Post by: shadowhunter on March 31, 2008, 03:18:15 PM
Hello Joss

I have found a better solution:

includes/functions.php
Search:

Code: [Select]
  // Smilie Mod
  $text = show_smilies($text);
  // End Smilie Mod

Replace with:
Code: [Select]
  // Smilie Mod
  if ($bbcode == 1)
  $text = show_smilies($text);
  // End Smilie Mod

index.php
Search:

Code: [Select]
"comment_text" => format_text($text, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1, 0),$config['bb_comments'] should be "1" in settings [ACP -> Settings -> Allow BB-Code in comments = YES]

Greetings Jones
Title: Re: [Mod] bbcode Smileys
Post by: Pearl on April 09, 2008, 05:06:02 AM
Hi guys!

I am hopeing I can get some help here...I have added the smilies but for some reason its not showing the smilies when commenting...here is the screenshot..

I am up to date with the latest 4images.

Title: Re: [Mod] bbcode Smileys
Post by: Lucifix on July 06, 2008, 02:34:17 PM
Does anyone know how to disable smilies in image title?
Title: Re: [Mod] bbcode Smileys
Post by: crs on November 09, 2008, 01:24:38 PM
Looks with Mozilla Firefox not very nice, there is a button or something behind the smileys?  8O
Please take a look at my screenshot.

Thanks for help
Title: Re: [Mod] bbcode Smileys
Post by: bergblume on December 14, 2008, 11:44:08 PM
Looks with Mozilla Firefox not very nice, there is a button or something behind the smileys?  8O
Please take a look at my screenshot.

Thanks for help

is there already a solution available for this question?

greetings, bergblume
Title: Re: [Mod] bbcode Smileys
Post by: V@no on December 15, 2008, 01:56:06 AM
yes, it uses buttons for the smiles.
replace it with simple icons:
Code: [Select]
        <!-- Smilie Mod -->
        <tr>
          <td class="row2">
            <img src="{template_url}/smilies/icon_biggrin.gif"    onClick="smilie(this.form,' :D ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_smile.gif"      onClick="smilie(this.form,' :) ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_sad.gif"        onClick="smilie(this.form,' :( ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_surprised.gif"  onClick="smilie(this.form,' :o ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_shock.gif"      onClick="smilie(this.form,' 8o ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_confused.gif"   onClick="smilie(this.form,' :? ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_cool.gif"       onClick="smilie(this.form,' 8) ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_lol.gif"        onClick="smilie(this.form,' :lol: ')"     style="width: 15px;" />
            <img src="{template_url}/smilies/icon_mad.gif"        onClick="smilie(this.form,' :x ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_razz.gif"       onClick="smilie(this.form,' :p ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_redface.gif"    onClick="smilie(this.form,' :oops: ')"    style="width: 15px;" />
            <img src="{template_url}/smilies/icon_cry.gif"        onClick="smilie(this.form,' :cry: ')"     style="width: 15px;" />
            <img src="{template_url}/smilies/icon_evil.gif"       onClick="smilie(this.form,' :evil: ')"    style="width: 15px;" />
            <img src="{template_url}/smilies/icon_twisted.gif"    onClick="smilie(this.form,' :twisted: ')" style="width: 15px;" />
            <img src="{template_url}/smilies/icon_rolleyes.gif"   onClick="smilie(this.form,' :roll: ')"    style="width: 15px;" />
            <img src="{template_url}/smilies/icon_wink.gif"       onClick="smilie(this.form,' ;) ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_neutral.gif"    onClick="smilie(this.form,' :| ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_exclaim.gif"    onClick="smilie(this.form,' :!: ')"       style="width: 15px;" />
            <img src="{template_url}/smilies/icon_question.gif"   onClick="smilie(this.form,' :?: ')"       style="width: 15px;" />
            <img src="{template_url}/smilies/icon_idea.gif"       onClick="smilie(this.form,' :idea:' )"    style="width: 15px;" />
            <img src="{template_url}/smilies/icon_arrow.gif"      onClick="smilie(this.form,' :arrow: ')"   style="width: 15px;" />
          </td>
        </tr>
        <!-- End Smilie Mod -->
Title: Re: [Mod] bbcode Smileys
Post by: bergblume on December 15, 2008, 10:23:42 AM
hi v@ano,

thank you for your help... style was good now - but I could not click on the icons in order to insert smilies in comment form. I realized it now with this solution:

Code: [Select]
<input type="button" value=" " onClick="smilie(this.form,' :sun: ')" name="button"  style="background-image: url({template_url}/smilies/weather_sun.png); width: 16px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;" />

I have another small question - is it also possible to get an output by click on a smilie that looks like text :smily: - I mean that I want to have automaticaly in front of smilies an predifined text that is output automatically e.g. condition :D

greetings, bergblume
Title: Re: [Mod] bbcode Smileys
Post by: crs on January 15, 2009, 02:15:24 PM
yes, it uses buttons for the smiles.
replace it with simple icons:
Code: [Select]
        <!-- Smilie Mod -->
        <tr>
          <td class="row2">
            <img src="{template_url}/smilies/icon_biggrin.gif"    onClick="smilie(this.form,' :D ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_smile.gif"      onClick="smilie(this.form,' :) ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_sad.gif"        onClick="smilie(this.form,' :( ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_surprised.gif"  onClick="smilie(this.form,' :o ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_shock.gif"      onClick="smilie(this.form,' 8o ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_confused.gif"   onClick="smilie(this.form,' :? ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_cool.gif"       onClick="smilie(this.form,' 8) ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_lol.gif"        onClick="smilie(this.form,' :lol: ')"     style="width: 15px;" />
            <img src="{template_url}/smilies/icon_mad.gif"        onClick="smilie(this.form,' :x ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_razz.gif"       onClick="smilie(this.form,' :p ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_redface.gif"    onClick="smilie(this.form,' :oops: ')"    style="width: 15px;" />
            <img src="{template_url}/smilies/icon_cry.gif"        onClick="smilie(this.form,' :cry: ')"     style="width: 15px;" />
            <img src="{template_url}/smilies/icon_evil.gif"       onClick="smilie(this.form,' :evil: ')"    style="width: 15px;" />
            <img src="{template_url}/smilies/icon_twisted.gif"    onClick="smilie(this.form,' :twisted: ')" style="width: 15px;" />
            <img src="{template_url}/smilies/icon_rolleyes.gif"   onClick="smilie(this.form,' :roll: ')"    style="width: 15px;" />
            <img src="{template_url}/smilies/icon_wink.gif"       onClick="smilie(this.form,' ;) ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_neutral.gif"    onClick="smilie(this.form,' :| ')"        style="width: 15px;" />
            <img src="{template_url}/smilies/icon_exclaim.gif"    onClick="smilie(this.form,' :!: ')"       style="width: 15px;" />
            <img src="{template_url}/smilies/icon_question.gif"   onClick="smilie(this.form,' :?: ')"       style="width: 15px;" />
            <img src="{template_url}/smilies/icon_idea.gif"       onClick="smilie(this.form,' :idea:' )"    style="width: 15px;" />
            <img src="{template_url}/smilies/icon_arrow.gif"      onClick="smilie(this.form,' :arrow: ')"   style="width: 15px;" />
          </td>
        </tr>
        <!-- End Smilie Mod -->

THX for your post vano, there is no button anymore but i cant use the smileys with this code... :(
Title: Re: [Mod] bbcode Smileys
Post by: sanko86 on January 15, 2009, 04:07:57 PM
this mod please for   update version 1.7.6
Title: Re: [Mod] bbcode Smileys
Post by: bergblume on January 17, 2009, 06:57:59 PM
hi crs,

ich beantworte deine anfrage per PN hier für alle...

stelle zunächst sicher, dass du die datei functions wie folgt geändert hast:

Quote
includes/functions.php

step 2.1

find following code
-------------------------
folgenden code finden

Code: [Select]
function get_user_info($user_id = 0) {
add before
-------------------------
davor hinzufügen

Code: [Select]
// Smilie Mod
function show_smilies($text) {
    $search_smilie  = array(":)",":-)",":smile:",    ":D",":-D",":grin:",           ":(",":-(",":sad:", "8o","8-o",":shock",":eek:", ":?:",      ":?",":-?",":???:",               "8)","8-)",":cool:",  ":x",":-x",":mad:", ":p",":P",":-p",":-P",":razz:",     ":*",":-*",":oops:",           ":'(",":'-(",":cry:", ">:(",">:-(",":evil:",  ":roll:",   ";)",";-)",":wink:",  ":|",":-|",":neutral:",        ":o",":-o",              ">:)",">:-)",":twisted:",      ":lol:","LOL", ":!:",     ":idea:", ":arrow:", ":mrgreen:");
    $replace_smilie = array("smile","smile","smile", "biggrin","biggrin","biggrin", "sad","sad","sad",  "eek","eek","eek","eek",     "question", "confused","confused","confused", "cool","cool","cool", "mad","mad","mad",  "razz","razz","razz","razz","razz", "redface","redface","redface", "cry","cry","cry",    "evil", "evil", "evil", "rolleyes", "wink","wink","wink", "neutral","neutral","neutral", "surprised","surprised", "twisted","twisted","twisted", "lol","lol",     "exclaim", "idea",   "arrow",   "mrgreen");
  for($smile=0;$smile<count($search_smilie);$smile++){
    $text = str_replace($search_smilie[$smile],"<img src=\"".TEMPLATE_PATH."/smilies/icon_".$replace_smilie[$smile].".gif\">",$text);
  }

  return $text;
}
// End Smilie Mod


step 2.2

find following code
-------------------------
folgenden code finden

Code: [Select]
  $text = str_replace("\\'", "'", $text);
add after
-------------------------
after hinzufügen

Code: [Select]

  // Smilie Mod
  $text = show_smilies($text);
  // End Smilie Mod




step 3

dann musst du in der datei bbcode.html (findest du in deinem template-ordner) noch wie folgt abändern:

finde folgenden code in bbcode.html

Code: [Select]
  theform.comment_text.value += thelist+listend;
  theform.comment_text.focus();
}

füge danach folgenden code ein:

Code: [Select]
// Smilie Mod
function smilie(theform,smiliecode) {
  theform.comment_text.value += smiliecode;
  theform.comment_text.focus();
}
// End Smilie Mod


suche

Code: [Select]
<input type="button" value="List" title="LIST" onclick="dolist(this.form)" name="button" class="button" />
          </td>
        </tr>

danach diesen code reinkopieren:

Code: [Select]
        <!-- Smilie Mod -->
        <tr>
          <td class="row2">
            <input type="button" value=" " onClick="smilie(this.form,' :D ')"         class="smilie" style="background-image: url({template_url}/smilies/icon_biggrin.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :) ')"         class="smilie" style="background-image: url({template_url}/smilies/icon_smile.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :( ')"         class="smilie" style="background-image: url({template_url}/smilies/icon_sad.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :o ')"         class="smilie" style="background-image: url({template_url}/smilies/icon_surprised.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :? ')"         class="smilie" style="background-image: url({template_url}/smilies/icon_confused.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' 8) ')"         class="smilie" style="background-image: url({template_url}/smilies/icon_cool.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :lol: ')"      class="smilie" style="background-image: url({template_url}/smilies/icon_lol.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :x ')"         class="smilie" style="background-image: url({template_url}/smilies/icon_mad.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :p ')"         class="smilie" style="background-image: url({template_url}/smilies/icon_razz.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :oops: ')"     class="smilie" style="background-image: url({template_url}/smilies/icon_redface.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :cry: ')"      class="smilie" style="background-image: url({template_url}/smilies/icon_cry.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :evil: ')"     class="smilie" style="background-image: url({template_url}/smilies/icon_evil.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :twisted: ')"  class="smilie" style="background-image: url({template_url}/smilies/icon_twisted.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :roll: ')"     class="smilie" style="background-image: url({template_url}/smilies/icon_rolleyes.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' ;) ')"         class="smilie" style="background-image: url({template_url}/smilies/icon_wink.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :| ')"         class="smilie" style="background-image: url({template_url}/smilies/icon_neutral.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :!: ')"        class="smilie" style="background-image: url({template_url}/smilies/icon_exclaim.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :?: ')"        class="smilie" style="background-image: url({template_url}/smilies/icon_question.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :idea:' )"     class="smilie" style="background-image: url({template_url}/smilies/icon_idea.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
            <input type="button" value=" " onClick="smilie(this.form,' :arrow: ')"    class="smilie" style="background-image: url({template_url}/smilies/icon_arrow.gif); width: 15px; background-repeat: no-repeat; background-color: transparent; border: none; cursor: hand;"/>
          </td>
        </tr>
           </td>
        </tr>
        <!-- End Smilie Mod -->
Title: Re: [Mod] bbcode Smileys
Post by: crs on January 18, 2009, 01:12:21 PM
Dankeschön, funktioniert!
Gibt es eigentlich auch eine Möglichkeit, noch mehr Smileys im Pop-Up anzuzeigen?
So in etwa wie hier im Forum, indem man auf "more" klickt und sich dann ein Pop-up mit mehr eigenen Smileys öffnet, die man selbst hinzugefügt hat.

Title: Re: [Mod] bbcode Smileys
Post by: clubsociety on June 07, 2009, 09:22:30 PM
Thanx a lot!! :D

Everything is working fine.

clubsociety
Title: Re: [Mod] bbcode Smileys
Post by: neverkas on June 10, 2009, 03:56:05 AM
Like I say, but I do not work and use another.
Title: Re: [Mod] bbcode Smileys
Post by: Sebas Bonito on June 22, 2009, 02:34:09 AM
I'd like to have a smiley-"dopdown"-menü for the shoutbox. So only a tiny button left beneath the "send"-button to include the smileys. To list all "smiley-buttons" (like in the comments) would be too much, I guess. BTW: I only use the smileys for the bb-code, nothing else.
Title: Re: [Mod] bbcode Smileys
Post by: stdio on March 21, 2010, 07:36:31 PM
Hi!

This mod works good but sometimes when a user posts a comment and puts a smiley, the smiley isn't display. Instead the url of the smiley is displayed. Does anyone know why?

Thank you
Title: Re: [Mod] bbcode Smileys
Post by: stdio on April 07, 2010, 12:38:43 AM
Does anyone know how to disable smilies in image title?
This is what I DON'T like about this community. The authors of the mods should support their releases. Many have/had the problems with this mod but no one cares to look into the issue and try to provide a fix.

I also wanted (I started a topic) to disable such characters in the image title but no one cares to help. I am not being mean but if you release a mod, at least provide SOME support for it.

Sorry if I offended anyone, but some things are wrong here. :(
Title: Re: [Mod] bbcode Smileys
Post by: Rembrandt on April 07, 2010, 05:41:25 AM
....
I also wanted (I started a topic) to disable such characters in the image title but no one cares to help.....
http://www.4homepages.de/forum/index.php?topic=6646.msg114267#msg114267
Title: Re: [Mod] bbcode Smileys
Post by: stdio on April 07, 2010, 01:35:53 PM
Hello Joss

I have found a better solution:

index.php
Search:

Code: [Select]
"comment_text" => format_text($text, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1, 0),$config['bb_comments'] should be "1" in settings [ACP -> Settings -> Allow BB-Code in comments = YES]
Rembrandt, I do not understand what to do with this line. I searched for comment_text in index.php but can't find this line. I apologize if I sound like a noob. I have *some* experience but I really can't understand what to do with this code. Please advise.

Thank you.
Title: Re: [Mod] bbcode Smileys
Post by: madnnes on November 09, 2011, 11:13:19 AM
Hi guys,
I haved the same issue but when I deleted <!-- Smilie Mod --> and <!-- End Smilie Mod --> im style.css now it"s work perfect.
Thanks a lot for this MOD!!!

<!-- Smilie Mod -->
.smilie {
  background-color: transparent;
  background-repeat: no-repeat;
  border: none; cursor:hand;
}
<!-- End Smilie Mod -->
Title: Re: [Mod] bbcode Smileys
Post by: Rembrandt on November 09, 2011, 03:18:34 PM
the correct syntax in *.css:

/* Smilie Mod */
.smilie {
  background-color: transparent;
  background-repeat: no-repeat;
  border: none; cursor:hand;
}
/* End Smilie Mod */