Re: HOWTO: Add more smilies
Absolutely no idea
You are not logged in. Please login or register.
PunBB Forums → Feature requests → HOWTO: Add more smilies
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.
Why when i insert new smiles i see that it's very small?
Bey thanks!
All smilies have a width and height of 15 unless you edit parser.php to remove the width and height attributes.
First
After
My smiles are small why???
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
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.
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
Thanks for the info, I appreciate it.
I'm going to try this
Forums it is good enough if it works.
But how can you change files without harming the WC3?
You can modify any file without harming W3C, as long as you make sure to generate proper XHTML.
PunBB Forums → Feature requests → HOWTO: Add more smilies
Powered by PunBB, supported by Informer Technologies, Inc.