4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Releases & Support) => Topic started 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
function get_user_info($user_id = 0) {
add before
-------------------------
davor hinzufügen
// 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
$text = str_replace("\\'", "'", $text);
add after
-------------------------
after hinzufügen
// 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
}
add after
-------------------------
danach hinzufügen
<!-- 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
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
// Smilie Mod
function smilie(theform,smiliecode) {
theform.comment_text.value += smiliecode;
theform.comment_text.focus();
}
// End Smilie Mod
find following code
-------------------------
folgenden code finden
<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
<!-- 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 ;)
-
Thx. :wink: Very simple and clear.
grtz!
-
thanks :D
-
hey, I found a little problem with the smilies: The following code=>
: ? :
(without the spaces) doesn't show this :?: but this=> :? :
(without the space)
I didn't notice anything else yet...
grtz!
-
yeah, its a common problem with this method of parsing smilies...
in functions.php replace $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: $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 ":?:"
-
thx! :wink:
-
thanks v@no ;)
-
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?
-
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 ?
-
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
-
What I mean is for example:
(http://www.snuup.de/discription_smiley.jpg)
THX
-
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? ;)
-
I haven´t enough time yet. When I find a way, I tell you in this Thread!
Cu by Flo
-
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 ;)
-
that should be the first step ... but therefore i have to rewrite the hole mod
anyway ... i'll do it ;)
-
vielen dank,so etwas suche ich schon die ganze zeit :D
-
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)
-
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 ;)
-
that's true ... but therefore it should be built into the admin-settings ... i think that would be exaggerated
-
well, u could have made it the same way as the bbcode parse ;) or html or word wrap, etc ;)
just a tip
-
hmm ... ok ... that's right ... i could make it that way to!
i still got holidays ;)
-
Danke für den Mod.. Hat alles gut geklappt
-
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!
-
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!
-
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
-
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? :?
-
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
-
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
-
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
-
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!!!
-
All went fine, but one icon is missing although you can click on it and 8o will appear, etc. Picture attached.
-
Rename in the smiliesfolder the "icon_shock.gif" to "icon_eek.gif".
Greetz Sam
-
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!
-
Or so,yes :D.A few days gone since... :D
Greetz Sam
-
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
-
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...
-
I just noticed that using the
:lol:
brings up the twisted face and not the laughing face. If I use LOL
however it does work. But how can I fix this for others that won't know it will work using LOL?
-
:( 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....
-
I have found other ones that are not showing the correct icon. The latest is the exclamation. If I do
:!:
I get the big grin (laugh).
I just noticed that using the :lol:
brings up the twisted face and not the laughing face. If I use LOL
however it does work. But how can I fix this for others that won't know it will work using LOL?
-
Nevermind:) I finally found the culprit.
-
how could we make this without the stupid input type="button"
I want it like it is here on the forum ;)
-
how can i added more smileys but in popup window ????
any ideia ???
;)
-
my 4images gallery is intigrated into vbulletin, anyway to have it use vb's bbcode and smilies?
-
: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.
-
Hi everyone,
tafferkakaos smiley download link doesn't work. Does anybody have an alternative smiley download zip link?
Anyone?
-
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?
-
Thanks tradenet.
-
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?
-
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...
-
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?
-
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)
-
: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.
-
Добрый день. У меня такая проблема:
Мод установил. При добавлении смайликов в коментарии, они отображаются как положено, но на главной странице,
в окне "последние коментарии", они отображаются по другому, как в моде PM. Что нужно изменить?
-
Нужно пропустить текст через format_text() функцию. Как? - это уж лучьше спросить в том топике ;)
-
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
-
can't anyone help me? want sweet little smilies in my comments :(
-
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?
-
i installed the smilie folder from v@lo's gallery. not the folder mentioned in the 1# post..
-
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.
-
but the smilies themselves have other names too as required?!
-
[olist]
DB Error: Bad SQL Query: SELECT * FROM 4images_encuestas ORDER BY orden
Unknown column 'orden' in 'order clause'[/quote]
What is this and why would think its related to this mod?
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[/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...
-
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 <img src="./templates/default/smilies/icon_surprised.gif">
instead of :o
-
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.
-
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.
-
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: )
-
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...
-
so can anyone help me? 8O
-
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.
<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???
-
You also will need add them into includes/functions.php, into these arrays:
$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");
-
yea i did edit that to but same problem maybe i didnt edit good.
i will try back and let u know.
thanx..
-
ok i really did had an error in my array
i fixed it worked good.
thnx
-
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
-
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
-
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...
-
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...
-
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 <img src="./templates/default/smilies/icon_surprised.gif">
instead of :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.
-
ye a i have the same problem i saw this in many 4images sites...
-
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)
<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)
-
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
-
Schon besser, sieht wie angehangen aus...
Aber so ein kleiner senkrechter Balken ist da immer noch. Habe übrigens "transparent" mit meiner Hintergrundfarbe ersetzt.
-
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
-
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
-
Under version 1.7.2 I also have the problem, that the smilie-code
:-)
in the comment is saved as <img src="./templates/default/smilies/icon_surprised.gif">
Does anybody have a solution for that?
Regards
Leh00
-
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.
-
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????
-
Under version 1.7.2 I also have the problem, that the smilie-code :-)
in the comment is saved as <img src="./templates/default/smilies/icon_surprised.gif">
Does anybody have a solution for that?
Regards
Leh00
same problem
-
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
-
Under version 1.7.2 I also have the problem, that the smilie-code :-)
in the comment is saved as <img src="./templates/default/smilies/icon_surprised.gif">
Does anybody have a solution for that?
Regards
Leh00
any help plz
same problem
-
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!
-
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.
-
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 <img src="./templates/default/smilies/icon_surprised.gif">
instead of :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 :(
-
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...
-
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
-
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 <img src="./templates/default/smilies/icon_surprised.gif">
instead of :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????
-
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
-
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 <img src="./templates/default/smilies/icon_surprised.gif">
instead of :o
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
if ($comment_headline == "") {
$msg .= (($msg != "") ? "<br />" : "").$lang['headline_required'];
$error = 1;
}
2. Open templates/comment_bit.html
Find and remove
<td valign="top"><b>{comment_headline}</b></td>
3. Open templates/comment_form.html
Find and remove
<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!
-
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. :?
-
Solved it! Add the height necessary to .smilie in the style sheet! [d.u.h.] :| :mrgreen:
-
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....
-
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.
-
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 ....
-
UFOSWORLD,
thanks for reply!
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. :)
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.
-
UFOSWORLD,
thanks for reply!
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. :)
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
-
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!
-
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:
<img src="./templates/default/smilies/icon_surprised.gif">
Sollte so erscheinen:
: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
-
Has anybody found a solution about this reported bug?
I use the version 1.7.4.
Please help me!
Thanks!
greetings
-
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
-
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
-
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:
// Smilie Mod
$text = show_smilies($text);
// End Smilie Mod
2. Find
function utf8_to_htmlentities($source) {
Add before
// Smilie Mod
function format_smiles($text) {
$text = show_smilies($text);
return $text;
}
// End Smilie Mod
3. details.php
Find
"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
"comment_text" => format_smiles($tmp_comment),
Find some lines before
$site_template->register_vars(array(
Add before
$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
"comment_text" => format_text($text, $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments'], 1, 0),
Replace to
"comment_text" => format_smiles($tmp_comment),
Find some lines before
$site_template->register_vars(array(
Add before
$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
"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
"comment_text" => format_smiles($tmp_comment),
Find some lines before
$site_template->register_vars(array(
Add before
$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
"comment_text" => format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']),
Replace to
"comment_text" => format_smiles($tmp_comment),
Find some lines before
$site_template->register_vars(array(
Add before
$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
-
Hello Joss
I have found a better solution:
includes/functions.php
Search:
// Smilie Mod
$text = show_smilies($text);
// End Smilie Mod
Replace with:
// Smilie Mod
if ($bbcode == 1)
$text = show_smilies($text);
// End Smilie Mod
index.php
Search:
"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
-
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.
-
Does anyone know how to disable smilies in image title?
-
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
-
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
-
yes, it uses buttons for the smiles.
replace it with simple icons:
<!-- 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 -->
-
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:
<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
-
yes, it uses buttons for the smiles.
replace it with simple icons:
<!-- 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... :(
-
this mod please for update version 1.7.6
-
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:
includes/functions.php
step 2.1
find following code
-------------------------
folgenden code finden
function get_user_info($user_id = 0) {
add before
-------------------------
davor hinzufügen
// 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
$text = str_replace("\\'", "'", $text);
add after
-------------------------
after hinzufügen
// 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
theform.comment_text.value += thelist+listend;
theform.comment_text.focus();
}
füge danach folgenden code ein:
// Smilie Mod
function smilie(theform,smiliecode) {
theform.comment_text.value += smiliecode;
theform.comment_text.focus();
}
// End Smilie Mod
suche
<input type="button" value="List" title="LIST" onclick="dolist(this.form)" name="button" class="button" />
</td>
</tr>
danach diesen code reinkopieren:
<!-- 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 -->
-
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.
-
Thanx a lot!! :D
Everything is working fine.
clubsociety
-
Like I say, but I do not work and use another.
-
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.
-
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
-
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. :(
-
....
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
-
Hello Joss
I have found a better solution:
index.php
Search:
"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.
-
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 -->
-
the correct syntax in *.css:
/* Smilie Mod */
.smilie {
background-color: transparent;
background-repeat: no-repeat;
border: none; cursor:hand;
}
/* End Smilie Mod */