Re: HOWTO: Add more smilies
Absolutely no idea
Unfortunately no one can be told what PunBB is - you have to see it for yourself.
You are not logged in. Please login or register.
Absolutely no idea
It doesn't
PunRes just has the cookie for www.punres.org, not .punres.org
That link is punres.org, so you're not logged in
It doesn't
PunRes just has the cookie for www.punres.org, not .punres.org
That link is punres.org, so you're not logged in
Yes, this can be a certain reason.
I was not logged when copying this link from my browser.
Last edited by Prozac (2006-02-01 16:14:10)
Why when i insert new smiles i see that it's very small?
Bey thanks!
Last edited by fantasma (2006-11-29 20:57:26)
All smilies have a width and height of 15 unless you edit parser.php to remove the width and height attributes.
Just remove the
width="15" height="15"and it'll be fine. Leave the alt="
now when i write a post i can't see the smiles, so i see it very small
admin panels
post forum
modific in parser.php
Last edited by fantasma (2006-11-30 14:23:59)
Remove JUST the width="15" height="15"
NOT anything else ![]()
no work the smiles are small!!! uff maibe the poblem is the template that i use?
I don't know.
thank
$text = preg_replace("#(?<=.\W|\W.|^\W)".preg_quote($smiley_text[$i], '#')."(?=.\W|\W.|\W$)#m", '$1<img src="img/smilies/'.$smiley_img[$i].'" alt="'.substr($smiley_img[$i], 0, strrpos($smiley_img[$i], '.')).'" />$2', $text);yes yes escuse me i make a mistcake!!!!
I have installed in my punBB EasyBBcode in reply msg, and in this i see the smile small, but in the post now i see normal size of the smiles, think that I must modify the file of easybbcode!!!
Thanks to all!
4. After you have added your smilies to $smiley_text and $smiley_img you should have a look at the row directly below. It says that you must uncomment the next row if any of your smilies contain any of the characters &, ", ', < or >. Uncommenting is done by removing the two slashes in the beginning of the row
// $text = array_map('htmlspecialchars', $text);
Where in this code we need to writing special chars that we used. I use (') and wath code I must retrieve?
Rickard wrote:4. After you have added your smilies to $smiley_text and $smiley_img you should have a look at the row directly below. It says that you must uncomment the next row if any of your smilies contain any of the characters &, ", ', < or >. Uncommenting is done by removing the two slashes in the beginning of the row
// $text = array_map('htmlspecialchars', $text);
Where in this code we need to writing special chars that we used. I use (') and wath code I must retrieve?
You don't write them anywhere. You just remove the "//" in front of the code Rickard mentioned.
For new user, it is very useful information. Thank you.
Okay. This one worked really good. But there's any way to show only 7 or 10 smileys instead all?
To use non-15x15 pixel smilies, you must prevent PunBB from adding the width="15" and height="15" attributes to img tags. This can be done by editing include/parser.php in a text editor. Open up the file and search for:
width="15" height="15"
http://www.4uaf.com
The text should be somewhere around line 260. Then replace the values with a width and height of your choice. If you want to use smilies of varying sizes, remove the attributes completely.
i have added ym emotion in my forum.
the problem is after i selected the smile icon to replay post, it show name of smile file not this code
:P :lol: :mad:anybody know why this happen?
here is my parser.php code. i post in txt format
parser.php
hope someone can help me coz i have no idea anymore how to fix.
First of all you should check:
The option "Show smilies as graphic icons" should be enabled in user profile
The option "Convert smilies to small icons in posts" should be enabled on the page "<FORUM_URL>/admin/settings.php?section=features".
Edited
NVM Problem solved
Last edited by MCommunity (2009-09-28 08:58:05)
Thanks for the info, I appreciate it.
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 5 official extensions. Copyright © 2003–2009 PunBB.