|
View previous topic :: View next topic |
| Author |
Message |
Jo0Lz Nice poster


Offline Joined: Dec 04, 2004 Posts: 127 Location: Netherlands
|
Posted: Mon Sep 24, 2007 9:08 pm Post subject: Smiley Parse. |
|
I've experienced difficulties when posting smileys at the end of my sentences.
I always use a period at the end, even if the last expression is a smiley.
In PHPBB, it get's parsed normally. :D. turns into a smiley, just as :D? :D!
In CPG-BB and ForumsPro, however, it doesn't.
 gets parsed ok.
:D. doesn't.
 gets parsed ok.
:D! doesn't.
Is there an easy way to fix this? I know it seems a small problem, and not hight priority, but it sure does suck :D. I am a frequent visitor to a lot of forums, and the all parse the smiley even if I use a period.
Thanks :).
_________________ I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.
Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Dizfunkshunal Platinum Supporter


Offline Joined: Mar 23, 2006 Posts: 2064
|
Posted: Mon Sep 24, 2007 9:26 pm Post subject: Re: Smiley Parse. |
|
yep make sure you put a space after your smiley code  .  !
_________________ Diz Web Design Status: Open (Use of resources requires registration.)
Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Multiple Setups
|
|
| Back to top |
|
 |
Jo0Lz Nice poster


Offline Joined: Dec 04, 2004 Posts: 127 Location: Netherlands
|
Posted: Mon Sep 24, 2007 10:06 pm Post subject: Re: Smiley Parse. |
|
:').
Sure , that can be done, but I'm in ICT. I'm lazy :D.
It has to be possible, cause other boards can.
_________________ I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.
Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Dizfunkshunal Platinum Supporter


Offline Joined: Mar 23, 2006 Posts: 2064
|
Posted: Mon Sep 24, 2007 10:23 pm Post subject: Re: Smiley Parse. |
|
What is ICT?
_________________ Diz Web Design Status: Open (Use of resources requires registration.)
Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Multiple Setups
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Tue Sep 25, 2007 1:02 am Post subject: Re: Smiley Parse. |
|
By design a smile need to be surrounded by spaces. Webmasters may add or edit smiles with ":D!" or ":D." as code.
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Tue Sep 25, 2007 9:06 am Post subject: Re: Smiley Parse. |
|
Well we could make an exception for certain characters.
But yeah we did it on purpose because just like nano says.... What if there's a smiley for ':D.'
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
Jo0Lz Nice poster


Offline Joined: Dec 04, 2004 Posts: 127 Location: Netherlands
|
Posted: Tue Sep 25, 2007 9:55 am Post subject: Re: Smiley Parse. |
|
| DJ Maze wrote: |
Well we could make an exception for certain characters.
But yeah we did it on purpose because just like nano says.... What if there's a smiley for ':D.'  |
Yeah, if that's the case, that wouldn't work.
But, however, I haven't got any smileys that are coded that way :+ ...
Could you please tell me how to accomplish exception for certain characters?
_________________ I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.
Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Jo0Lz Nice poster


Offline Joined: Dec 04, 2004 Posts: 127 Location: Netherlands
|
Posted: Fri Sep 28, 2007 7:51 am Post subject: Re: Smiley Parse. |
|
Right. So it IS possible to do this, but nobody can tell me how?
I just want to know where to change code...
_________________ I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.
Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Fri Sep 28, 2007 8:45 am Post subject: Re: Smiley Parse. |
|
includes/nbbcode.php line 296
| PHP: |
$orig[] = "#([\s])".$smilies[$i]['code']."([\s<])#si";
|
replace by:
| PHP: |
$orig[] = "#([\s])".$smilies[$i]['code']."([\s<\.?!,])#si";
|
Just put in [\s<] all the characters you need.
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
NanoCaiordo Developer


Offline Joined: Jun 29, 2004 Posts: 3878 Location: Melbourne, AU
|
Posted: Fri Sep 28, 2007 8:59 am Post subject: Re: Smiley Parse. |
|
| Jo0Lz wrote: |
| exception for certain characters? |
Which exactly?
_________________ .:: I met php the 03 December 2003 :: Unforgettable day! ::.
Linux 64bit / Apache 2.2 / PHP 5.4 / MySQL 5.5.22 / v9, v10
Linux 32bit / Apache 2.2 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
Windows 64bit / IIS 7.5 / PHP 5.3.10 / MySQL 5.5.22 / v9, v10
NanoCaiordo's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) mixed
|
|
| Back to top |
|
 |
Jo0Lz Nice poster


Offline Joined: Dec 04, 2004 Posts: 127 Location: Netherlands
|
Posted: Fri Sep 28, 2007 1:07 pm Post subject: Re: Smiley Parse. |
|
| DJ Maze wrote: |
includes/nbbcode.php line 296
| PHP: |
$orig[] = "#([\s])".$smilies[$i]['code']."([\s<])#si";
|
replace by:
| PHP: |
$orig[] = "#([\s])".$smilies[$i]['code']."([\s<\.?!,])#si";
|
Just put in [\s<] all the characters you need. |
That worked like a charm. Thanks a bunch. I tried putting the symbols (!?.,) there, like in the example, but left the intact...
Guess I was pretty close after all :D.
Thanks guys, really made it easier for me to post on my own forums :D.
_________________ I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.
Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Jo0Lz Nice poster


Offline Joined: Dec 04, 2004 Posts: 127 Location: Netherlands
|
Posted: Fri Sep 28, 2007 4:32 pm Post subject: Re: Smiley Parse. |
|
| DJ Maze wrote: |
What if there's a smiley for ':D.'  |
Well, I can tell you know, that it works on my site.
When there is a smiley for
(And there is on my site) And you type :??, it displays the smiley, followed by a question mark.
So, in fact, it doesn't effect any of the smileys at all. I even tested it, by creating a smiley with the code
And when I type
It works perfectly.
 I'm so happy, I can rant like on the other forums, without having to edit my message afterwards, because I typed a period after the smiley...
 :D
You guys rock!
_________________ I'm not lost, I'm locationally challenged.
Don't you agree? God created some pretty good textures!
Proud admin of FokGuildwars.
Jo0Lz's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
|
|
| Back to top |
|
 |
Rick2002 Newbie


Offline Joined: Nov 05, 2007 Posts: 23
|
Posted: Wed Feb 13, 2008 11:03 pm Post subject: Remove space between smilies. |
|
Hello there,
I have a question.
Is there a way to remove the space between smilies?
Here is an example:
If i where to use the normal :imagea: :imageb: commands, i would get this:
If i where to remove the spaces between them :imagea::imageb: i would get this:
:imagea::imageb:
no images.
Thanx in advance.
Rick2002's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) OS ??/Apache 2.0.46/MySQL 4.1.21/PHP 4.4.7/Dragonfly CMS 9.1.2.1
|
|
| Back to top |
|
 |
Eestlane I18N / L10N Lead Dev


Offline Joined: Apr 06, 2005 Posts: 1404 Location: Estonia
|
Posted: Wed Feb 13, 2008 11:12 pm Post subject: Re: Remove space between smilies. |
|
Why would you need that?
Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/2.0.63/5.0.67/5.2.8/9.2.1
|
|
| Back to top |
|
 |
Dizfunkshunal Platinum Supporter


Offline Joined: Mar 23, 2006 Posts: 2064
|
Posted: Thu Feb 14, 2008 12:18 am Post subject: Re: Remove space between smilies. |
|
the 2 imagges make one image. I would just combine the 2 images so you only have to enter one smilies code. see attached
Dizfunkshunal's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Multiple Setups
|
|
| Back to top |
|
 |
|
|