Re: HOWTO: Add more smilies

Absolutely no idea

Re: HOWTO: Add more smilies

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

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

28 (edited by Prozac 2006-02-01 16:14)

Re: HOWTO: Add more smilies

Smartys wrote:

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.

Greets,
Prozac

29 (edited by fantasma 2006-11-29 20:57)

Re: HOWTO: Add more smilies

Why when i insert new smiles i see that it's very small?
Bey thanks!

Re: HOWTO: Add more smilies

All smilies have a width and height of 15 unless you edit parser.php to remove the width and height attributes.

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

Re: HOWTO: Add more smilies

First
http://img56.imageshack.us/img56/1040/senzatitolo1cl8.jpg
After
http://img124.imageshack.us/img124/2451/senzatitolo2wa5.jpg

My smiles are small why???

Re: HOWTO: Add more smilies

Just remove the

width="15" height="15"

and it'll be fine. Leave the alt="

33 (edited by fantasma 2006-11-30 14:23)

Re: HOWTO: Add more smilies

now when i write a post i can't see the smiles, so i see it very small

admin panels
http://www.needforexhaust.com/img/1.jpg

post forum
http://www.needforexhaust.com/img/2.jpg

modific in parser.php
http://www.needforexhaust.com/img/3.jpg

Re: HOWTO: Add more smilies

Remove JUST the width="15" height="15"
NOT anything else tongue

http://fluxbb.org

Free PunBB Hosting - lots of mods, easy to customize

Re: HOWTO: Add more smilies

no work the smiles are small!!! uff maibe the poblem is the template that i use?
I don't know.
thank

Re: HOWTO: Add more smilies

$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);

Re: HOWTO: Add more smilies

yes yes escuse me i make a mistcake!!!! tongue
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!

Re: HOWTO: Add more smilies

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?

Re: HOWTO: Add more smilies

AndyDeacon wrote:
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.

Looking for a certain modification for your forum? Please take a look here before posting.

Re: HOWTO: Add more smilies

thanx

41

Re: HOWTO: Add more smilies

For new user, it is very useful information. Thank you.

Re: HOWTO: Add more smilies

Okay. This one worked really good. But there's any way to show only 7 or 10 smileys instead all?

Re: HOWTO: Add more smilies

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.

44

Re: HOWTO: Add more smilies

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".

45 (edited by MCommunity 2009-09-28 08:58)

Re: HOWTO: Add more smilies

Edited


NVM Problem solved

Re: HOWTO: Add more smilies

Thanks for the info, I appreciate it.

Re: HOWTO: Add more smilies

Hi elbekko,
How can i insert smiley into place where I want, I dont want to add it only in Comments.
Thanks

PunBB is a fast and lightweight PHP-powered discussion marketing board.

Re: HOWTO: Add more smilies

I'm going to try this

Re: HOWTO: Add more smilies

Forums it is good enough if it works.

But how can you change files without harming the WC3?

50

Re: HOWTO: Add more smilies

You can modify any file without harming W3C, as long as you make sure to generate proper XHTML.